commit: 31ef6fa3fa4874bd1986a336a14545d3b32ee5e3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Dec 8 20:12:55 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Dec 8 20:13:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31ef6fa3
net-firewall/nftables: run configure w/ bash in 1.1.6 Easier than eautoreconf. Drop for 1.1.7 as it is fixed upstream. Signed-off-by: Sam James <sam <AT> gentoo.org> .../nftables/files/nftables-1.1.6-bash.patch | 35 ++++++++++++++++++++++ net-firewall/nftables/nftables-1.1.6.ebuild | 3 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/net-firewall/nftables/files/nftables-1.1.6-bash.patch b/net-firewall/nftables/files/nftables-1.1.6-bash.patch new file mode 100644 index 000000000000..87d3b16b151d --- /dev/null +++ b/net-firewall/nftables/files/nftables-1.1.6-bash.patch @@ -0,0 +1,35 @@ +https://git.netfilter.org/nftables/commit/?id=2e3c68f26d5bd60c8ea7467fa9018c282a7d8c47 + +From 2e3c68f26d5bd60c8ea7467fa9018c282a7d8c47 Mon Sep 17 00:00:00 2001 +From: Jan Palus <[email protected]> +Date: Sat, 6 Dec 2025 00:43:58 +0100 +Subject: build: fix ./configure with non-bash shell + + CONFIG_SHELL=/bin/dash ./configure + +breaks with: + + ./config.status: 2044: Syntax error: Bad for loop variable + +Fixes: 64c07e38f049 ("table: Embed creating nft version into userdata") +Signed-off-by: Jan Palus <[email protected]> +Signed-off-by: Pablo Neira Ayuso <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 6825474b..dd172e88 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -157,7 +157,7 @@ AC_CONFIG_COMMANDS([nftversion.h], [ + echo " ${STABLE_RELEASE}" + echo "};" + echo "static char nftbuildstamp[[]] = {" +- for ((i = 56; i >= 0; i-= 8)); do ++ for i in `seq 56 -8 0`; do + echo " ((uint64_t)MAKE_STAMP >> $i) & 0xff," + done + echo "};" +-- +cgit v1.2.3 diff --git a/net-firewall/nftables/nftables-1.1.6.ebuild b/net-firewall/nftables/nftables-1.1.6.ebuild index 2ab9a8b89694..564896654bf0 100644 --- a/net-firewall/nftables/nftables-1.1.6.ebuild +++ b/net-firewall/nftables/nftables-1.1.6.ebuild @@ -88,7 +88,8 @@ src_configure() { $(use_with xtables) ) - econf "${myeconfargs[@]}" + # bash until 1.1.7 (https://git.netfilter.org/nftables/commit/?id=2e3c68f26d5bd60c8ea7467fa9018c282a7d8c47) + CONFIG_SHELL="${BROOT}"/bin/bash econf "${myeconfargs[@]}" if use python; then pushd py >/dev/null || die
