Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33724 - vanilla-sources fail to build
Summary: vanilla-sources fail to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 21:22 UTC by John White
Modified: 2003-11-18 11:39 UTC (History)
1 user (show)

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 John White 2003-11-17 21:22:07 UTC
emerge vanilla-sources results in errors detailing missing files or directories.

Reproducible: Always
Steps to Reproduce:
1.emerge sys-kernel/vanilla-sources
2.
3.

Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/vanilla-sources-2.4.22 to /
>>> md5 src_uri ;-) linux-2.4.22.tar.bz2
>>> Unpacking source...
>>> Unpacking linux-2.4.22.tar.bz2 to /var/tmp/portage/vanilla-sources-2.4.22/work
/usr/sbin/ebuild.sh: line 27: cd:
/var/tmp/portage/vanilla-sources-2.4.22/work/linux-2.4.22-vanilla: No such file
or directory
/usr/sbin/ebuild.sh: line 112: cd:
/var/tmp/portage/vanilla-sources-2.4.22/work/linux-2.4.22-vanilla: No such file
or directory
mv: cannot stat `Makefile': No such file or directory
sed: can't read Makefile.orig: No such file or directory

!!! ERROR: sys-kernel/vanilla-sources-2.4.22 failed.
!!! Function kernel_universal_unpack, Line 115, Exitcode 2
!!! (no error message)
Comment 1 Marc Bevand 2003-11-18 10:23:32 UTC
I have identified the problem. It is due to the fact that "kernel.eclass"
modify ${KV} from "2.4.22" (set in the ebuild) to "2.4.22-vanilla". This
bug is probably related to bug #33045. I have a temporary workaround:

---8<---------------------------------------------------------------------------
--- vanilla-sources-2.4.20.ebuild.orig      2003-11-16 20:41:30.000000000 +0100
+++ vanilla-sources-2.4.20.ebuild       2003-11-18 19:21:02.000000000 +0100
@@ -24,6 +24,7 @@
 src_unpack() {
        unpack linux-${OKV}.tar.bz2
 
+       ln -s linux-2.4.20 linux-${KV}
        cd ${S}
 
        kernel_universal_unpack
---8<---------------------------------------------------------------------------

I do not know the proper way to fix the problem...
Comment 2 Marc Bevand 2003-11-18 10:28:06 UTC
Note: the workaround in my previous comment #1 refers to kernel 2.4.20, but
all other versions also have the same problem.
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2003-11-18 11:11:15 UTC
this was caused by the changes I made to the sed/bash statements in the eclass.
I shall fix this for vanilla now.
Comment 4 Brian Jackson (RETIRED) gentoo-dev 2003-11-18 11:39:41 UTC
this should be fixed in cvs now