Hi all, Sorry to bother you, but to me that smells like a bug in portage: If I copy sys-kernel/vanilla-sources/vanilla-sources-3.0.1.ebuild into a local (fresh and otherwise empty) overlay as: sys-kernel/nogo-sources/nogo-sources-3.0.1.ebuild Diff shows me that the two ebuilds are identical. Yet still: If I run ebuild sys-kernel/nogo-sources/nogo-sources-3.0.1.ebuild digest the resulting Manifest does not contain any 3.0.1 patch! Nor does emerge -vt sys-kernel/nogo-sources/nogo-sources-3.0.1.ebuild pull-in/apply any 3.0.1 patch (see my attached emerge log). But emerging the original vanilla-source-3.0.1 ebuild from portage works fine for me) :/ As both my original nogo-sources ebuild (that I always successfully used for all 2.6.* kernels (including 3.0)) AND the in portage vanilla source ebuild both had the SAME above problem (of not pulling in any 3.0.1 patch/sources) --> my guess it not a broken ebuild, but a problem within portage. That does not make any sense, doesn't it? :/ Reproducible: Always Portage 2.2.0_alpha50 (default/linux/amd64/10.0, gcc-4.4.6, glibc-2.11.3-r0, 3.0.0-nogo-pixel x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.0.0-nogo-pixel-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.3 Timestamp of tree: Tue, 09 Aug 2011 13:45:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.7-r2, 2.7.2-r2, 3.2-r2 dev-util/ccache: 2.4-r9 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1::pentoo sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.6 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.11.3 Repositories: gentoo science vmware x11 dev-jokey java-overlay lisp pentoo mozilla mysql sunrise kPosern-local test Installed sets: @dev, @games, @gentoo, @info, @mm, @net, @office, @sys, @sys.specific, @tmp, @virt, @x ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 LOKI-EULA sun-bcla-java-vm skype-eula AdobeFlash-10.1 Introversion" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe" DISTDIR="/vola/distfiles" EMERGE_DEFAULT_OPTS="--nospinner -1" FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fail-clean fixlafiles fixpackages metadata-transfer news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe" GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://mirror.the-best-hosting.net rsync://de-mirror.org/gentoo/" LANG="en_GB.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en de fr en_GB" MAKEOPTS="-j7" PKGDIR="/vola/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS=" --exclude-from="/etc/portage/rsync_excludes" --delete-excluded --quiet" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/mnt/gentoo.build" PORTDIR="/vola/portage" PORTDIR_OVERLAY="/vola/layman/science /vola/layman/vmware /vola/layman/x11 /vola/layman/jokey /vola/layman/java-overlay /vola/layman/lisp /vola/layman/pentoo /vola/layman/mozilla /vola/layman/mysql /vola/layman/sunrise /LINKS/overlays/mine /LINKS/overlays/test" SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage" USE="3ds 64bit 7zip R X a52 aac aalib ace acl acpi activefilter additions administrator agg aio alsa amd64 amr amrnb amrwb animgif apache2 apng applet ares async atm atmo atop audio auth bash-completion battery berkdb bittorrent bl blender blender-game bs2b bugzilla bundledlibevent bzip2 cairo ccache cdaudio cdda cddax cddb cdinstall cdio cdparanoia cdr cdrom cdsound cgi chipcard chm chroot clamd clamdtop cli clisp common-lisp connection-sharing corefonts cpufreq cpulimit cracklib crypt css cuda cue cups curl cxx dc1394 device-mapper devil dga dhclient dia dirac directfb disk-partition djvu dmi dnd docbook dot dri drm dts dv dvb dvd dvdnav dvdr dvdread dvi eap-tls eclipse emovix enca encode eolconv escreen exif expat extensions extra extra-algorithms extra-cardsets faac faad fat fbcon fbcondecor festival ffmpeg fftw flac flash flite fltk fluidsynth fontconfig foomaticdb fortran fpx freesound ftp fts3 fuse galago gallium games garmin gcdmaster gcj gcrypt gd gdal gdbm gdl gdu gecko geldkarte geoip ggi gif gimp git github glade glib glitz glsa glut gme gmp gnome-keyring gnuplot gnutls gpac gpg gpgme gphoto2 gpm grace grammar graphics graphviz gre grub gs gsl gtk gtkhtml guile gzip h323 hbci hddtemp hdri hpn hvm icecast iconv icoutils icu id3 id3tag idea idn ieee1394 imagemagick imap imlib inkjar inotify inquisitio ioctl iptc ipv6 jabber jadetex java6 jbig jce jingle jpeg jpeg2k kate kernel-helper key-screen keyring keyscrub kqemu kvm ladspa lame laptop lastfm lastfmradio latex lcms libass libburn libcaca libgda libsamplerate libsexy libssh2 libsysfs libtiger libv4l2 lightning linuxthreads-tls live lm_sensors logrotate logwatch lua lvm lvm2 lyrics lyrics-screen lyx lzma lzo mad madwifi maildir mailwrapper maps matroska mbox mbrola md5sum mdev mem-scramble metalink metric midi mikmod mime mimencode ming mixer mjpeg mkl mmx mmxext mng moc modplug modules moneyplex monolithic-build mp2 mp3 mpd mpeg mpi mplayer mtp mudflap multilib multiprocess multiuser musepack music musicbrainz nas ncurses nemesi net nethack network networking nntp nocd normalize nptl nptlonly nut nvidia objc objc++ objc-gc ocaml ocamlopt odbc offlinehelp ofx ogg ogm ole openal opencl openct openexr opengl openmp openssl opensslcrypt openvg openvpn pam pango parted passwordsave pcap pcmcia pcre pcsc-lite pda pdf perl php phyp pink pkcs11 player plotutils pm-utils pmu png pnm pop portage portaudio posix postscript pppd pptp preview-latex proj projectm pstricks publishers pvr pygrub python q32 qa qdbm qemu qt3support quicktime quotes radio radius rar raw rcs rdesktop rdesktop-vrdp readline realmedia regex reiser4 replaygain rle romio rtc rtf rtmp rtsp samba sasl scanner schroedinger science screen screenshot script scripting scripts sdl sdl-image sdl-sound sdlaudio search search-index search-screen secure-delete security session shine shout sid sidebar sieve sift skey skins slang smartcard smi smime sndfile snmp socks5 sound sounds soup sox speech speex spell spice sqlite sqlite3 srt sse sse2 sse3 sse4 sse4a ssh ssh2 ssl ssse3 stream stream4udp svg svgz sysfs syslog system-sqlite t1lib taglib tagwriting tetex tex4ht tga theora thesaurus threads threadsafe thunderbird tidy tiff timidity tivo tk tls tools tor tordns truetype twolame type1 udev uml unicode unlock-notify unzip usb userlocales utils v4l2 vaapi vapigen vcd vcdinfo vcdx vdpau vhost-net video videos vim vim-pager vim-syntax vim-with-x virtualbox visibility visualizer vlm vmware-tools vmx voice vorbis vpx wav wavpack webkit webmail win32 wineappdb winetriks wma wma-fixed wmf wmp wxwindows x264 xanim xattr xcomposite xen xetex xfce xft xinerama xml xmp xorg xosd xpm xscreensaver xslt xterm xv xvfb xvid xvmc yv12 zip zlib zoran zsh-completion zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr en_GB" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa i810 fbdev intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sys-kernel/nogo-sources-2.6.35.13 was built with the following: USE="currentconfig (multilib) oneslot symlink -atop -build -deblob -reiser4 -toshiba-acpi -tuxonice" sys-kernel/nogo-sources-2.6.39.3 was built with the following: USE="currentconfig (multilib) oneslot symlink -atop -build -reiser4 -toshiba-acpi -tuxonice" sys-kernel/nogo-sources-3.0 was built with the following: USE="currentconfig (multilib) oneslot symlink -atop -build -reiser4 -toshiba-acpi -tuxonice" sys-kernel/nogo-sources-3.0.1 was built with the following: USE="(multilib) symlink -build -deblob"
Created attachment 282835 [details] emerge log of fresh nogo-sources-3.0.1 install (but the same happens on reinstall)
..i'm going to guess that this issue actually has to do with ${PN} used for obtaining the patch that raises the linux-3.0 tarball up to 3.0.1. See line 194 or so of /usr/portage/eclass/kernel-2.eclass. If you wish to build your own custom ebuild for a kernel (that's not called vanilla-sources), you will need to do more work than copying a vanilla-sources ebuild. Perhaps a ck-sources or other -sources ebuild would be a better starting point? Now, if you find that your custom-named ebuild WORKS for stable portage but not portage-2.2, then please re-open the bug. From what I can tell by reading the eclass, though, it won't work.
(In reply to comment #2) > ..i'm going to guess that this issue actually has to do with ${PN} used for > obtaining the patch that raises the linux-3.0 tarball up to 3.0.1. > > See line 194 or so of /usr/portage/eclass/kernel-2.eclass. > > If you wish to build your own custom ebuild for a kernel (that's not called > vanilla-sources), you will need to do more work than copying a vanilla-sources > ebuild. Perhaps a ck-sources or other -sources ebuild would be a better > starting point? > > Now, if you find that your custom-named ebuild WORKS for stable portage but not > portage-2.2, then please re-open the bug. From what I can tell by reading the > eclass, though, it won't work. Sorry, that's line 241 or so of /usr/portage/eclass/kernel-2.eclass ... Unfortunately it seems that kernel-2.eclass is not documented in eclass-manpages. However there are a couple of things you can try.. Off the top of my head, this might work to to hard-wire the proper URI's: After the "detect_version" call in your custom-named ebuild, you could try setting the KERNEL_URI directly, via: KERNEL_URI="${KERNEL_BASE_URI}/patch-${OKV}.bz2 ${KERNEL_BASE_URI}/linux-${KV_MAJOR}.${KV_MINOR}.tar.bz2" (..which is based on the code in kernel-2.eclass..)
Created attachment 282847 [details] nogo-sources-3.0.1 ebuild
Sorry, I didn't see your comments first. But why was this working for me like charm for all 2.6.* kernels? Why just now for 3.0.1 it stops? Isn't that odd?
I moved my nogo-sources-3.0.1.ebuild to nogo-sources-2.6.39.3.ebuild and it works: debug: UNIPATCH_LIST_DEFAULT: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-2.6.39.3/distdir/patch-2.6.39.3.bz2 + I get the patch into the Manifest + emerge applies it. But the same file as -3.0.1 does not do that anymore. Why did this behavior now change for major kernel versions >= 3?
I am reopening this bug, because kernel-2.eclass seemed to have changed (without any for me obvious reason) its behaivour for kernel major version 3 in regards to this bug report. In the sense of "In dubio pro reo", I would like to get an explanation to why this was changed, otherwise it still clearly seems to be / could be a bug in the eclass.
This is the relevant debug output for 2.6.39.3: debug: inherit: kernel-2 -> /mnt/vola/sd/portage/eclass/kernel-2.eclass debug: *** Multiple Inheritence (Level: 2) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: versionator -> /mnt/vola/sd/portage/eclass/versionator.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: KV_EXTRA is 3 debug: 0 EXTRAVERSION: debug: 1 EXTRAVERSION:.3 debug: 1.2 EXTRAVERSION:.3 debug: 2 EXTRAVERSION:.3 debug: PVR: 2.6.39.3 debug: CKV: 2.6.39.3 debug: OKV: 2.6.39 debug: KV: 2.6.39.3 debug: KV_FULL: 2.6.39.3 debug: KV_MAJOR: 2 debug: KV_MINOR: 6 debug: KV_PATCH: 39 debug: RELEASETYPE: debug: RELEASE: debug: UNIPATCH_LIST_DEFAULT: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-2.6.39.3/distdir/patch-2.6.39.3.bz2 debug: UNIPATCH_LIST_GENPATCHES: debug: UNIPATCH_LIST: debug: S: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-2.6.39.3/work/linux-2.6.39.3 debug: KERNEL_URI: mirror://kernel/linux/kernel/v2.0/patch-2.6.39.3.bz2 mirror://kernel/linux/kernel/v2.0/linux-2.6.39.tar.bz2
This is the relevant output for 3.0.1: debug: inherit: kernel-2 -> /mnt/vola/sd/portage/eclass/kernel-2.eclass debug: *** Multiple Inheritence (Level: 2) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: versionator -> /mnt/vola/sd/portage/eclass/versionator.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: KV_EXTRA is debug: 0 EXTRAVERSION: debug: 1 EXTRAVERSION: debug: 1.2 EXTRAVERSION: debug: 2 EXTRAVERSION: debug: PVR: 3.0.1 debug: CKV: 3.0.1 debug: OKV: 3.0.1 debug: KV: 3.0.1 debug: KV_FULL: 3.0.1 debug: KV_MAJOR: 3 debug: KV_MINOR: 0 debug: KV_PATCH: 1 debug: RELEASETYPE: debug: RELEASE: debug: UNIPATCH_LIST_DEFAULT: debug: UNIPATCH_LIST_GENPATCHES: debug: UNIPATCH_LIST: debug: S: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-3.0.1/work/linux-3.0.1 debug: KERNEL_URI: mirror://kernel/linux/kernel/v3.0/linux-3.0.tar.bz2
... or should I have left this one as closed and opened a new bug about the kernel-2.eclass? Please advise.
I was also just now stumbling over that bug, or rather, quick fix of the kernel-2 eclass that broke my custom sources.
Created attachment 283837 [details] kernel-2.eclass Kindly test with your ebuild
Created attachment 283839 [details] kernel-2.eclass Please test this one, instead.
Created attachment 283901 [details] kernel-2.eclass Please test
Looks good to me :) --> Thanks for the fix! (Tested things with both the renamed vanilla-sources ebuild AND with my own (homebrew ;) nogo-sources ebuild and both worked as expected) debug: eclass exists: /etc/my/global/overlays/mine/eclass/kernel-2.eclass debug: inherit: kernel-2 -> /etc/my/global/overlays/mine/eclass/kernel-2.eclass debug: *** Multiple Inheritence (Level: 2) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: toolchain-funcs -> /mnt/vola/sd/portage/eclass/toolchain-funcs.eclass debug: inherit: versionator -> /mnt/vola/sd/portage/eclass/versionator.eclass debug: *** Multiple Inheritence (Level: 3) debug: inherit: eutils -> /mnt/vola/sd/portage/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 4) debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: inherit: portability -> /mnt/vola/sd/portage/eclass/portability.eclass debug: inherit: multilib -> /mnt/vola/sd/portage/eclass/multilib.eclass debug: KV_EXTRA is debug: KERNEL_BASE_URI is mirror://kernel/linux/kernel/v3.0 debug: 0 EXTRAVERSION: debug: 1 EXTRAVERSION: debug: 1.2 EXTRAVERSION: debug: 2 EXTRAVERSION: debug: PVR: 3.0.1 debug: CKV: 3.0.1 debug: OKV: 3.0.1 debug: KV: 3.0.1 debug: KV_FULL: 3.0.1 debug: KV_MAJOR: 3 debug: KV_MINOR: 0 debug: KV_PATCH: 1 debug: RELEASETYPE: debug: RELEASE: debug: UNIPATCH_LIST_DEFAULT: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-3.0.1/distdir/patch-3.0.1.bz2 debug: UNIPATCH_LIST_GENPATCHES: debug: UNIPATCH_LIST: debug: S: /mnt/gentoo.build/portage/sys-kernel/nogo-sources-3.0.1/work/linux-3.0.1 debug: KERNEL_URI: mirror://kernel/linux/kernel/v3.0/patch-3.0.1.bz2 mirror://kernel/linux/kernel/v3.0/linux-3.0.tar.bz2 debug: K_WANT_GENPATCHES:
committed