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

Bug 176670

Summary: beagle assumes /bin/sh is bash
Product: Gentoo Linux Reporter: Roy Marples (RETIRED) <uberlord>
Component: New packagesAssignee: Cédric Krier <cedk>
Status: RESOLVED FIXED    
Severity: normal CC: nirbheek
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 176517    
Attachments: Force bash
patch

Description Roy Marples (RETIRED) gentoo-dev 2007-05-01 11:55:38 UTC
as it likes to use exec -a, which is a bashism. Most scripts do use bash, but some use /bin/sh.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-05-01 11:56:27 UTC
Created attachment 117836 [details, diff]
Force bash
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2007-07-17 02:53:42 UTC
Roy we can apply this patch but we should try to push this to upstream and upstream is unlikely to accept it because it will turn an explicit dependency on bash, doesn't this scripts run on csh fbsd shell ?
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-07-17 06:43:22 UTC
-a as an argument to exec is *only* available with bash, so by using it makes bash a dependency.

I could provide a simple patch not to use -a which works on all bourne shells, which imo would be better.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-07-17 12:15:48 UTC
The patch can't be applied upstream as it patches files that are generated
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2007-07-17 12:17:16 UTC
Created attachment 125151 [details, diff]
patch

...or at least some of them are.

here's a patch I started to write in response to this bug a while ago. Can't remember if I completed it or not.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-07-17 12:18:19 UTC
(In reply to comment #2)
> upstream is unlikely to accept it because it will turn an explicit dependency
> on bash

Beagle already explicitly requires bash.
Comment 7 Cédric Krier gentoo-dev 2008-04-26 10:12:04 UTC
Fix in beagle-0.3