Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 573628

Summary: Portage calculates unnecessary downgrade
Product: Portage Development Reporter: gerion <gerion.entrup>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gerion 2016-02-02 00:32:33 UTC
When I wan't to do a regular update, portage always wants to downgrade x265 to the latest stable version. If I merge all the packages manually, it sees no problem.

Sorry for the bad description, I'll post the commandline for better unterstanding.

Reproducible: Always

Steps to Reproduce:
Not sure, if this is generally reproducable. For me it is:
1. Update the symtem.
Actual Results:  
Portage wants to downgrade x265.

Expected Results:  
Portage does not do anything with x265 at all.

Here are my commandline logs:
# emerge -auND world --keep-going -j2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libmnl-1.0.3-r1  USE="-examples -static-libs" 
[ebuild     U  ] dev-libs/nss-3.21-r2 [3.20.1]
[ebuild     U  ] sys-apps/iproute2-4.3.0 [3.19.0]
[ebuild     U  ] dev-perl/ExtUtils-Depends-0.404.0 [0.308.0]
[ebuild     U  ] dev-perl/glib-perl-1.314.0 [1.301.0]
[ebuild     UD#] media-libs/x265-1.8-r3 [9999] USE="-12bit*" 
[ebuild   R    ] dev-tex/xcolor-2.11  USE="-doc%" 
[ebuild   R   *] media-video/ffmpeg-9999  USE="(-aac%*) (-aacplus%*)" 
[ebuild     U  ] games-strategy/hedgewars-0.9.22 [0.9.21.1]
[ebuild   R   *] kde-apps/okular-5.9999  USE="{-test%} (-dpi%)" 

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by media-video/vlc-9999::gentoo
# required by media-libs/phonon-vlc-0.7.2::gentoo
# required by media-libs/phonon-4.7.2::gentoo[vlc]
# required by kde-apps/okular-5.9999::kde
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/mask:
#Portage always want to install a minor x265
=media-libs/x265-1.8-r3

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No] n
# emerge -a1 okular x265 libmnl nss iproute2 ExtUtils-Depends glib-perl xcolor ffmpeg hedgewars

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libmnl-1.0.3-r1  USE="-examples -static-libs" 
[ebuild     U  ] dev-libs/nss-3.21-r2 [3.20.1]
[ebuild     U  ] sys-apps/iproute2-4.3.0 [3.19.0]
[ebuild     U  ] dev-perl/ExtUtils-Depends-0.404.0 [0.308.0]
[ebuild     U  ] dev-perl/glib-perl-1.314.0 [1.301.0]
[ebuild   R   *] media-libs/x265-9999 
[ebuild   R    ] dev-tex/xcolor-2.11  USE="-doc%" 
[ebuild   R   *] media-video/ffmpeg-9999 
[ebuild     U  ] games-strategy/hedgewars-0.9.22 [0.9.21.1]
[ebuild   R   *] kde-apps/okular-5.9999  USE="{-test%}" 

Would you like to merge these packages? [Yes/No]



My package.mask:
# cat /etc/portage/package.mask/mask 
...
#Portage always want to install a minor x265
<media-libs/x265-9999

The packages in the "stacktrace":
# eix -e vlc
[I] media-video/vlc
     Available versions:  2.1.5-r1(0/5-7) **2.1.9999(0/5-7) 2.2.1-r1(0/5-8) (**)2.2.9999(0/5-8) (**)9999(0/5-8) {+X a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec +avformat bidi bluray cdda cddb chromaprint chromecast dbus dc1394 debug dirac direct2d directfb directx dshow dts dvb +dvbpsi dvd dxva2 egl +encode faad fbosd fdk +ffmpeg flac fluidsynth fontconfig +gcrypt gme gnome gnutls growl httpd ieee1394 ios-vout jack jpeg kate kde libass libav libcaca libnotify libproxy (+)libsamplerate libtar libtiger linsys lirc live lua +macosx +macosx-audio (+)macosx-dialog-provider (+)macosx-eyetv macosx-notifications (+)macosx-qtkit (+)macosx-quartztext +macosx-vout matroska media-library mmx modplug mp3 mpeg mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus oss png portaudio (+)postproc projectm pulseaudio pvr +qt4 qt5 rdp rtsp run-as-root samba schroedinger sdl sdl-image sftp shine shout sid skins speex sqlite sse svg switcher +swscale taglib test theora tremor truetype twolame udev upnp v4l vaapi vcd vcdx vdpau vlm vnc vorbis vpx waveout wingdi wma-fixed x264 x265 +xcb xml xosd xv zeroconf zvbi CPU_FLAGS_X86="mmx sse" ELIBC="glibc"}
     Installed versions:  9999(21:11:11 26.01.2016)(X a52 aalib alsa avcodec avformat bluray cddb dbus dvbpsi dvd encode ffmpeg flac gcrypt jack jpeg kde libass libnotify libsamplerate lirc live matroska mp3 mpeg musepack ncurses ogg opengl opus png postproc projectm rtsp sdl shout speex svg swscale theora truetype udev vcd vlm vorbis vpx x264 x265 xcb xml xv -altivec -audioqueue -bidi -chromaprint -chromecast -dc1394 -debug -directfb -directx -dts -dvb -dxva2 -faad -fdk -fluidsynth -fontconfig -gme -gnutls -httpd -ieee1394 -kate -libav -libcaca -libtar -libtiger -linsys -lua -macosx-dialog-provider -macosx-eyetv -macosx-notifications -macosx-qtkit -macosx-quartztext -media-library -modplug -mtp -neon -omxil -opencv -optimisememory -pulseaudio -qt4 -qt5 -rdp -run-as-root -samba -schroedinger -sdl-image -sftp -sid -skins -taglib -test -tremor -twolame -upnp -v4l -vaapi -vdpau -vnc -wma-fixed -zeroconf -zvbi CPU_FLAGS_X86="mmx sse" ELIBC="glibc")
     Homepage:            http://www.videolan.org/vlc/
     Description:         VLC media player - Video player and streamer

# eix -e phonon-vlc
[I] media-libs/phonon-vlc
     Available versions:  0.7.2 ~0.8.2 **9999 {debug +qt4 qt5}
     Installed versions:  0.7.2(06:24:14 05.09.2015)(qt4 qt5 -debug)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon/phonon-vlc
     Description:         Phonon VLC backend

# eix -e phonon
[I] media-libs/phonon
     Available versions:  4.7.2 ~4.8.3 ~4.8.3-r1 **9999 {aqua debug designer gstreamer pulseaudio +qt4 qt5 +vlc zeitgeist ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  4.7.2(22:26:35 09.05.2015)(designer qt4 qt5 vlc -aqua -debug -gstreamer -pulseaudio -zeitgeist)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon
     Description:         KDE multimedia API

# eix -e okular
[I] kde-apps/okular
     Available versions:  
     (4)    4.14.3(4/4.14)^t ~15.08.3-r1(4/15.08)^t ~15.12.1(4/15.12)^t {M}~15.12.1(4/15.12)^t[1] **15.12.49.9999(4/15.12)^mt[1] **9999(4/9999)^mt[1]
     (5)    (**)5.9999[1]
       {aqua chm crypt debug djvu dpi ebook +handbook +jpeg kde mobi +pdf +postscript test +tiff}
     Installed versions:  5.9999(5)^t[1](23:11:23 26.01.2016)(chm crypt ebook handbook jpeg pdf postscript tiff -debug -djvu -dpi)
     Homepage:            https://okular.kde.org https://www.kde.org/applications/graphics/okular
     Description:         Okular is a universal document viewer based on KPDF for KDE 4

[1] "kde" /var/lib/layman/kde

# eix -e x265
[I] media-libs/x265
     Available versions:  [m]1.5(0/43) [m]~1.7(0/59) [m]~1.8(0/68) [m]1.8-r3(0/68) [m]~1.9(0/79) (**)9999(0/80) {+10bit (+)12bit numa pic test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  9999(18:22:13 30.01.2016)(10bit 12bit -numa -pic -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://x265.org/
     Description:         Library for encoding video streams into the H.265/HEVC format



My portage info:
# emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.2.8-gentoo x86_64)
=================================================================
System uname: Linux-4.2.8-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2
KiB Mem:    12164536 total,   5451192 free
KiB Swap:    6142972 total,   6142972 free
Timestamp of repository gentoo: Mon, 01 Feb 2016 21:15:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 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.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 1

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 2

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 3

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 4

bobwya
    location: /var/lib/layman/bobwya
    masters: gentoo
    priority: 5

tox-overlay
    location: /var/lib/layman/tox-overlay
    masters: gentoo
    priority: 6

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 7

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

gerislay
    location: /usr/local/portage
    masters: gentoo
    priority: 9

Installed sets: @ownstuff
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.netcologne.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.tiscali.nl/"
LANG="de_DE.UTF8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 appindicator ayatana bash-completion berkdb bluray branding bzip2 cairo cdda cdr celt cli consolekit cracklib crypt cups cxx dbus declarative dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk handbook hddtemp iconv icq ipod ipv6 jabber jack java java6 jingle jpeg kde kipi kontact ladspa lame lash latex lcms ldap libnotify lirc lm-sensors mad matroska matrox midi mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer multilib musepack musicbrainz ncurses nls nptl ogg opengl openmp opus otr pam pango pcre pdf phonon plasma png policykit portaudio posix ppds qml qt3-support qt3support qt4 quicktime readline rss sdl seccomp semantic-desktop session sound sox speex spell sse sse2 ssl startup-notification svg tcpd theora threads tiff timidity truetype udev udisks unicode upower usb v4l2 vaapi vcd vdpau vim-syntax vorbis vpx wavpack wayland widgets win32codecs wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" 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" 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 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="de en en_US en_GB" LIRC_DEVICES="udp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="radeonsi radeon intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Andreas Sturmlechner gentoo-dev 2016-02-02 00:49:11 UTC
$ equery l -ip x265
Comment 2 Andreas Sturmlechner gentoo-dev 2016-02-02 00:51:38 UTC
Could it be that simply vlc wasn't rebuild since you upgraded x265?
Comment 3 gerion 2016-02-02 15:14:24 UTC
$ equery l -ip x265
 * Searching for x265 ...
[-P-] [M ] media-libs/x265-1.5:0/43
[-P-] [M~] media-libs/x265-1.7:0/59
[-P-] [M~] media-libs/x265-1.8:0/68
[-P-] [M ] media-libs/x265-1.8-r3:0/68
[-P-] [M~] media-libs/x265-1.9:0/79
[IP-] [  ] media-libs/x265-9999:0/80

eix says, that the vlc build is older than the one of x265, but how is this related to the issue? Should I remerge vlc?
In my (maybe naive) view, portage should calculate a vlc rebuild then?