Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133739 - media-libs/{libsdl,sdl-mixer} link against libgpm without depending on gpm
Summary: media-libs/{libsdl,sdl-mixer} link against libgpm without depending on gpm
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 139901 352832 403587 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-18 18:02 UTC by Grzegorz Kulewski
Modified: 2012-02-14 19:39 UTC (History)
3 users (show)

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 Grzegorz Kulewski 2006-05-18 18:02:53 UTC
It looks like some packages link against libgpm without depending on gpm.

It breaks badly at least the following scenario:
1. user removes all packages depending on gpm
2. user does emerge --depclean and removes gpm
3. some packages stop working
4. no-very-happy user does revdep-rebuild and it fails with:
        ld: libgpm not found
   on some random package. (This is because some *-config or *.la files tell auto* tools to link against -lgpm. Credit for reminding me that this could be the cause goest to genone@IRC.)
5. even-more-unhappy-user is confused...

I detected misbehaving packages with:

for a in `grep -rl -- '-lgpm' /usr/bin /usr/lib /usr/kde/3.5/lib`; do echo -n "$a "; epm -qf $a; done

and here is the list (possibly not all these packages misbehave):
- libggi
- libsdl
- sdl-mixer

Remerging these allowed revdep-rebuild to successfully do it's job.

Could anyone fix this problem? Maybe something could be done to autodetect such problems in the future?

Portage 2.1_rc1-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.17-rc4-git3-ck1 i686)
=================================================================
System uname: 2.6.17-rc4-git3-ck1 i686 AMD Sempron(tm)
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fforce-addr -fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fforce-addr -fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nostrip parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_pl userland_GNU video_cards_nvidia video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-05-22 05:20:22 UTC
that's how libtool works

one sublibrary correctly links against libgpm and everything that links against that library suddenly links against libgpm
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-10 10:06:12 UTC
*** Bug 139901 has been marked as a duplicate of this bug. ***
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2011-01-26 15:57:52 UTC
*** Bug 352832 has been marked as a duplicate of this bug. ***
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2012-02-14 19:39:05 UTC
*** Bug 403587 has been marked as a duplicate of this bug. ***