Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369351 - net-libs/c-client-2007e-r2 - file collision
Summary: net-libs/c-client-2007e-r2 - file collision
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 14:32 UTC by djinnZ
Modified: 2011-05-31 16:32 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 djinnZ 2011-05-30 14:32:23 UTC
the ebuild for net-libs/c-client-2007e-r2 will overwrite /usr/lib64/libc-client.so.1

Reproducible: Always

Steps to Reproduce:
update from net-libs/c-client-2007e
Actual Results:  
end in error
 * Detected file collision(s):
 * 
 *      /usr/lib64/libc-client.so.1
not owned by any package. Verified is a symlink.

Expected Results:  
In the src compile section the symlinks are created even i they exists.

emerge --info
libc-client.so.1 is a symlink not a regular file
Portage 2.1.9.50 (hardened/linux/amd64, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37-hardened-r7 x86_64)
=================================================================
System uname: Linux-2.6.37-hardened-r7-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.2
Timestamp of tree: Mon, 30 May 2011 09:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.65-r1
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -fomit-frame-pointer -O2 -g0"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -fomit-frame-pointer -O2 -g0"
DISTDIR="/usr/portage/pkg/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --color y --quiet"
FEATURES="assume-digests binpkg-logs collision-protect compress-build-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="AUTHORS.* HACKING.* INSTALL.* LICENSE.* TODO.* Changes.* ChangeLog.* NEWS.* THANKS.* COPYNG.*"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/pkg/packages/dite"
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/gentoo"
PORTDIR_OVERLAY="/usr/portage/gentoo /usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 3dnow X a52 aac acl acpi aio alisp alsa amba amd64 amr apache2 bash-completion berkdb binfilter bittorrent bluetooth bolddiag bzip2 cairo caps cddb cdemud cdio cdr chm clamdtop cli compat consolekit contrib cpudetection cracklib crypt cups curl curlwrappers custom-cflags custom-optimization cvs cxx daemon dbus declarative desktopglobe device-mapper directfb djvu dmx dri dvb dvd dvdr ebook encode exif extensions extra-tools extras fbcon ffmpeg flac flatfile fontconfig fontforge fpx ftp fuse gcj gd gdbm geoip gif gimp git glibc-omitfp gmp gnutls gpm graphite gs gstreamer gtk hardened holidays iconv icu id3tag imagemagick imap imaps inotify iodbc ithreads java javascript jbig jit jpeg jpeg2k justify kde lcms ldb llwm lm_sensors lzma lzo matroska mbrola mdadm melt mikmod milter mktemp mmx mng modules mp3 mpeg mudflap multilib multiuser musepack ncurses network nfs nfsv3 nfsv4 nls nptl nptlonly nsplugin nspluginwrapper ntfs ntp odbc odbcmanual odk ogg opengl openmp optimisememory optimization optimized-qmake pam pcre pcsc-lite pdf perl phonon php pic plugins png policykit postgres ppds pppd pulseaudio pulseudio python qt-dbus qt-faststart qt-webkit qt3support qt4 qthelp qtscript quicktime quota raw rdesktop readline reiserfs remote rfc3779 ruby run-as-root samba scanner sdl secure-delete semantic-desktop sensord session sharedmem skype smartcard smbsharemodes smp sockets socks5 speex spell sql sqlite sqlite3 sse sse2 sse3 ssl strong-optimization subversion svg sysfs syslog system-sqlite sysvipc taglib tcl tcpd templates themes theora threads tiff tk tools truetype truetype-debugger udev unicode urandom usb utils vcd vim-pager vim-syntax vorbis wavpack webinterface webkit width wifi winbind wmf x264 xattr xcomposite xinerama xml xmlpatterns xmlreader xmlwriter xorg xscreensaver xsl xulrunner xv xvid zip zlib" ALSA_CARDS="hda-intel" 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 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="braindump flow karbon kexi kpresenter krita tables words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="mustek mustek_usb" USERLAND="GNU" VIDEO_CARDS="radeon" 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:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Eray Aslan gentoo-dev 2011-05-31 08:31:28 UTC
(In reply to comment #0)
> In the src compile section the symlinks are created even i they exists.

c-client-2007e does not create that symlink.  See bug #255118.  It is not a good idea to second guess the sysadmin and overwrite a file he created himself.  Remove the symlink and try again.
Comment 2 djinnZ 2011-05-31 14:02:57 UTC
Sorry, the first comment was incomplete. So:

In the src_install the symlinks are created even if they exists (In the previous release are wrong reported as created by ldconfig and related instructions commemnted) also.

Instead of the code:
   cd "${D}"/usr/$(get_libdir)
   ln -s libc-client.so.1.0.0 libc-client.so.1
   ln -s libc-client.so.1.0.0 libc-client.so
   cd "${S}"
the code:
    dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so
    dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so.1
and put a blocker for the older versions and a warn to rebuild the packages statically linked against it seems better.

Remove by hands the symlink is easy (and what I have done before fill the bug) but not a real solution IMHO.

Hope is clear what I suggest now.
Comment 3 Eray Aslan gentoo-dev 2011-05-31 16:32:32 UTC
(In reply to comment #2)
>     dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so
>     dosym libc-client.so.1.0.0 /usr/$(get_libdir)/libc-client.so.1

Aye, much better.  Done.

> and put a blocker for the older versions and a warn to rebuild the packages
> statically linked against it seems better.

Sorry, that is not warrented.

+  31 May 2011; Eray Aslan <eras@gentoo.org> c-client-2007e-r2.ebuild:
+  Improve symlink code - bug #369351. Thanks to Nicola Rauseo.
+