Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226109 - libmad-0.15.1b-r5 does not install libtool files, causing kdelibs-3.5.9-r4 build to fail
Summary: libmad-0.15.1b-r5 does not install libtool files, causing kdelibs-3.5.9-r4 bu...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 19:08 UTC by Christoph Bussenius
Modified: 2009-08-09 16:43 UTC (History)
4 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 Christoph Bussenius 2008-06-12 19:08:49 UTC
I was trying to compile kbe-base/kdelibs-3.5.9-r4 and it failed:

/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE =500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fomit-frame-pointer -march=pentium-m -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check -new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libartskde.la -rpath /usr/kde/3.5/lib -L/usr/kde/3.5/lib -L/usr/qt/3/lib     -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl
grep: /usr/lib/libmad.la: No such file or directory
/bin/sed: can't read /usr/lib/libmad.la: No such file or directory
libtool: link: `/usr/lib/libmad.la' is not a valid libtool archive
make[3]: *** [libartskde.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.9-r4/work/kdelibs-3.5.9/arts/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.9-r4/work/kdelibs-3.5.9/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.9-r4/work/kdelibs-3.5.9'
make: *** [all] Error 2

From the error messages it seems clear that the reason is that /usr/lib/libmad.la does not exist.  The reason of that is the difference between media-libs/libmad ebuild versions 0.15.1b-r4 and 0.15.1b-r5:

$ diff -u libmad-0.15.1b-r{4,5}.ebuild
[...]
+
+	find "${D}" -name '*.la' -delete

So I downgraded libmad to 0.15.1b-r4, which solved the problem.

emerge --info:

Portage 2.1.5.3 (default-linux/x86/2006.1/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.24.2 i686)
=================================================================
System uname: 2.6.24.2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Timestamp of tree: Wed, 04 Jun 2008 19:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=pentium-m -pipe"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -fomit-frame-pointer -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://opaque/pub/gentoo http://de-mirror.org/distro/gentoo http://ftp.uni-erlangen.de/mirrors/gentoo"
LC_ALL="en_US.ISO8859-1"
LDFLAGS=""
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa aotuv arts asf audiofile avifile bash-completion berkdb browserplugin bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cscope cups curl dbus dga dhcp dio directfb divx dri dvb dvd dvdr dvdread emboss encode esd examples fam fbcon ffmpeg firefox flac ftp gdbm gif gimpprint glut gmedia gmp gpm gs gstreamer gtk gtk2 hal iconv icq imagemagick imap imlib ipv6 isdnlog jabber jpeg lame ldap libcaca libnotify libwww live logrotate lzo mad maildir matroska mbox midi mikmod mime mmx mmxext mng mozsvg mp3 mp4 mpeg mplayer msn mudflap musicbrainz nas ncurses netboot nptl nptlonly nsplugin offensive ogg openal opengl openmp oss pam pcre pdf pdflib perl png pop posix postgres ppds pppd qt3 qt4 quicktime readline real realmedia reflection rtc ruby sdl session skey smime sndfile sockets socks5 sox speex spell spl sqlite sse sse2 ssl stroke svg svga tcltk tcpd tetex theora tidy tiff timidity truetype unicode usb userlocales vcd vidix vim-syntax vim-with-x vorbis wifi win32codecs wmf wmp x86 xanim xine xinerama xml xorg xpm xv xvid xvmc 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 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" DVB_CARDS="usb-vp702x usb-vp7045" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx radeon vga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-12 23:35:36 UTC
The removal is intentional, the consequences are a bit annoying. Running revdep-rebuild should fix the issue for you.


I think this is yours Diego, given that the libmad ebuild doesn't hold any post install notice. A script to fix .la files and vdb would be quite user friendly indeed.
Comment 2 Fabio Coatti 2008-06-18 12:39:40 UTC
(In reply to comment #1)
> The removal is intentional, the consequences are a bit annoying. Running
> revdep-rebuild should fix the issue for you.


Nope. Tried several times, revdep-rebuild doesn't help, and I wander how it can: if the build process fails, reissuing it seems unlikely to fix the issue. 
This is happening to me and preventing to complete kde installation. :( any hint?

/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium-m -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libartskde.la -rpath /usr/kde/3.5/lib -L/usr/kde/3.5/lib -L/usr/qt/3/lib     -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl
grep: /usr/lib/libmad.la: No such file or directory
/bin/sed: can't read /usr/lib/libmad.la: No such file or directory
libtool: link: `/usr/lib/libmad.la' is not a valid libtool archive
make[3]: *** [libartskde.la] Error 1
Comment 3 Robert Marmorstein 2008-07-05 15:02:27 UTC
This change also breaks basket-1.0.3.1, but downgrading libmad to -r4 fixes the issue.  Diego -- why the change to libmad to delete the .la files?  If you can help me understand the issue, maybe I can help with a solution.
Comment 4 Bill Puschmann 2008-07-31 17:52:00 UTC
(In reply to comment #3)
> This change also breaks basket-1.0.3.1, but downgrading libmad to -r4 fixes the
> issue.  Diego -- why the change to libmad to delete the .la files?  If you can
> help me understand the issue, maybe I can help with a solution.
> 

Diego made changes to the libmad emerge that forcefully deletes the .la files on his own initiative.  He posted information about it on his own blog - but doesn't cite libmad (making searching for it a bit of a problem).  He may have some good points, but fails to actually let anyone know unless you're already following his blog and can read between the lines.

UNFORTUNATELY revdep-rebuild does NOT fix this.  It probably should, but that's for another bug.  Other people (specifically Diego) have tried to offer this "solution" - but have obviously never tested it themselves.

How to work around it?  Re-emerge arts.  That "fixes" the libmad issues (since it's from arts that the .la is being pulled in.