Created attachment 680536 [details, diff] fix-configure-bashism.patch wget's configure.ac contains a Bashism (use of == operator with test built-in). Thus, configure emits an error when /bin/sh is not Bash. This doesn't cause the build to fail outright, but it may be causing misdetection of features. AM_CONDITIONAL([WITH_NTLM], [test "X$ENABLE_NTLM" == "Xyes"]) ./configure: 55928: test: Xno: unexpected operator The attached patch removes the Bashism and allows net-misc/wget-1.21 to configure without error when /bin/sh is Dash.
Good to keep in mind but I believe it's benign for us, WITH_NTLM_TRUE/FALSE is (currently) only used for one thing: fuzz/Makefile.in:@WITH_NTLM_TRUE@am__append_1 = wget_ntlm_fuzzer$(EXEEXT) However, the ebuild does not --enable-fuzzing
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e53c2df01940da65e045f5d6b2185b671f9eb0 commit 38e53c2df01940da65e045f5d6b2185b671f9eb0 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-01-02 19:43:31 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-01-02 19:45:56 +0000 net-misc/wget: Don't use bashisms in configure Reported-by: Matt Whitlock <gentoo@mattwhitlock.name> Closes: https://bugs.gentoo.org/762946 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net-misc/wget/files/wget-1.21-avoid_bashisms.patch | 26 ++++++++++++++++++++++ .../wget/files/wget-1.21-avoid_eautoreconf.patch | 11 +++++++++ net-misc/wget/wget-1.21-r1.ebuild | 4 +++- 3 files changed, 40 insertions(+), 1 deletion(-)