Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74969 - kde-base/kdemultimedia 3.3.2-r1 fails if libmad is not installed (no dependency)
Summary: kde-base/kdemultimedia 3.3.2-r1 fails if libmad is not installed (no dependency)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-19 14:01 UTC by schaedpq
Modified: 2004-12-19 14:14 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 schaedpq 2004-12-19 14:01:56 UTC
If libmad is not installed, the emerging of kdemultimedia-3.3.2-r1 fails (error given below). 
The ebuild contains no dependency on libmad. Additionally, there is a USE flag "mad", which is not honored by kdemultimedia.


Reproducible: Didn't try
Steps to Reproduce:
1. emerge -C libmad (if libmad is installed)
2. emerge \=kde-base/kdemultimedia-3.3.2-r1
3. 

Actual Results:  
The setting of the "mad" USE flag has no effect on the build.  The
kdemultimedia ebuild apparently requires libmad as a dependancy, but fails to
install this first (as libmad is not in "DEPEND").  So if you don't already have
libmad installed, the build will die with the error given below.
After libmad is installed manually, the ebuild works as expected.


Expected Results:  
USE flag "mad" should be honored if possible:
If "mad" USE flag is set, libmad should be a dependency of kdemultimedia and
installed by emerge before kdemultimedia.
If "-mad" USE flag is set, libmad should not be a dependency.
(Even if libmad is a hard/non-optional dependency, it should stated in "DEPEND"
in the ebuild.)

The ebuild breaks with the following error:

/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -DNDEBUG -DNO_DEBUG -O2
-march=i686 -O2 -mcpu=pentium3 -pipe -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION    -o juk -L/usr/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib  -R
/usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/lib advancedsearchdialog.o
actioncollection.o artsplayer.o cache.o collectionlist.o directorylist.o
dynamicplaylist.o folderplaylist.o filehandle.o filerenamer.o
filerenamerconfigdlg.o gstreamerplayer.o historyplaylist.o juk.o k3bexporter.o
keydialog.o main.o mediafiles.o musicbrainzquery.o painteater.o playermanager.o
playlist.o playlistbox.o playlistcollection.o playlistinterface.o playlistitem.o
playlistsearch.o playlistsplitter.o searchplaylist.o searchwidget.o
slideraction.o sortedstringlist.o splashscreen.o statuslabel.o stringshare.o
systemtray.o tag.o tageditor.o tagguesser.o tagguesserconfigdlg.o
trackpickerdialog.o treeviewitemplaylist.o ktrm.o viewmode.o jukIface_skel.o
directorylistbase.o filerenamerconfigdlgwidget.o tagguesserconfigdlgwidget.o
trackpickerdialogbase.o  -lmusicbrainz -ltunepimp -lartskde -lkio -L/usr/lib -ltag
libtool: link: cannot find the library `/usr/lib/libmad.la'
make[3]: *** [juk] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2/juk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2/juk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdemultimedia-3.3.2 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.



#emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.7-hardened-r15 i686)
=================================================================
System uname: 2.6.7-hardened-r15 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -mcpu=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -mcpu=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="X X509 aalib acpi acpi4linux alsa apm ared aredmem arts avi berkdb
bitmap-fonts bootspla bzlib c crypt css cups dga directfb divx4linuxdlloader dvd
f77 fam flac foomaticdb fortran gd gdbm gif gnuplot gs gsl gtk gtk2 hardened
imap imlib imlib2 innodb ipv6 java jpeg kde libg++libwww lzo mbox md5sum mha
mikmod mime mmx mmx2 mng mozilla mozinterfaceinfo mozsvg mpeg mplayer ncurses
network nls no_wxgtk1 nptl ntlm oggvorbis opengl oss pam pcmcia pcre pdflib perl
pic plotutils png pnp ppds python qt quicktime readline real rtc samba sasl sdl
sftplogging slang smime sockets speex spell sse ssl tcpd tetex theora tidy tiff
truetype truetype-fonts type1 type1-fonts usb webmin-minimal x86 xine xml2 xmms
xv xvid zlib"
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-12-19 14:14:27 UTC
libmad isn't needed by kdemultimedia (juk) but it's a dependency of libtunepimp (media-libs/tunepimp).

BTW Using: "emerge -Du kdemultimedia" will bring up also libmad if it was disinstalled.