Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723452 - sci-libs/libticalcs2-1.1.9 configure error when /bin/sh != bash
Summary: sci-libs/libticalcs2-1.1.9 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 Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2020-05-17 00:43 UTC by Matt Whitlock
Modified: 2024-03-29 18:47 UTC (History)
2 users (show)

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


Attachments
fix-configure-bashism.patch (fix-configure-bashism.patch,516 bytes, patch)
2020-05-17 00:43 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-05-17 00:43:54 UTC
Created attachment 639734 [details, diff]
fix-configure-bashism.patch

libticalcs2'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 "x$build" == "x$host" ; then

checking for the host compiler... ./configure: 16527: test: xx86_64-pc-linux-gnu: unexpected operator

The attached patch removes the Bashism and allows sci-libs/libticalcs2-1.1.9 to configure without error when /bin/sh is Dash.
Comment 1 Larry the Git Cow gentoo-dev 2024-03-29 18:47:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d32f41aa6dab138dfec25c8a5433793420d9293

commit 1d32f41aa6dab138dfec25c8a5433793420d9293
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-29 06:03:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-29 18:45:14 +0000

    sci-libs/libticalcs2: fix erroneous bashism during building
    
     * QA Notice: Abnormal configure code
     *
     * checking for the host compiler... ./configure: 17678: test: xx86_64-pc-linux-gnu: unexpected operator
    
    Bug: https://github.com/debrouxl/tilibs/pull/87
    Closes: https://bugs.gentoo.org/723452
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...fix-erroneous-bashism-in-configure-script.patch | 39 ++++++++++++++++++++++
 sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild   |  5 +++
 2 files changed, 44 insertions(+)