Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 723128

Summary: dev-libs/libixion-0.15.0 configure error when /bin/sh != bash
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gitlab.com/ixion/ixion/-/commit/076f6576e7398842457d34fd68140512795c7e00
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    

Description Matt Whitlock 2020-05-15 05:14:35 UTC
libixion'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.

AS_IF([test x"$enable_werror" == "xyes"], [

./configure: 19427: test: xno: unexpected operator

Suggest setting CONFIG_SHELL=/bin/bash when running configure. The "unexpected operator" message above is not present when CONFIG_SHELL=/bin/bash.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-05-15 07:02:55 UTC
Upstream patch welcome.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-05-15 13:41:06 UTC
(In reply to Andreas Sturmlechner from comment #1)
> Upstream patch welcome.

Here you are...
Comment 3 Larry the Git Cow gentoo-dev 2020-05-28 17:09:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69f45f358a48821fdfa0294b602163dbfe68c691

commit 69f45f358a48821fdfa0294b602163dbfe68c691
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-05-28 16:59:00 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-05-28 17:09:02 +0000

    dev-libs/libixion: Fix bashisms in configure.ac, --disable-static
    
    Reported-by: Matt Whitlock <gentoo@mattwhitlock.name>
    Thanks-to: Lars Wendler <polynomial-c@gentoo.org>
    Closes: https://bugs.gentoo.org/723128
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../libixion/files/libixion-0.15.0-bashism.patch   | 32 ++++++++++++++++++++++
 dev-libs/libixion/libixion-0.15.0.ebuild           | 15 ++++++----
 dev-libs/libixion/libixion-9999.ebuild             |  4 +--
 3 files changed, 43 insertions(+), 8 deletions(-)