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

Bug 322005

Summary: app-arch/gzip-1.4: Emerge fails because of "invalid shebangs"
Product: Gentoo/Alt Reporter: Moritz Lipfert <Moritz.Lipfert>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Moritz Lipfert 2010-05-29 15:06:23 UTC
While bootstraping Gentoo Prefix on Mac OS X 10.6.3 the installation of gzip-1.4 fails with the error message "invalid shebangs found".

Temporary fix without modifying the ebuild: 
Open "$EPREFIX/var/tmp/portage/app-arch/gzip-1.4/image/$EPREFIX/bin/gunzip with an editor and correct the path in the first line. Resume the installation with "ebuild $EPREFIX/usr/portage/app-arch/gzip/gzip-1.4.ebuild merge".

Reproducible: Always

Steps to Reproduce:
1. "emerge gzip"

Actual Results:  
Emerge process fails with the message "invalid shebangs found".

Expected Results:  
Emerge continues without an error.
Comment 1 Fabian Groffen gentoo-dev 2010-05-29 15:11:31 UTC
Do you have the original error message around still, perhaps?

What program isn't found?  Did you follow the bootstrap guide?
Comment 2 Moritz Lipfert 2010-05-29 15:15:51 UTC
Yes, I followed the bootstrap guide step for step.

I have forgot to mention that the error message refers to "/local/gentoo/bin/bash". My eprefix is "/usr/local/gentoo". You can see that "/usr" is missing. So I have add it in the first line of "gunzip" and resumed the merge. That works flawlessly. If needed I will add the whole logfile in a few minutes, when my bootstrap is done.
Comment 3 Fabian Groffen gentoo-dev 2010-05-29 15:17:25 UTC
hmmm, bash should be in /bin, not in /usr/bin.
Comment 4 Moritz Lipfert 2010-05-29 15:21:10 UTC
(In reply to comment #3)
> hmmm, bash should be in /bin, not in /usr/bin.
> 

In my case the path has to be "/usr/local/gentoo/bin/bash" because of my eprefix. The unmodified shebang in gunzip refers to "/local/gentoo/bin/bash". The eprefix is not correct built in the gunzip-file.
Comment 5 Fabian Groffen gentoo-dev 2010-05-29 15:23:03 UTC
aha, so that seems to be a problem with gzip and your prefix (/usr/local/gentoo), not so much a bootstrapping failure then.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-06-01 02:49:43 UTC
(In reply to comment #5)
> aha, so that seems to be a problem with gzip and your prefix
> (/usr/local/gentoo), not so much a bootstrapping failure then.
> 

*exact* same issue as bug 307537.
Comment 7 Fabian Groffen gentoo-dev 2010-06-11 20:11:49 UTC

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