ls -l in /usr/src : drwxr-xr-x 18 root root 4096 nov 25 00:00 linux-2.6.92.6.10-rc2 Nothing more to say Reproducible: Always Steps to Reproduce: 1. emerge sys-kernel/development-sources 2. 3. Actual Results: bad directory name ! linux-2.6.92.6.10-rc2 Expected Results: linux-2.6.10-rc2 proton src # emerge info Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.1, glibc-2.3.4.20041021-r0, 2.6.7-gentoo-r11 x86_64) ================================================================= System uname: 2.6.7-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.6 distcc 2.18.2 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -fPIC" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildsyspkg ccache distlocks fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac aalib acpi aim alsa anthy apache2 audiofile berkdb bidi bitmap-fonts blender-game bonobo bootspla bzlib canna cdparanoia cdr cdrom chroot cjk crypt dga directfb divx4linux dvd dvdr dvdread edl escreen esd ethereal evo f77 faac faad fam fbcon fbdev ffmpeg fla flac fortran freetype freetype-version-1 freewnn ftp gdbm ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv icq ieee1394 imagemagick imap imlib imlib2 ipv6 jabber java jp2 jpeg junit kakasi libwww live lzo lzw lzw-tiff mad mailbox maildir matroska mbox md5sum mikmod mng motif mozilla moznocompose moznoirc moznomail mozsvg mplayer msn music mythtv nas ncurses net network nls nntp nocardbus nptl nvidia objc offensive oggvorbis openal opengl opens operanom2 oscar oss pam pdflib perl php pic png postgres pthreads python readline recode rtc samba sdl sftplogging skk slang softquota ssl svg tcpd tga theora tiff transcode truetype unicode usb userlocales v4l v4l2 vanilla xfs xine xinerama xinetd xml xml2 xmms xosd xpm xrandr xv xvid yahoo zlib zvbi"
*** Bug 72404 has been marked as a duplicate of this bug. ***
The problem seems to be line 64 in kernel-2.eclass: KV_PATCH=$(echo ${KV} | cut -d. -f3-) Is that '-' supposed to be there after -f3 or is it just a typo? In the previous version in CVS it wasn't there (see http://www.gentoo.org/cgi-bin/viewcvs.cgi/eclass/kernel-2.eclass?r1=1.46&r2=1.47)
hmm, it shouldnt be that which is causing the problem. But I'll look at this after work.
You're right John, it shouldn't be that. I only tested it on a system here at work (I don't run Gentoo here) But I discovered an other behavior which may be of interest. I did the following: # source kernel-2.eclass (I commented out some Gentoo stuff like eerror to make it work) then I set PV to "2.6.10_rc2" # PV="2.6.10_rc2" # detect_version After this, everything was OK. $S, $KV etc. had the values they should have. But then I executed detect_version once again (I did not change any variables) and after that the above variables had the value described in this bug. So I think somewhere a variable was not reset and the new content was only appended? Am I wrong?
I'm still not completely sure of the problem, but it appears portage now calls detect_version one more time after setting the environment after it last did, so therefore this has shown is evil side, Ive moved detect_version/arch to pkg_setup where it should be anyways really. This should work OK for all previous ebuilds, however for those which don't use detect_arch then they need K_NODETECTVER="yes" setting before the inherit. All current ebuilds calling detect_version and without a custom pkg_setup can now be have the detect-* calls taken out. Hope this fixes it for everyone.