Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65593 - error merging mm-sources (2.6.9-rc2-mm4) using portage-2.0.51_rc6 (and rc5 and rc4 ..)
Summary: error merging mm-sources (2.6.9-rc2-mm4) using portage-2.0.51_rc6 (and rc5 an...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 15:19 UTC by Ronni Nielsen
Modified: 2004-12-10 15:12 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 Ronni Nielsen 2004-09-27 15:19:41 UTC
While merging the latest mm-sources (which i have unmasked) i get the error shown below.

Seems like KV_MAJOR from kernel-2.eclass gets overridden??

The latest portage (rc6) could download the patch - which rc5 not could - so some mysterius changes in portage is going on...

Reproducible: Always
Steps to Reproduce:
1. emerge --sync
2. emerge mm-sources
3.

Actual Results:  
>>> emerge (1 of 6) sys-kernel/mm-sources-2.6.9_rc2-r4 to /
>>> Downloading
http://www.fr.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
--23:59:54-- 
http://www.fr.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
           => `/usr/portage/distfiles/2.6.9-rc2-mm4.bz2'
L
Comment 1 Ronni Nielsen 2004-09-27 15:19:41 UTC
While merging the latest mm-sources (which i have unmasked) i get the error shown below.

Seems like KV_MAJOR from kernel-2.eclass gets overridden??

The latest portage (rc6) could download the patch - which rc5 not could - so some mysterius changes in portage is going on...

Reproducible: Always
Steps to Reproduce:
1. emerge --sync
2. emerge mm-sources
3.

Actual Results:  
>>> emerge (1 of 6) sys-kernel/mm-sources-2.6.9_rc2-r4 to /
>>> Downloading
http://www.fr.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
--23:59:54-- 
http://www.fr.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
           => `/usr/portage/distfiles/2.6.9-rc2-mm4.bz2'
Løser www.fr.kernel.org...212.180.1.39, 81.220.255.20, 213.186.33.38
Kontakter www.fr.kernel.org[212.180.1.39]:80... forbundet.
HTTP forespørgsel sendt, afventer svar... 404 Not Found
23:59:54 FEJL 404: Not Found.

>>> Downloading
http://www.at.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
--23:59:54-- 
http://www.at.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc2/2.6.9-rc2-mm4/2.6.9-rc2-mm4.bz2
           => `/usr/portage/distfiles/2.6.9-rc2-mm4.bz2'
Løser www.at.kernel.org...148.6.0.12, 212.18.50.222, 192.108.114.81, ...
Kontakter www.at.kernel.org[148.6.0.12]:80... forbundet.
HTTP forespørgsel sendt, afventer svar... 200 OK
Længde: 3,088,295 [text/plain]

100%[====================================>] 3,088,295     53.06K/s    ETA 00:00

00:00:51 (53.20 KB/s) - '/usr/portage/distfiles/2.6.9-rc2-mm4.bz2' gemt
[3088295/3088295]

>>> md5 files   ;-) mm-sources-2.6.9_rc1-r5.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc2-r4.ebuild
>>> md5 files   ;-) mm-sources-2.6.8.1-r4.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc1-r2.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc2-r1.ebuild
>>> md5 files   ;-) mm-sources-2.6.8.1-r1.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc1-r4.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc2-r3.ebuild
>>> md5 files   ;-) mm-sources-2.6.8.1-r3.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc1-r1.ebuild
>>> md5 files   ;-) mm-sources-2.6.9_rc1-r3.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) mm-sources-2.6.9_rc2-r2.ebuild
>>> md5 files   ;-) mm-sources-2.6.8.1-r2.ebuild
>>> md5 files   ;-) files/digest-mm-sources-2.6.8.1-r1
>>> md5 files   ;-) files/digest-mm-sources-2.6.8.1-r2
>>> md5 files   ;-) files/digest-mm-sources-2.6.8.1-r3
>>> md5 files   ;-) files/digest-mm-sources-2.6.8.1-r4
>>> md5 files   ;-) files/2.6.9_rc1-dataloss-fix.patch
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc1-r1
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc1-r2
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc1-r3
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc1-r4
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc1-r5
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc2-r1
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc2-r2
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc2-r3
>>> md5 files   ;-) files/digest-mm-sources-2.6.9_rc2-r4
>>> md5 src_uri ;-) patch-2.6.9-rc2.bz2
>>> md5 src_uri ;-) linux-2.6.8.tar.bz2
>>> md5 src_uri ;-) 2.6.9-rc2-mm4.bz2
>>> Preparing to unpack...
/usr/lib/portage/bin/ebuild.sh: line 83: [: too many arguments
/usr/lib/portage/bin/ebuild.sh: line 83: [: too many arguments
>>> Unpacking source...
>>> Unpacking linux-.6.8.tar.bz2 to /var/tmp/portage/mm-sources-2.6.9_rc2-r4/work
bzip2: Can't open input file /usr/portage/distfiles/linux-.6.8.tar.bz2: No such
file or directory.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-09-27 16:57:06 UTC
Quotes are important.
Comment 3 Ronni Nielsen 2004-10-05 12:06:07 UTC
I tried to edit the kernel-2.eclass to see what was up:
I changed:
$(echo ${KV} | cut -d. -f1)
to
${KV%%.*}
(and similar for the OKV)
and it works!!!
So cut does something strange for the first field

cut --version:
cut (coreutils) 5.2.1

bash --version:
GNU bash, version 3.00.13(1)-release (i686-pc-linux-gnu)

emerge info:
Portage 2.0.51_rc7 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8.1-mm4 i686)
=================================================================
System uname: 2.6.8.1-mm4 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CFLAGS="-march=athlon-xp -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth bonobo bootsplash cddb cdr chroot crypt cups curl dga directfb divx4linux dnd dvd dvdr emacs emacs-w3 encode esd evo exif fbcon ffmpeg fftw flac fmod gcj gdbm gif gimp gimpprint glut gmttria gnome gnomedb gnuplot gphoto2 gpm gs gstreamer gtk gtkhtml icq ieee1394 imagemagick imap imlib imlib2 innodb ipcs ipv6 jabber java jce jp2 jpeg kde kerberos krb4 ldap leim libg++ libgda libwww live mad maildir mailwrapper mikmod milter mmap mmx mng mozdomi mozilla mozp3p mozsvg mpeg mpeg4 mpi mplayer msn mule nas ncurses nls nntp nptl odbc oggvorbis opengl openssh oscar oss pam pda pdflib perl pic plotutils png python qt quicktime readline regexp samba scanner sdl silc skey slang slp snmp socks5 spell sqlite sse ssl svg svga tcpd threads tiff transcode truetype unicode usb v4l wmf x86 xine xinerama xml xml2 xmms xosd xprint xv zlib"
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-11-17 15:44:52 UTC
Works for me with latest stable portage on mm-sources-2.6.10_rc2-r1
Please reopen if its not fixed for you
Comment 5 Ronni Nielsen 2004-11-17 16:17:24 UTC
It still doesn't work for me!
Please help me debug this, since i have no experience in debugging shell scripts or python or ebuilds or eclasses...

I have a rather experimental system, so maybe the fault lies within my setup, but i can't see where it is!

(And i still don't get the #1 comment: Quotes are important???)
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2004-11-17 16:40:50 UTC
Ok. which kernel are you trying to merge? still the same one?
Comment 7 Ronni Nielsen 2004-11-17 17:08:00 UTC
No - i'm also merging the latest:

emerge mm-sources
Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.10_rc2-r1 to /
>>> md5 src_uri ;-) patch-2.6.10-rc2.bz2
>>> md5 src_uri ;-) linux-2.6.9.tar.bz2
>>> md5 src_uri ;-) 2.6.10-rc2-mm1.bz2
>>> Preparing to unpack ...
/usr/portage/eclass/kernel-2.eclass: line 81: [: too many arguments
/usr/portage/eclass/kernel-2.eclass: line 81: [: too many arguments
>>> Unpacking source...
>>> Unpacking linux-.6.9.tar.bz2 to /var/tmp/portage/mm-sources-2.6.10_rc2-r1/work
bzip2: Can't open input file /usr/portage/distfiles/linux-.6.9.tar.bz2: No such file or directory.
mv: kan ikke udf
Comment 8 Ronni Nielsen 2004-11-17 17:08:00 UTC
No - i'm also merging the latest:

emerge mm-sources
Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.10_rc2-r1 to /
>>> md5 src_uri ;-) patch-2.6.10-rc2.bz2
>>> md5 src_uri ;-) linux-2.6.9.tar.bz2
>>> md5 src_uri ;-) 2.6.10-rc2-mm1.bz2
>>> Preparing to unpack ...
/usr/portage/eclass/kernel-2.eclass: line 81: [: too many arguments
/usr/portage/eclass/kernel-2.eclass: line 81: [: too many arguments
>>> Unpacking source...
>>> Unpacking linux-.6.9.tar.bz2 to /var/tmp/portage/mm-sources-2.6.10_rc2-r1/work
bzip2: Can't open input file /usr/portage/distfiles/linux-.6.9.tar.bz2: No such file or directory.
mv: kan ikke udføre stat() 'linux-.6.9': Ingen sådan fil eller filkatalog

!!! ERROR: sys-kernel/mm-sources-2.6.10_rc2-r1 failed.
!!! Function universal_unpack, Line 130, Exitcode 1
!!! Unable to move source tree to 2.6.10-rc2-mm1.
!!! If you need support, post the topmost build error, NOT this status message.
Comment 9 Ronni Nielsen 2004-11-17 17:13:06 UTC
HA! I found the problem :-)
Setting LANG=C in /etc/env.d/02locale and env-update'ing and . /etc/profile does the trick:
old setting was:
LANG="da_DK.UTF-8"
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-18 04:11:11 UTC
Maybe we should have portage always set the LANG-environment to C when merging?
It makes bugreports easier, because the error-messages cannot be in the native language and also will avoid some bugreports like this one.

(speaking as a german who has had some problems while reporting bugs with german output)
Comment 11 John Mylchreest (RETIRED) gentoo-dev 2004-11-18 14:36:39 UTC
funnily enough, the kernel-2 eclass sets LANG="C" for some things, never seen it scre up on cut though.
I will look at sorting something out :)
Comment 12 John Mylchreest (RETIRED) gentoo-dev 2004-12-01 11:32:59 UTC
accepting bug.
Comment 13 John Mylchreest (RETIRED) gentoo-dev 2004-12-10 15:12:13 UTC
Do you still experience these problems now?
there have been several changes.
cheers