Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568084 - sys-apps/portage: emerge wants to rebuild the same packages with preserved-rebuild (virtual/libgudev consumers)
Summary: sys-apps/portage: emerge wants to rebuild the same packages with preserved-re...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 373873
  Show dependency tree
 
Reported: 2015-12-12 17:36 UTC by Agostino Sarubbo
Modified: 2015-12-17 23:18 UTC (History)
3 users (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 Agostino Sarubbo gentoo-dev 2015-12-12 17:36:07 UTC
After emerging systemd[-gudev] and emerging dev-libs/libgudev-230 I have this situation:

(chroot) vh ~ # ls -l /usr/lib64/libgudev*
lrwxrwxrwx 1 root root    21 12 dic 12.23 /usr/lib64/libgudev-1.0.so -> libgudev-1.0.so.0.2.0
lrwxrwxrwx 1 root root    21 12 dic 12.23 /usr/lib64/libgudev-1.0.so.0 -> libgudev-1.0.so.0.2.0
-rwxr-xr-x 1 root root 39648 12 dic 12.23 /usr/lib64/libgudev-1.0.so.0.2.0

(chroot) vh ~ # emerge @preserved-rebuild -pvq
[ebuild   R   ] net-misc/modemmanager-1.4.12  USE="introspection policykit qmi -mbim -qmi-newest -vala" 
[ebuild   R   ] sys-power/upower-0.99.2-r1  USE="introspection -ios (-selinux)" 
[ebuild   R   ] sys-fs/udisks-2.1.4  USE="gptfdisk introspection -cryptsetup -debug (-selinux) -systemd" 
[ebuild   R   ] dev-libs/libwacom-0.11  USE="-doc -static-libs" 


(chroot) vh ~ # portageq list_preserved_libs /
sys-apps/systemd-218-r5 /usr/lib64/libgudev-1.0.so.0.2.0 /usr/lib64/libgudev-1.0.so.0


(chroot) vh ~ # eix -e systemd
[I] sys-apps/systemd
     Available versions:  218-r5(0/2) (~)226-r2(0/2) ~228-r1(0/2) **9999(0/2) {acl apparmor audit cryptsetup curl doc elfutils gcrypt gnuefi gudev http idn importd introspection (+)kdbus +kmod +lz4 lzma nat pam policykit python qrcode +seccomp selinux ssl sysv-utils terminal test vanilla xkb ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python2_7 python3_3 python3_4" PYTHON_TARGETS="python2_7 python3_3 python3_4"}
     Installed versions:  226-r2(17:26:30 12/12/2015)(acl kdbus kmod lz4 pam policykit seccomp ssl -apparmor -audit -cryptsetup -curl -elfutils -gcrypt -gnuefi -http -idn -importd -lzma -nat -qrcode -selinux -sysv-utils -test -vanilla -xkb ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Comment 1 Agostino Sarubbo gentoo-dev 2015-12-12 17:36:22 UTC
Portage 2.2.24 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 3.2.69-hardened-r11-xxxx-std-ipv6-64 x86_64)
=================================================================
                         System Settings                                                                                                                                                        
=================================================================                                                                                                                               
System uname: Linux-3.2.69-hardened-r11-xxxx-std-ipv6-64-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_V2_@_3.40GHz-with-gentoo-2.2                                                                       
KiB Mem:    32857376 total,   3800112 free                                                                                                                                                      
KiB Swap:          0 total,         0 free                                                                                                                                                      
Timestamp of repository gentoo: Sat, 12 Dec 2015 06:41:49 +0000                                                                                                                                 
sh bash 4.3_p39                                                                                                                                                                                 
ld ld di GNU (Gentoo 2.25.1 p1.1) 2.25.1                                                                                                                                                        
app-shells/bash:          4.3_p39::gentoo                                                                                                                                                       
dev-java/java-config:     2.2.0::gentoo                                                                                                                                                         
dev-lang/perl:            5.20.2::gentoo                                                                                                                                                        
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo                                                                                                                       
dev-util/cmake:           2.8.12.2-r1::gentoo                                                                                                                                                   
sys-apps/baselayout:      2.2::gentoo                                                                                                                                                           
sys-apps/sandbox:         2.6-r1::gentoo                                                                                                                                                        
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo                                                                                                                                            
sys-devel/automake:       1.11.6-r1::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: 3.18::gentoo (virtual/os-headers)                                                                                                                                     
sys-libs/glibc:           2.21-r1::gentoo                                                                                                                                                       
Repositories:                                                                                                                                                                                   
                                                                                                                                                                                                
gentoo                                                                                                                                                                                          
    location: /usr/portage                                                                                                                                                                      
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Wformat -Werror=format-security -g0 -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/gamedata/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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="-march=native -Wformat -Werror=format-security -g0 -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y -1"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j8"
PKGDIR="/root/.pkg"
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 acl amd64 berkdb bzip2 cairo cli consolekit cracklib crypt cxx dbus dri fortran gdbm gudev hwdb iconv icu ipv6 jpeg minizip mmx mmxext modules multilib ncurses nls nptl ogg opengl openmp pam pax_kernel pcre png policykit python qt3support qt4 readline seccomp session sse sse2 ssl tcpd unicode vorbis xattr zlib" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="am fil zh af ca cs da de el es et gl hu nb nl pl pt ro ru sk sl sv uk bg cy en eo fo ga he id ku lt lv mk ms nn sw tn zu ja zh_TW en_GB pt_BR ko zh_CN ar en_CA fi kk oc sr tr fa wa nds as be bn bn_BD bn_IN en_US es_AR es_CL es_ES es_MX eu fy fy_NL ga_IE gu gu_IN hi hi_IN is ka kn ml mr nn_NO or pa pa_IN pt_PT rm si sq sv_SE ta ta_LK te th vi ast dz km my om sh ug uz ca@valencia sr@ijekavian sr@ijekavianlatin sr@latin csb hne mai se es_LA fr_CA zh_HK br la no es_CR et_EE sr_CS bo hsb hy mn sr@Latn lb ne bs tg uz@cyrillic xh be_BY brx ca_XV dgo en_ZA gd kok ks ky lo mni nr ns pap ps rw sa_IN sat sd ss st sw_TZ ti ts ve mt ia az me tl ak hy_AM lg nso son ur_PK it fr nb nb_NO hr nan ur tk cs_CZ da_DK de_1901 de_CH en_AU lt_LT pl_PL sa sk_SK th_TH ta_IN tt sco ha mi ven ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN ar_SY te_IN de_DE es_VE fa_IR fr_FR hu_HU id_ID it_IT ja_JP ka_GE nl_NL sr_BA sr_RS ca_ES fi_FI he_IL jv ru_gold yi eu_ES byn crh gez haw so tig tt@iqtelif wal wo ca_valencia kmr_Latn sid sr_Latn bg_BG ko_KR" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition auth_pam cache_purge dav dav_ext degradation echo fancyindex flv geoip gunzip gzip_static headers_more image_filter lua metrics mp4 naxsi perl push push_stream random_index realip secure_link security slowfs_cache spdy stub_status sub upload_progress upstream_check xslt auth_request mogilefs sticky" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_USER_TARGETS="aarch64 alpha arm armeb cris i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.2.24::gentoo was built with the following:
USE="(ipc) xattr -build -doc -epydoc (-selinux)" ABI_X86="64" LINGUAS="ru" PYTHON_TARGETS="python2_7 python3_4 (-pypy) -python3_3 -python3_5"
Comment 2 Zac Medico gentoo-dev 2015-12-12 18:25:32 UTC
What version of virtual/libgudev do you have installed? If the virtual/libgudev dependencies appear to be satisfied even though you have systemd[-gudev], then the virtual/libgudev dependencies might not be specified correctly.

Do you have anything related to libgudev in /etc/portage/profile/package.provided? That could trigger this sort of behavior.
Comment 3 Agostino Sarubbo gentoo-dev 2015-12-13 11:18:08 UTC
(In reply to Zac Medico from comment #2)
> What version of virtual/libgudev do you have installed?
230


> Do you have anything related to libgudev in
> /etc/portage/profile/package.provided?
No
Comment 4 Zac Medico gentoo-dev 2015-12-13 22:07:38 UTC
What order were sys-apps/systemd-218-r5 and dev-libs/libgudev-230 merged in, according to /var/log/emerge.log?
Comment 5 Agostino Sarubbo gentoo-dev 2015-12-14 14:27:47 UTC
# qlop -l | grep systemd
Fri Nov 27 08:43:02 2015 >>> sys-apps/systemd-218-r5
Sat Dec 12 12:11:50 2015 >>> sys-apps/systemd-218-r5
Sat Dec 12 17:26:42 2015 >>> sys-apps/systemd-226-r2
# qlop -l | grep libgudev
Sat Dec 12 12:12:05 2015 >>> dev-libs/libgudev-230
Sat Dec 12 12:12:14 2015 >>> virtual/libgudev-230
Sat Dec 12 12:23:39 2015 >>> dev-libs/libgudev-230
Sat Dec 12 17:41:52 2015 >>> dev-libs/libgudev-230

I tried to upgrade systemd but I had no result.
Comment 6 Zac Medico gentoo-dev 2015-12-15 05:02:51 UTC
I was not able to reproduce the problem with a "typical" upgrade to virtual/libgudev-230, which which emerge executes in the following order:

[ebuild   R    ] sys-apps/systemd-218-r5:0/2::gentoo  USE="-gudev*"
[ebuild  N    ~] dev-libs/libgudev-230::gentoo
[ebuild     U ~] virtual/libgudev-230::gentoo [215-r3::gentoo] USE="(-systemd%*)"

The merge log shows that it preserved the relevant libraries:

>>> needed    sym /usr/lib64/libgudev-1.0.so.0
>>> needed    obj /usr/lib64/libgudev-1.0.so.0.2.0

After the upgrade, the libraries were no longer registered in preserved_libs_registry (as expected when preserve-libs is behaving correctly).

(In reply to Agostino Sarubbo from comment #5)
> Sat Dec 12 12:11:50 2015 >>> sys-apps/systemd-218-r5
> Sat Dec 12 12:12:05 2015 >>> dev-libs/libgudev-230
> Sat Dec 12 12:12:14 2015 >>> virtual/libgudev-230

A notable difference in your case was that you didn't have an existing version of virtual/libgudev installed. Did this happen as part of a normal upgrade?