Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291972 - dev-util/ddd links to libelf when elfutils is installed, but does not depend on them
Summary: dev-util/ddd links to libelf when elfutils is installed, but does not depend ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 12:21 UTC by Wonko
Modified: 2010-08-23 07:47 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 Wonko 2009-11-05 12:21:40 UTC
dev-util/ddd does not depend on dev-libs/elfutils, but links to libelf anyway when it is available. This confuses emerge --depclean.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 dev-libs/elfutils
2. emerge dev-util/ddd
3. emerge -p --depclean

Actual Results:  
emerge --depclean gives this output:
 * In order to avoid breakage of link level dependencies, one or more
 * packages will not be removed. This can be solved by rebuilding the
 * packages that pulled them in.
 *                                             
 *   dev-libs/elfutils-0.131-r2 pulled in by:
 *     dev-util/ddd-3.3.12-r1 needs libelf.so.1

But rebuilding ddd does not help. Instead, removing elfutils, then rebuilding ddd helps.

Expected Results:  
depclean should inform the user to remove elfutils, and then rebuild ddd (or use revdep-rebuild).
Or the ddd source should be changed so that it does not use libelf, unless told so explicitely. I filed an upstream bug report, see the URL above. But as this seems to happen with some other packages as well, a more clear depclean explanation might help the users to understand what is going on, instead of making them build packages like ddd again and again.

I get a similar message for media-libs/libcddb-1.3.2, media-
sound/esound-0.2.41, sys-libs/db-4.5.20_p2-r1 and sys-libs/db-4.6.21_p4. And about esd:
 *   media-sound/esound-0.2.41 pulled in by:
 *     app-office/gnucash-2.2.9-r1 needs libesd.so.0
 *     gnome-extra/gnome-media-2.26.0-r1 needs libesd.so.0
 *     gnome-extra/nautilus-cd-burner-2.24.0 needs libesd.so.0
 *     gnome-extra/yelp-2.26.0 needs libesd.so.0              
 *     media-libs/smpeg-0.4.4-r9 needs libesd.so.0            
 *     media-sound/amarok-1.4.10_p20090130-r3 needs libesd.so.0
 *     media-sound/rhythmbox-0.11.6-r1 needs libesd.so.0       
 *     media-sound/synaesthesia-2.4 needs libesd.so.0          
 *     media-video/transcode-1.0.7 needs libesd.so.0
But I did not investigate this further yet.

Portage 2.2_rc48 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-tuxonice i686)                                                                                                                                   
=================================================================                                                                                                                                                                            
System uname: Linux-2.6.31-tuxonice-i686-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-1.12.11.1                                                                                                                                      
Timestamp of tree: Mon, 02 Nov 2009 07:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8-sse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildsyspkg ccache collision-protect distcc distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
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/tree"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/vmware /usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt ctype cups cvs dbus dga directfb dri dts dvb dvd dvdr eds emacs emboss encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp ginac gnome gphoto2 gpm gstreamer gtk hal hddtemp htmlhandbook iconv ieee1394 imagemagick imlib ipv6 jabber jack java javascript jbig jpeg jpeg2k kde latex ldap libnotify lirc lm_sensors mad maildir matrox mikmod mime mmx mng modplug modules motif mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz nas ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl php plotutils png ppds pppd python qt3support qt4 quicktime radius readline recode reflection ruby samba scanner sdl semantic-desktop session slang slp sndfile sockets sox speex spell spl sse sse2 sse3 ssl startup-notification subversion svg svga sysfs tcpd theora threads thunar tiff truetype unicode usb videos vim-syntax visualization vorbis win32codecs wma wmf wxwindows x264 x86 xattr xcomposite xine xml xorg xosd xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="fglrx radeon radeonhd vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wonko 2009-11-05 12:28:15 UTC
Added Gentoo version, and reduced priority.

I wonder if this bug should be filed against ddd, or if this is more a general portage thing, as it happens with other packages than ddd, too. So I changed the Component from Development to Unspecified.
Comment 2 Maciej Mrozowski gentoo-dev 2010-08-23 07:47:10 UTC
libelf is only used on PowerPC, in other cases unnecessary libelf link dep should be dropped when --as-needed is passed as an argument for linker (which is from now on enabled by default).
I've added elfutils dependency for ppc and ppc64 to make debugging more useful there. Thanks for reporting.