[openwrt/openwrt] bpftools: fix param order for install on macOS

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 7 21:09:33 GMT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/24737d85e8cadb6062cff556b7fae29265f326e8

commit 24737d85e8cadb6062cff556b7fae29265f326e8
Author: Georgi Valkov <gvalkov at abv.bg>
AuthorDate: Tue Mar 2 12:41:10 2021 +0200

    bpftools: fix param order for install on macOS
    
    Fix: bpftools 5.11.2 does not compile on macOS, because the -m option
    was placed between src and dst. Corrected by moving -m 644 before src.
    
    Signed-off-by: Georgi Valkov <gvalkov at abv.bg>
---
 .../patches/200-fix-install-param-order-on-macos.patch        | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/network/utils/bpftools/patches/200-fix-install-param-order-on-macos.patch b/package/network/utils/bpftools/patches/200-fix-install-param-order-on-macos.patch
new file mode 100644
index 0000000000..ffb7e2ce52
--- /dev/null
+++ b/package/network/utils/bpftools/patches/200-fix-install-param-order-on-macos.patch
@@ -0,0 +1,11 @@
+--- a/tools/lib/bpf/Makefile
++++ b/tools/lib/bpf/Makefile
+@@ -236,7 +236,7 @@ define do_install
+ 	if [ ! -d '$(DESTDIR_SQ)$2' ]; then		\
+ 		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2';	\
+ 	fi;						\
+-	$(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR_SQ)$2'
++	$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
+ endef
+ 
+ install_lib: all_cmd



More information about the lede-commits mailing list