Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378515 - sys-devel/autoconf-wrapper: installs without fixed shebangs on Solaris
Summary: sys-devel/autoconf-wrapper: installs without fixed shebangs on Solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 15:16 UTC by Hector Rivas
Modified: 2011-08-20 18:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hector Rivas 2011-08-09 15:16:46 UTC
Installed portage prefix on Solaris, sys-devel/autoconf-2.68 references /bin/sh:

$EPREFIX/usr/bin/autoconf: #!/bin/sh

The default shell in Solaris is csh, and it fails executing that:

 $ autoconf -v
 autoconf: bad substitution

changing '#!/bin/sh' with '#!/bin/env' bash solves the problem

Reproducible: Always

Steps to Reproduce:
1. Install portage prefix on Solaris 
2. Install sys-devel/autoconf-2.68
3. Execute autoconf
Actual Results:  
$ autoconf
/eprefix/usr/bin/autoconf: bad substitution

Expected Results:  
$ autoconf
autoconf-2.68: error: no input file


changing '#!/bin/sh' with '#!/bin/env' bash solves the problem
Comment 1 Fabian Groffen gentoo-dev 2011-08-20 15:26:49 UTC
Confirmed.  I see the same thing on sparc-solaris.  I'm confused why this can happen.
Comment 2 Fabian Groffen gentoo-dev 2011-08-20 18:52:38 UTC
A fix is in portage 2.2.01.19062