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

Bug 731126

Summary: dev-db/sqlite-3.32.3 configure error when /bin/sh != bash
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: Current packagesAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
URL: https://sqlite.org/forum/forumpost/f323a96458
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: fix-configure-bashism.patch

Description Matt Whitlock 2020-07-06 21:30:14 UTC
Created attachment 648062 [details, diff]
fix-configure-bashism.patch

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

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?:
https://sqlite.org/forum/about
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?:
> https://sqlite.org/forum/about

Done:
https://sqlite.org/forum/forumpost/f323a96458
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0168be1ce72d33f55ddb1aafb8304b2baefdf840

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

    dev-db/sqlite: Version bump (3.33.0).
    
    Closes: https://bugs.gentoo.org/731126
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 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(+)