diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-31 10:10:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-31 10:10:44 +0100 |
commit | 0fde6d7108b1ee9fc6ad186eff4978faa255db20 (patch) | |
tree | 54c45a4fb87434f176ae2cc91c764acdcc1122e7 /dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch | |
parent | 025c71a90f259ca9319b4caa92495e43acf489b0 (diff) |
gentoo auto-resync : 31:08:2023 - 10:10:44
Diffstat (limited to 'dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch')
-rw-r--r-- | dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch b/dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch new file mode 100644 index 000000000000..885f8fd750f3 --- /dev/null +++ b/dev-libs/libnl/files/libnl-3.8.0-printf-non-bash.patch @@ -0,0 +1,22 @@ +https://github.com/thom311/libnl/pull/360 + +From 32f84a052a4383299b9f30ad09d2a70c3b2cf2b3 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 31 Aug 2023 06:59:59 +0100 +Subject: [PATCH] Makefile.am: avoid use of non-portable echo arguments + +This fixes tests with a non-bash shell as /bin/sh (in this case, dash) which +does not support `echo -e`. echo itself is portable, but not echo with any arguments. + +Use `printf` instead. +--- a/Makefile.am ++++ b/Makefile.am +@@ -1129,7 +1129,7 @@ EXTRA_DIST += \ + + %.build-headers-test.c: % + mkdir -p "$(dir $@)" +- echo -e "#include <$$(echo "$<" | sed 's|.*\<include/netlink/|netlink/|')>\nint main(int argc, char **argv) { return 0; }" > $@ ++ printf "#include <$$(echo "$<" | sed 's|.*\<include/netlink/|netlink/|')>\nint main(int argc, char **argv) { return 0; }" > $@ + + %.build-headers-test.o: %.build-headers-test.c + $(COMPILE) -Wall -Werror -Wno-error=cpp -I$(srcdir)/include -I$(builddir)/include -c -o $@ $< |