Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579806 - portage-2.2.28 weird handling of package.mask
Summary: portage-2.2.28 weird handling of package.mask
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 06:37 UTC by nobody
Modified: 2016-04-13 06:41 UTC (History)
0 users

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 nobody 2016-04-13 06:37:25 UTC
Ok, so i have linux-headers mask, but portage is acting strange with it, it mistake the version of the mask in one case, and it ignore my mask in another one!

Here's my /etc/portage/package.mask/toolchain content about linux-headers
>sys-kernel/linux-headers-3.9

Here's portage output with:
emerge -1upv =linux-headers-3.18
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     U #] sys-kernel/linux-headers-3.18::gentoo [3.9::gentoo] 3 692 KiB
Total: 1 package (1 upgrade), Size of downloads: 3 692 KiB
The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by =linux-headers-3.18 (argument)
# /etc/portage/package.mask/toolchain:
=sys-kernel/linux-headers-3.18
NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

* please note how crazy portage is, it should had tell me [UD] going from 3.9 down to 3.18.

emerge -1upv linux-headers
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     UD ] sys-kernel/linux-headers-2.4.36::gentoo [3.9::gentoo] 24 948 KiB
Total: 1 package (1 downgrade), Size of downloads: 24 948 KiB

Another thing that is crazy, it's why i was looking at this:
emerge -1upv iproute2
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     U #] sys-kernel/linux-headers-4.5::gentoo [3.9::gentoo] 3 830 KiB
[ebuild     U  ] sys-apps/iproute2-4.5.0::gentoo [4.0.0-r2::gentoo] USE="berkdb iptables -atm -ipv6 -minimal (-selinux)" 0 KiB
Total: 2 packages (2 upgrades), Size of downloads: 3 830 KiB
The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by virtual/os-headers-0::gentoo
# required by @system
# required by @world (argument)
# /etc/portage/package.mask/toolchain:
=sys-kernel/linux-headers-4.5

* Now portage wish version 4.5 of linux-headers! It should be ok if iproute2-4.5.0 ebuild is forcing that version, but it's not!!!
grep linux-headers /usr/portage/sys-apps/iproute2/iproute2-4.5.0.ebuild
# We require newer linux-headers for ipset support #549948 and some defines #553876
	>=sys-kernel/linux-headers-3.16
	# linux-headers-3.8 until that goes stable.  #467716


Reproducible: Always

Actual Results:  
finally i remove the /etc/portage/package.mask/toolchain entry and update my linux-headers to 3.18.

but now i put it back again (i want kept linux-headers below 4.0)
and portage is still acting weird:
grep linux-headers  /etc/portage/package.mask/toolchain 
>sys-kernel/linux-headers-3.9
emerge -1u linux-headers -pv
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     UD ] sys-kernel/linux-headers-2.4.36::gentoo [3.18::gentoo] 0 KiB
Total: 1 package (1 downgrade), Size of downloads: 0 KiB




emerge --info
Portage 2.2.28 (python 3.4.3-final-0, default/linux/x86/13.0, gcc-4.9.2, glibc-2.20-r2, 3.18.30 i686)
=================================================================
System uname: Linux-3.18.30-i686-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    16574584 total,  14180156 free
KiB Swap:    7167996 total,   7167996 free
Timestamp of repository gentoo: Fri, 08 Apr 2016 16:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

hasufell
    location: /var/lib/layman/hasufell
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell -fstack-protector-strong"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell -fstack-protector-strong"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --buildpkg"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distcc-pump ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org ftp://mirror.ovh.net/gentoo-distfiles http://gentoo.mirror.sdv.fr/  http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/usr/lib/systemd /etc/systemd"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-Ol -Wl,--as-needed"
MAKEOPTS="-j12 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amarok apng audacious audio berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbase dbus device-mapper divx dri dvd dvdread embedded encode exif extras fbsplash ffmpeg firefox flac ftp gdbm gdu glitz gmedia gnutls gstreamer gtk gtk2 gudev hddtemp iconv icu imap introspection ipod java javascript jpeg jpeg2k kde lame libcaca libnotify live lm_sensors logrotate lzo maildir matroska mdnsresponder-compat midi mikmod minizip mjpeg mng mod modplug modules moznomail moznoxft mp3 mp4 mp4live mpeg mpeg2 mplayer msn musepack ncurses network nfs nls nptl nsplugin ntfs ogg openal opengl openmp pam pcre pdf png policykit python qt3support qt4 readline sdl sdl-image sensord session skins smp sqlite ssl startup-notification stream subtitles svg tcpd tga theora threads thunderbird tiff timidity truetype type1 udev unicode usb v4l v4l2 vcd vdpau vlm vorbis webkit wma wmf wxwidgets wxwindows x264 x86 xattr xcb xcomposite xine xinerama xosd xulrunner xv xvid zip zlib" ABI_X86="32" ALSA_CARDS="intel-hda" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby20" USERLAND="GNU" VIDEO_CARDS="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:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 nobody 2016-04-13 06:41:57 UTC
oops, my bad i figure it out, i remove last 9 into my package.mask, linux-headers mask should be 3.99 and not 3.9.

sorry for the noise