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

Bug 90494

Summary: Bug in unpack_makeself prevents certain packages from emerging properly (INCLUDES FIX)
Product: Gentoo Linux Reporter: k s <zentoo>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description k s 2005-04-26 07:01:45 UTC
Using Portage 2.0.51.1,
Line 1228 of /usr/portage/eclass/eutils.eclass:

skip=$(head -n ${skip} "${src}" | wc -c)

This causes ${skip} to have a leading whitespace/tab which causes the 'dd' command to fail later in the script and prevent emerging of packages that need it. This is fine:

skip=$(head -n ${skip} "${src}" | wc -c | awk '{print $1}')

Reproducible: Always
Steps to Reproduce:
1. emerge --sync
2. emerge enemy-territory
3.

Actual Results:  
... 
>>> Unpacking et-linux-2.60.x86.run 
to /var/tmp/portage/enemy-territory-2.60/work 
 * Unknown filetype "empty" ? 
 
!!! ERROR: games-fps/enemy-territory-2.60 failed. 
!!! Function unpack_makeself, Line 1270, Exitcode 1 
!!! failure unpacking (empty) makeself et-linux-2.60.x86.run ('2.1.4' +   8756) 
 

Expected Results:  
>>> games-fps/enemy-territory-2.60 merged.
Comment 1 SpanKY gentoo-dev 2005-04-26 07:08:26 UTC
i dont see why you would get a leading space:
$ skip=$(head -n 5 /dev/urandom | wc -c)
$ echo "A${skip}A"
A813A

wc shouldnt dump any spaces
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-26 08:17:04 UTC
I have no problems merging enemy-territory after doing an emerge --sync.  I tried it on 3 different machines, just to be sure.