Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723128 - dev-libs/libixion-0.15.0 configure error when /bin/sh != bash
Summary: dev-libs/libixion-0.15.0 configure error when /bin/sh != bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://gitlab.com/ixion/ixion/-/comm...
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2020-05-15 05:14 UTC by Matt Whitlock
Modified: 2020-05-28 17:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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) 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(-)