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

Bug 313379

Summary: glib have non-working perl scripts
Product: Gentoo/Alt Reporter: Benda Xu <heroxbd>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal CC: heroxbd
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benda Xu gentoo-dev 2010-04-06 09:56:45 UTC
$EPREFIX/usr/bin/glib-mkenums.pl have first lines as

#!/usr/bin/env perl -w

which causes "no such file" error

Reproducible: Always

Steps to Reproduce:
1. emerge glib
2. glib-mkenums

Actual Results:  
/usr/bin/env: perl -w: No such file or directory

Expected Results:  
use 
#!/usr/bin/env perl
OR
#!$EPREFIX/usr/bin/perl -w

ABCD on #gentoo-prefix said his glib-mkenums have #!$EPREFIX/usr/bin/perl -w header.

I don't know how reproducible the problem is. At least my two newest Gentoo Prefix have the same problem.

Something wrong with the shebang correction (if there is) in Gentoo Prefix?
Comment 1 Fabian Groffen gentoo-dev 2010-04-07 19:10:43 UTC
We seem not to insert this.  It's not a shebang fix, as that wouldn't use /usr/bin/env.  I suspect it's already in the sources like this.

We can solve it by just making it read
#!/my/prefix/usr/bin/perl -w

or dropping the -w argument.
Comment 2 Fabian Groffen gentoo-dev 2010-04-09 10:53:43 UTC
ah, I think this is the same as bug #314057, for which I just checked in a fix.

*** This bug has been marked as a duplicate of bug 314057 ***