aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorMark Mentovai <mark@mentovai.com>2022-07-10 19:43:05 -0400
committerHauke Mehrtens <hauke@hauke-m.de>2022-07-31 20:30:20 +0200
commitbeeb49740bb4f68aadf92095984a2d1f9a488956 (patch)
treebedb47ef4fb448dee0512a8fe31640adbdc8f61d /package
parent13308161788c98ae6cd48c22b13339fdb8c77130 (diff)
downloadupstream-beeb49740bb4f68aadf92095984a2d1f9a488956.tar.gz
upstream-beeb49740bb4f68aadf92095984a2d1f9a488956.tar.bz2
upstream-beeb49740bb4f68aadf92095984a2d1f9a488956.zip
libmnl: fix build when bash is not located at /bin/bash
This fixes the libmnl build on macOS, which ships with an outdated bash at /bin/bash. During the OpenWrt build, a modern host bash is built and made available at staging_dir/host/bin/bash, which is present before /bin/bash in the build's PATH. This is similar to 8f7ce3aa6dda, presently appearing at package/kernel/mac80211/patches/build/001-fix_build.patch. Signed-off-by: Mark Mentovai <mark@mentovai.com>
Diffstat (limited to 'package')
-rw-r--r--package/libs/libmnl/patches/001-fix_build.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/libs/libmnl/patches/001-fix_build.patch b/package/libs/libmnl/patches/001-fix_build.patch
new file mode 100644
index 0000000000..d095ec89d0
--- /dev/null
+++ b/package/libs/libmnl/patches/001-fix_build.patch
@@ -0,0 +1,11 @@
+--- a/doxygen/Makefile.am
++++ b/doxygen/Makefile.am
+@@ -21,7 +21,7 @@ doxyfile.stamp: $(doc_srcs) Makefile.am
+ # The command has to be a single line so the functions work
+ # and so `make` gives all lines to `bash -c`
+ # (hence ";\" at the end of every line but the last).
+- /bin/bash -p -c 'declare -A renamed_page;\
++ bash -p -c 'declare -A renamed_page;\
+ main(){ set -e; cd man/man3; rm -f _*;\
+ count_real_pages;\
+ rename_real_pages;\