Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322753 - =sys-block/parted-1.9.0 has magic link-time dependency on dev-libs/check, if check is present when parted is installed
Summary: =sys-block/parted-1.9.0 has magic link-time dependency on dev-libs/check, if ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 13:55 UTC by dolphinling
Modified: 2011-10-25 03:25 UTC (History)
2 users (show)

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


Attachments
`equery files parted` when parted was installed without check installed (parted-nocheck.txt,13.04 KB, text/plain)
2010-06-07 03:23 UTC, dolphinling
Details
`equery files parted` when parted was installed with check installed (parted-check.txt,13.45 KB, text/plain)
2010-06-07 03:24 UTC, dolphinling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dolphinling 2010-06-04 13:55:11 UTC
If dev-libs/check is installed when sys-apps/parted is installed, parted links to check even though check is not marked as a dependency and parted installs fine with check not present.

This can cause depclean to spit out some warnings and not uninstall check, as in my case where some other package required check but was then uninstalled.

Reproducible: Always

Steps to Reproduce:
(Assumes check not already installed/a dependency of anything)
1. emerge -1 check
2. emerge parted
3. emerge --depclean

Actual Results:  
 * 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/check-0.9.5-r1 pulled in by:
 *     sys-apps/parted-1.9.0 needs libcheck.so.0
 * 

Expected Results:  
check properly uninstalled

Note that depclean's suggestion of rebuilding parted does not work, because it re-links to check. Uninstalling check and then rebuilding parted works.

emerge --info:

Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 04 Jun 2010 12:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://mirror.lug.udel.edu/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US ja ja_JP"
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"
PORTDIR_OVERLAY="/home/offtime/gnash/overlay"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 bash-completion berkdb bzip2 cairo caps cdr cli consolekit cracklib crypt cxx daap dbus dri ffmpeg flac fortran gdbm gnome gpm gtk hal iconv ipod ipv6 libnotify mmx modules mtp mudflap musicbrainz ncurses nls nptl nptlonly offensive ogg openmp pam pcre perl pppd python readline reflection session speex spl sse sse2 ssl sysfs tcpd theora udev unicode vorbis xorg zlib" 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" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ja ja_JP" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-07 01:22:17 UTC
Does 2.3 link to libcheck as well?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-07 01:28:04 UTC
I can't reproduce this with either 1.9.0 or 2.3. Please post the output of `ldd /usr/sbin/parted' as well.
Comment 3 dolphinling 2010-06-07 03:20:21 UTC
After investigating, I see it's actually not /usr/sbin/parted, but /usr/bin/disk and /usr/bin/label that are linking to libcheck.so.0. These files are installed with parted if check was installed, but are not installed with parted if check was not installed.

/usr/bin/disk with check:
$ ldd /usr/bin/disk
        linux-vdso.so.1 =>  (0x00007fff4d5f1000)
        libparted-1.9.so.0 => /usr/lib/libparted-1.9.so.0 (0x00007f969f6f7000)
        libcheck.so.0 => /usr/lib/libcheck.so.0 (0x00007f969f4ee000)
        libc.so.6 => /lib/libc.so.6 (0x00007f969f195000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f969ef90000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f969ed8c000)
        libdevmapper.so.1.02 => /lib/libdevmapper.so.1.02 (0x00007f969eb6d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f969f970000)
        libreadline.so.6 => /lib/libreadline.so.6 (0x00007f969e928000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00007f969e6d6000)

I will attach the output of `equery files parted`.
Comment 4 dolphinling 2010-06-07 03:23:22 UTC
Created attachment 234353 [details]
`equery files parted` when parted was installed without check installed
Comment 5 dolphinling 2010-06-07 03:24:20 UTC
Created attachment 234355 [details]
`equery files parted` when parted was installed with check installed
Comment 6 dolphinling 2010-06-07 03:30:22 UTC
This problem does not exist with parted-2.3, and parted-2.3 does not install /usr/bin/disk or /usr/bin/label
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-08 04:41:35 UTC
From the NEWS section for the 2.2 release:

   "make install" no longer installs tests programs named disk and label

Looks like this is really a bug that's been fixed, but I should really check (haha) if 2.3 now still needs or could use dev-libs/check in the test phase.
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-10-24 15:30:00 UTC
Jeroen,

were you able to run the tests?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2011-10-25 03:25:06 UTC
Should be good. Sorry for responding this late.