Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723130 - dev-libs/liborcus-0.15.4 configure error when /bin/sh != bash
Summary: dev-libs/liborcus-0.15.4 configure error when /bin/sh != bash
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
Depends on:
Blocks: nonbash
  Show dependency tree
Reported: 2020-05-15 05:32 UTC by Matt Whitlock
Modified: 2020-05-28 17:09 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2020-05-15 05:32:49 UTC
liborcus's 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: 21090: 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:03:16 UTC
Upstream patch welcome.
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2020-05-15 10:33:52 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:32 UTC
The bug has been closed via the following commit(s):

commit d131fa2acad53017e0374759dd5f2f0766ecabeb
Author:     Andreas Sturmlechner <>
AuthorDate: 2020-05-28 16:52:15 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2020-05-28 17:09:02 +0000

    dev-libs/liborcus: Fix bashisms in, --disable-static
    Reported-by: Matt Whitlock <>
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <>

 .../liborcus/files/liborcus-0.15.4-bashism.patch   | 26 ++++++++++++++++++++++
 dev-libs/liborcus/liborcus-0.15.4.ebuild           | 14 +++++++-----
 dev-libs/liborcus/liborcus-9999.ebuild             |  8 +++----
 3 files changed, 38 insertions(+), 10 deletions(-)