Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476662 - with net-dns/libidn-1.26 there are always preserved libs
Summary: with net-dns/libidn-1.26 there are always preserved libs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-12 21:20 UTC by Agostino Sarubbo
Modified: 2013-07-13 11:55 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 Agostino Sarubbo gentoo-dev 2013-07-12 21:20:14 UTC
vbp ~ # portageq list_preserved_libs /
net-dns/libidn-1.26 /usr/lib64/libidn.so.11.6.9 /usr/lib64/libidn.so.11                                                                                                             

After doing:
rm -fr /usr/lib64/libidn.so.11.6.9 /usr/lib64/libidn.so.11 && revdep-rebuild 
I see always the preserved libs.

What's wrong?
Feel free to ask any other info before close as NEEDINFO
Comment 1 Agostino Sarubbo gentoo-dev 2013-07-12 21:20:30 UTC
Portage 2.1.12.11 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)                                                                                        
=================================================================                                                                                                                   
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2                                                                                   
KiB Mem:     2055892 total,    410088 free                                                                                                                                          
KiB Swap:    2263820 total,   2261992 free                                                                                                                                          
Timestamp of tree: Fri, 12 Jul 2013 18:30:01 +0000                                                                                                                                  
ld GNU ld (GNU Binutils) 2.23.1                                                                                                                                                     
app-shells/bash:          4.2_p45                                                                                                                                                   
dev-lang/python:          2.7.5, 3.2.5-r1                                                                                                                                           
dev-util/cmake:           2.8.10.2-r2                                                                                                                                               
sys-apps/baselayout:      2.2                                                                                                                                                       
sys-apps/openrc:          0.11.8                                                                                                                                                    
sys-apps/sandbox:         2.6-r1                                                                                                                                                    
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                
sys-devel/automake:       1.11.6, 1.12.6                                                                                                                                            
sys-devel/binutils:       2.23.1                                                                                                                                                    
sys-devel/gcc:            4.6.3                                                                                                                                                     
sys-devel/gcc-config:     1.7.3                                                                                                                                                     
sys-devel/libtool:        2.4-r1                                                                                                                                                    
sys-devel/make:           3.82-r4                                                                                                                                                   
sys-kernel/linux-headers: 3.7 (virtual/os-headers)                                                                                                                                  
sys-libs/glibc:           2.15-r3                                                                                                                                                   
Repositories: gentoo                                                                                                                                                                
ACCEPT_KEYWORDS="amd64"                                                                                                                                                             
ACCEPT_LICENSE="*"                                                                                                                                                                  
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                        
CFLAGS="-march=native -O2 -g0 -pipe"                                                                                                                                                
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                         
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"                                                                                                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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 -O2 -pipe"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://192.168.1.10/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri fortran gdbm gpm iconv kde minizip mmx modules mp3 mudflap multilib ncurses nls nptl opengl openmp pam pcre policykit qt3support qt4 readline semantic-desktop session sse sse2 ssl symlink tcpd unicode zlib" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" 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 chr jp bg_BG ko_KR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU"
USE_PYTHON="2.7 3.2"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-13 01:19:31 UTC
Why would you run revdep-rebuild when portage says it has preserved libs? It's always going to keep telling you that because revdep-rebuild doesn't remove libraries after packages have been linked against their replacements. You need to fix that through emerge and forget about revdep-rebuild if you have FEATURES=preserve-libs. Maybe
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-13 01:24:40 UTC
Maybe you need to ask dev-portage@ to expand emerge(1) to tell you even better what to do to update the @preserved-rebuild set? I don't know. In that case, you should reassign to Product -> Portage development (and so on).
Comment 4 Agostino Sarubbo gentoo-dev 2013-07-13 04:38:07 UTC
(In reply to Jeroen Roovers from comment #2)
> Why would you run revdep-rebuild when portage says it has preserved libs?
> It's always going to keep telling you that because revdep-rebuild doesn't
> remove libraries after packages have been linked against their replacements.
> You need to fix that through emerge and forget about revdep-rebuild if you
> have FEATURES=preserve-libs. Maybe

I have those library because something is linked against, so if I'm deleting the library, revdep-rebuild should find the broken link and fix that. It does not happen
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-13 08:15:08 UTC
(In reply to Agostino Sarubbo from comment #4)
> (In reply to Jeroen Roovers from comment #2)
> > Why would you run revdep-rebuild when portage says it has preserved libs?
> > It's always going to keep telling you that because revdep-rebuild doesn't
> > remove libraries after packages have been linked against their replacements.
> > You need to fix that through emerge and forget about revdep-rebuild if you
> > have FEATURES=preserve-libs. Maybe
> 
> I have those library because something is linked against, so if I'm deleting
> the library, revdep-rebuild should find the broken link and fix that. It
> does not happen

That's because preserved-rebuild, revdep-rebuild or emerge already rebuild them.

Why don't you just stick to `emerge @preserved-rebuild`? With what you're doing now you are manually listing them, manually removing them and running a very slow command; whereas just emerging the set is blazing fast and automatic, and has no room for errors like the one you make now except perhaps a preserved lib staying around maybe.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-13 11:55:36 UTC
(In reply to Agostino Sarubbo from comment #4)
> I have those library because something is linked against, so if I'm deleting
> the library, revdep-rebuild should find the broken link and fix that. It
> does not happen

No. Portage records at install/merge time that it's keeping these, and it will keep reminding you that it's kept them until you run the command it tells you to run, because it stores this information in the local package database and it only removes it when the task is considered to be completed. revdep-rebuild, manual rebuilds and manual deletions of the preserved libraries have nothing to do with portage's stored list of preserved libraries[1].

[1] And technically, by doing things "manually", you are working around the package manager. Besides this being a bug tracker and not a support forum[2], that is the second reason this bug report is INVALID.
[2] http://forums.gentoo.org/