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

Bug 25072

Summary: sparc-sources-2.4.2* fails on unpack
Product: Gentoo Linux Reporter: Austin Frank <aufrank>
Component: Current packagesAssignee: Sparc Porters <sparc>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Austin Frank 2003-07-22 11:45:54 UTC
Steps to Reproduce:
USE="-doc" emerge
/usr/portage/sys-kernel/sparc-sources/sparc-sources/sparc-sources-2.4.21-r1.ebuild


Actual Results:
sparc-sources-2.4.20-r8 and sparc-sources-2.4.21 fail during unpack with the
following error:

>>> Unpacking source...
>>> Unpacking linux-2.4.21.tar.bz2 to /var/tmp/portage/sparc-sources-2.4.21/work
>>> Unpacking patches-2.4.21-sparc.tar.bz2 to
/var/tmp/portage/sparc-sources-2.4.21/work
mv: cannot move `linux-2.4.21' to a subdirectory of itself,
`linux-2.4.21/linux-2.4.21'

!!! ERROR: sys-kernel/sparc-sources-2.4.21 failed.
!!! Function src_unpack, Line 35, Exitcode 1
!!! (no error message)

Expected Results:
kernel unpacks into proper directory in /usr/src/

SOLUTION:
In sparc-sources-2.4.21-r1.ebuild, I changed $KV to $OKV.  When I explicitly
emerge this ebuild, the kernel unpacked to /usr/src/linux-2.4.21-sparc-r1/
without errors.  The change to the ebuild was suggested by Latexer.
Comment 1 Pat Erley 2003-07-22 12:52:21 UTC
on line 9

KV=${PV}

should (?) be something like

KV="${PV}-sparc-r1" or the likes.

the problem is on line 39

mv linux-${OKV} linux-${KV} || die

is transalting to mv linux-2.4.21 linux-2.4.21/

which ends up trying to make something it's own child.

Comment 2 Christian Birchinger (RETIRED) gentoo-dev 2003-07-23 02:57:11 UTC
Does it work now? I changed the ebuild so it should work with the changed eclasses 
Comment 3 Austin Frank 2003-08-02 10:36:04 UTC
unpacks and builds correctly on my machine now.  cheers!
Comment 4 Joshua Kinard gentoo-dev 2003-08-03 02:25:56 UTC
Looks like the bug is fixed.  Closing.
Comment 5 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:42:01 UTC
Closing