aboutsummaryrefslogtreecommitdiffstats
path: root/include/package-ipkg.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-01-27 13:25:39 +0100
committerFelix Fietkau <nbd@nbd.name>2022-01-27 13:38:48 +0100
commit3869ccbcc891a7185550a2a422e2db01fd994b7d (patch)
tree7614324a1ba80c8ac421cb964ca8b3c5a275346c /include/package-ipkg.mk
parent1d4750fd50eeadad640fb62e1b11bf4cdde39dd1 (diff)
downloadupstream-3869ccbcc891a7185550a2a422e2db01fd994b7d.tar.gz
upstream-3869ccbcc891a7185550a2a422e2db01fd994b7d.tar.bz2
upstream-3869ccbcc891a7185550a2a422e2db01fd994b7d.zip
tools: build bash on macOS and use it for ipkg-build
On macOS, system binaries silently drop the environment variables for injecting extra shared libraries (used by fakeroot). This is done for security reasons. Work around this by building bash from source, so that it gets an ad-hoc signature and does not have these restrictions Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/package-ipkg.mk')
-rw-r--r--include/package-ipkg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 362a0e2a8b..3063a86a28 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -264,7 +264,7 @@ $(_endef)
endif
$(INSTALL_DIR) $$(PDIR_$(1))
- $(FAKEROOT) $(SCRIPT_DIR)/ipkg-build -m "$(FILE_MODES)" $$(IDIR_$(1)) $$(PDIR_$(1))
+ $(FAKEROOT) $(STAGING_DIR_HOST)/bin/bash $(SCRIPT_DIR)/ipkg-build -m "$(FILE_MODES)" $$(IDIR_$(1)) $$(PDIR_$(1))
@[ -f $$(IPKG_$(1)) ]
$(1)-clean: