Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723314 - sci-calculators/tilp2-1.18 configure error when /bin/sh != bash (PATCH)
Summary: sci-calculators/tilp2-1.18 configure error when /bin/sh != bash (PATCH)
Status: UNCONFIRMED
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-16 05:35 UTC by Matt Whitlock
Modified: 2020-05-17 10:31 UTC (History)
1 user (show)

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


Attachments
fix-configure-bashism.patch (fix-configure-bashism.patch,516 bytes, patch)
2020-05-16 05:35 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-16 05:35:51 UTC
Created attachment 639494 [details, diff]
fix-configure-bashism.patch

tilp2'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: 20469: test: xx86_64-pc-linux-gnu: unexpected operator

The attached patch removes the Bashism and allows sci-calculators/tilp2-1.18 to configure without error when /bin/sh is Dash.