Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90494 - Bug in unpack_makeself prevents certain packages from emerging properly (INCLUDES FIX)
Summary: Bug in unpack_makeself prevents certain packages from emerging properly (INCL...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 07:01 UTC by k s
Modified: 2005-04-26 08:17 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 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.