Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620520 - games-puzzle/freesweep-0.92 configure script fails if dash is /bin/sh
Summary: games-puzzle/freesweep-0.92 configure script fails if dash is /bin/sh
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2017-06-03 15:18 UTC by adebeus
Modified: 2021-04-29 01:08 UTC (History)
4 users (show)

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


Attachments
patch to allow building with dash as /bin/sh (dash.patch,609 bytes, patch)
2017-06-03 15:18 UTC, adebeus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adebeus 2017-06-03 15:18:51 UTC
Created attachment 475110 [details, diff]
patch to allow building with dash as /bin/sh

The configure script relies on bash being /bin/sh, otherwise a sed fails due to reliance on bashisms ("unterminated s command") and aborts the build.

Building with /bin/sh -> dash can be fixed by adding "sed -i 's/\/bin\/sh/\/bin\/bash/' configure" to src_prepare() in the ebuild, or by applying the attached patch which replaces references to /bin/sh in the script with /bin/bash.
Comment 1 kfm 2021-01-07 14:57:04 UTC
Are you still able to reproduce this? If so, please attach the build log and the output of emerge --info. I tried against dash-0.5.11.2 and a few other sh(1) implementations but could not get it to fail.