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

Bug 620520

Summary: games-puzzle/freesweep-0.92 configure script fails if dash is /bin/sh
Product: Gentoo Linux Reporter: adebeus
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: adebeus, jstein, kfm, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: patch to allow building with dash as /bin/sh

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.