aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bash
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 /tools/bash
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 'tools/bash')
-rw-r--r--tools/bash/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/bash/Makefile b/tools/bash/Makefile
new file mode 100644
index 0000000000..7c25b83327
--- /dev/null
+++ b/tools/bash/Makefile
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=bash
+PKG_CPE_ID:=cpe:/a:gnu:bash
+PKG_VERSION:=5.1.16
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/bash
+PKG_HASH:=5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558
+
+HOST_BUILD_PARALLEL := 1
+
+include $(INCLUDE_DIR)/host-build.mk
+
+$(eval $(call HostBuild))