Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731126 - dev-db/sqlite-3.32.3 configure error when /bin/sh != bash
Summary: dev-db/sqlite-3.32.3 configure error when /bin/sh != bash
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
Keywords: PATCH
Depends on:
Blocks: nonbash
  Show dependency tree
Reported: 2020-07-06 21:30 UTC by Matt Whitlock
Modified: 2020-09-15 18:34 UTC (History)
0 users

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

fix-configure-bashism.patch (fix-configure-bashism.patch,522 bytes, patch)
2020-07-06 21:30 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2020-07-06 21:30:14 UTC
Created attachment 648062 [details, diff]

sqlite'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.

if test "${enable_amalgamation}" == "no" ; then

./configure: 12664: test: unexpected operator

The attached patch removes the Bashism and allows dev-db/sqlite-3.32.3 to configure without error when /bin/sh is Dash.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-07-06 22:44:07 UTC
Could you report problem to upstream?:
Comment 2 Matt Whitlock 2020-07-07 06:20:39 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> Could you report problem to upstream?:

Comment 3 Larry the Git Cow gentoo-dev 2020-09-15 18:34:07 UTC
The bug has been closed via the following commit(s):

commit 0168be1ce72d33f55ddb1aafb8304b2baefdf840
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2020-09-14 12:00:00 +0000
Commit:     Mike Gilbert <>
CommitDate: 2020-09-15 18:33:40 +0000

    dev-db/sqlite: Version bump (3.33.0).
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <>

 dev-db/sqlite/Manifest                            |   2 +
 dev-db/sqlite/files/sqlite-3.33.0-build_1.1.patch | 413 ++++++++++++++++++++
 dev-db/sqlite/files/sqlite-3.33.0-build_1.2.patch | 422 +++++++++++++++++++++
 dev-db/sqlite/files/sqlite-3.33.0-build_2.1.patch | 286 ++++++++++++++
 dev-db/sqlite/files/sqlite-3.33.0-build_2.2.patch | 434 ++++++++++++++++++++++
 dev-db/sqlite/sqlite-3.33.0.ebuild                | 367 ++++++++++++++++++
 6 files changed, 1924 insertions(+)