Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300376 - upgrade of sys-apps/acl leaves orphaned /lib/libacl.a symlink
Summary: upgrade of sys-apps/acl leaves orphaned /lib/libacl.a symlink
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 302474 305611 313559 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-10 09:31 UTC by Juergen Rose
Modified: 2014-01-04 14:53 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bleh (acl.patch,828 bytes, patch)
2010-07-18 21:16 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-01-10 09:31:58 UTC
'emerge kdelibs' fails with:
...
cd /var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4_build/kio && /usr/bin/cmake -E cmake_link_script CMakeFiles/kio.dir/link.txt --verbose=TRUE
/usr/bin/i686-pc-linux-gnu-g++  -fPIC -O2 -march=pentium-m -fomit-frame-pointer  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -shared -Wl,-soname,libkio.so.5 -o ../lib/libkio.so.5.3.0 CMakeFiles/kio.dir/kio_automoc.o ... collect2: ld returned 1 exit status
make[2]: *** [lib/libkio.so.5.3.0] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4_build'
make[1]: *** [kio/CMakeFiles/kio.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4_build'
make: *** [all] Error 2


Reproducible: Always




root@thinkpad:/root(18)# emerge -pvD kdelibs

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

Calculating dependencies... done!
[ebuild   R   ] kde-base/kdelibs-4.3.4  USE="acl alsa bzip2 doc* fam handbook jpeg2k kerberos mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug (-kdeenablefinal) (-kdeprefix) -lzma -test -zeroconf" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
[1]+  Done                    emacs -i $GEOMETRY $NO_DOS_CONV -name "$BASENAME" "$*"
root@thinkpad:/root(19)# emerge --info =kde-base/kdelibs-4.3.4
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 09 Jan 2010 21:00:21 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=pentium-m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/science /usr/local/portage/layman/dotnet /usr/local/portage/layman/java-overlay /usr/local/portage/layman/x11 /usr/local/portage/layman/lordvan /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs alsa amrr ao aotuv apache2 asf aspell audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kerberos kexi kpathsea ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo mad madwifi mail maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qemu qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smbclient sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wifi win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0 ac97_codec emu10k1 emu10k1x" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev                synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="radeon vesa displaylink" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

kde-base/kdelibs-4.3.4 was built with the following:
USE="acl alsa bzip2 fam handbook jpeg2k kerberos mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug -doc (-kdeenablefinal) (-kdeprefix) -lzma -test -zeroconf" 


root@thinkpad:/root(20)# emerge -pqv =kde-base/kdelibs-4.3.4
[ebuild   R   ] kde-base/kdelibs-4.3.4  USE="acl alsa bzip2 doc* fam handbook jpeg2k kerberos mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug (-kdeenablefinal) (-kdeprefix) -lzma -test -zeroconf"
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-01-10 09:38:59 UTC
Full build.log, thanks.
Comment 2 Juergen Rose 2010-01-10 09:56:57 UTC
The original file has almost 5 MB, the gzipped or bzip2ed file have between 50 and 90 KB, but there are considered as empty by http://bugs.gentoo.org and not accepted, at least if I select binary file (application/octet-stream) as mime type. Now I put build.log.bz2 on webserver, it should be accessible as http://141.89.194.22/~rose/build.log.bz2 .

Regards Juergen

Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-01-10 10:00:28 UTC
Also could you post emerge --info
Comment 4 Juergen Rose 2010-01-10 14:49:19 UTC
Is 'emerge --info =kde-base/kdelibs-4.3.4' in the original posting not enough?
Comment 5 Juergen Rose 2010-01-15 08:16:51 UTC
It seems me that 'emerge kdelibs' with doc USE flag works at all my x86_64 systems but fails at i686 systems.

At my last attempt to emerge kdelibs with doc USE flag at a i686 system I got a slightly different error:

 /usr/bin/i686-pc-linux-gnu-g++  -fPIC -O2 -march=pentium4 -fomit-frame-pointer  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -shared -Wl,-soname,libkio.so.5 -o ../lib/libkio.so.5.3.0 CMakeFiles/kio.dir/kio_automoc.o ...   /usr/lib/qt4/libQtCore.so -lpthread -Wl,-rpath,/usr/lib/qt4:/var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4_build/lib: 
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [lib/libkio.so.5.3.0] Error 1
Comment 6 Frédéric COIFFIER 2010-01-18 18:14:50 UTC
I get the ld warning on the same library and the compilation fails but I don't use the doc USE flag :

[ebuild   R   ] kde-base/kdelibs-4.3.4  USE="acl alsa bzip2 fam handbook jpeg2k mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug -doc (-kdeenablefinal) (-kdeprefix) -kerberos -lzma -test -zeroconf" 0 kB
Comment 7 Frédéric COIFFIER 2010-01-21 16:19:13 UTC
I've solved my similar problem but it was a strange problem.
As I got the following error :

warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [lib/libkio.so.5.3.0] Error

I tried to find a library which wasn't PIC compiled with scanelf. But all my systems libraries are PIC.
By looking the exact link command, I saw :
 * "-Wl,--fatal-warnings" option which explains the error because of a warning
 * "-Wl,-Bstatic -lacl -Wl,-Bdynamic" which seems to mean that libacl is statically linked, wheras all others are shared linked.

Moreover, acl was updated from 2.2.47-r1 to 2.2.49 recently.

After emerging the old sys-apps/acl-2.2.47-r1, the kdelibs compilation succeeded. I also tried to emerge again the acl-2.2.49 and this time, it still works.
Comment 8 Juergen Rose 2010-01-23 21:13:28 UTC
I tried to follow the recipe of comment 7: emerging acl-2.2.47-r1 and then kdelibs. But it did not help. I got the same error.
Even "USE=-doc emerge -v1 kdelibs" fails with this error.
Comment 9 Juergen Rose 2010-01-31 06:20:24 UTC
It still fails at two i686 computers.

root@vilm:/root(149)# emerge --info =kde-base/kdelibs-4.3.5
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 31 Jan 2010 04:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs alsa ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kdrive kerberos kexi kpathsea ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska matrox mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="mga vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


root@vilm:/root(150)# emerge -pqv =kde-base/kdelibs-4.3.5
[ebuild     U ] kde-base/kdelibs-4.3.5 [4.3.4] USE="acl alsa bzip2 doc* fam handbook jpeg2k kerberos mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug (-kdeenablefinal) (-kdeprefix) -lzma -test -zeroconf" 
Comment 10 Juergen Rose 2010-02-02 12:41:57 UTC
Nobody has a hint?
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2010-02-04 23:09:16 UTC
http://bugs.gentoo.org/show_bug.cgi?id=302474#c13

I think the build should detect the presence of the symlink in pkg_pretend and tell the user to remove it if it's owned by any package.
Comment 12 Juergen Rose 2010-02-10 12:22:51 UTC
Thanks Petteri, I found this link in between. Removing it solved also my problem.

Comment 13 Petteri Räty (RETIRED) gentoo-dev 2010-02-10 13:48:39 UTC
(In reply to comment #12)
> Thanks Petteri, I found this link in between. Removing it solved also my
> problem.
> 

It's merely a work around. The build should tell you what to do.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 13:59:09 UTC
*** Bug 302474 has been marked as a duplicate of this bug. ***
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 14:00:32 UTC
Fix for this should go into sys-apps/acl's ebuild with revision bump, but we already agreed with Mike to leave it alone (by mail). 

Do as you wish... not a KDE bug.
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2010-02-17 18:17:57 UTC
*** Bug 305611 has been marked as a duplicate of this bug. ***
Comment 17 SpanKY gentoo-dev 2010-02-17 18:30:14 UTC
packages should not be responsible for deleting symlinks it no longer installs

portage guys: is this a known bug that is (hopefully) now fixed ?
Comment 18 Zac Medico gentoo-dev 2010-02-17 20:25:19 UTC
(In reply to comment #17)
> portage guys: is this a known bug that is (hopefully) now fixed ?

According to bug 302474, comment #14 the file was an orphan created by gen_usr_ldscript. There's nothing portage can do about random orphans so it's best not to create them in the first place.
Comment 19 SpanKY gentoo-dev 2010-03-07 17:30:36 UTC
the comment you refer to does not indicate anything was done outside of src_*.  gen_usr_ldscript operates entirely within src_* which means any symlinks created by it were within the realm of portage tracking them.  the only definition of "orphan" where it is acl's fault for the dangling symlink is if it created the symlink in a pkg_* function.  afaik, this has never happened.
Comment 20 Zac Medico gentoo-dev 2010-03-08 01:07:33 UTC
Well, I've got no clue where the symlink came from. It's not a known portage issue, and not likely to be an unknown portage issue either.
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2010-03-08 08:30:07 UTC
(In reply to comment #20)
> Well, I've got no clue where the symlink came from. It's not a known portage
> issue, and not likely to be an unknown portage issue either.
> 

no way to reproduce, noone is able to explain where it came from, only some 5 users have hit this (and resolved it local) afaict, not a problem in new installs

either we do the dummy libacl bump with checking kludge, or we don't

i'd say we leave it alone like we already agreed at one point...
Comment 22 Mario Bachmann 2010-03-08 09:44:12 UTC
What is the command to find orphaned symlinks on '/'? 
'find / -type ...' ?

I remember the script cruft. Perhaps it is time for a new find-bad-files-script...
Comment 23 Zac Medico gentoo-dev 2010-03-08 09:52:58 UTC
You can use portageq owners, like this:
find / -type l -print | while read ; do
portageq owners / "$REPLY" || echo "$REPLY" >> /tmp/orphans
done
Comment 24 Petteri Räty (RETIRED) gentoo-dev 2010-03-08 16:54:26 UTC
My symlink was created years ago so it's hard to know what created it. I don't see a problem with detecting it in a revision bump of acl and asking users to nuke it.
Comment 25 SpanKY gentoo-dev 2010-03-08 17:56:29 UTC
if logic is going to be added to the ebuild, it's going to autoremove a dead symlink

portage-utils' qfile provides an --orphans option
Comment 26 Samuli Suominen (RETIRED) gentoo-dev 2010-04-06 19:18:31 UTC
*** Bug 313559 has been marked as a duplicate of this bug. ***
Comment 27 Christopher Hogan 2010-05-09 05:14:49 UTC
just adding a me to. Hit this upgrading gcc (emerge -e world). The symlink on my system seems a bit newer than others.


ls -l /lib/libacl.a
lrwxrwxrwx 1 root root 17 Jun  7  2009 /lib/libacl.a -> /usr/lib/libacl.a
Comment 28 genbug 2010-05-12 19:11:11 UTC
predicate_lexer.l: At top level:
predicate_lexer.c:1217: warning: 'yyunput' defined but not used
predicate_lexer.c:1261: warning: 'input' defined but not used
[ 10%] Building C object solid/solid/CMakeFiles/solid.dir/predicate_parser.o
[ 10%] Building C object kdecore/CMakeFiles/kdecore.dir/fakes.o
Linking CXX shared library ../lib/libkdecore.so
[ 10%] Building CXX object solid/solid/CMakeFiles/solid.dir/powermanagement.o
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdecore.so.5.4.0] Error 1


I'm hitting a similar syptom but there is no dangling symlinks here. 

I've had -pic in USE since may 2008 and this just became a problem when I tried (was forced) to update to kde4

Is it related or should I open another bug report ?

Comment 29 João P. Teixeira 2010-06-13 18:38:57 UTC
(In reply to comment #27)
Also hit this when upgrading gcc. 
Mine is as dead as a dried codfish:
 
ls -l /lib/libacl.a
lrwxrwxrwx 1 root root 17 Jun  7  2005 /lib/libacl.a -> /usr/lib/libacl.a



Comment 30 Petteri Räty (RETIRED) gentoo-dev 2010-07-18 21:02:30 UTC
QA: Please voice your opinion. I think we should do something to stop people from hitting this. For example a sys-apps/acl revision bump detecting it and telling people to remove it.
Comment 31 Samuli Suominen (RETIRED) gentoo-dev 2010-07-18 21:16:18 UTC
Created attachment 239299 [details, diff]
bleh

patch
Comment 32 SpanKY gentoo-dev 2014-01-04 14:53:03 UTC
well, it's been 4 years and no one really cares, and no one has reported this any time recently, so let's just punt