Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278400 - media-tv/xbmc-9999 should depend on >=media-libs/faad2-2.7-r1
Summary: media-tv/xbmc-9999 should depend on >=media-libs/faad2-2.7-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 09:56 UTC by Frank Krömmelbein
Modified: 2009-08-27 09:51 UTC (History)
1 user (show)

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


Attachments
improve use flags and dependencies in the ebuild (improvedeps.diff,1.59 KB, patch)
2009-07-21 03:33 UTC, Craig Andrews
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2009-07-20 09:56:24 UTC
I´ve got the latest stable media-libs/faad2-2.6.1-r2 installed but XBMC now fails because of the change to use external librarys https://bugs.gentoo.org/275844

from the Log file:

checking for main in -lmp4ff... no
configure: error: Could not find a required library. Please see the README for your platform.

With media-libs/faad2-2.7-r1 this problem is solved.

> Restore mp4ff shared library with Debian patch.




Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-20 17:01:46 UTC
Please don't CC maintainers/herds yourself. Leave that to the bug-wranglers.
Comment 2 Craig Andrews gentoo-dev 2009-07-21 03:33:51 UTC
Created attachment 198663 [details, diff]
improve use flags and dependencies in the ebuild

diff that requires media-libs/faad2-2.7-r1 and adds some use flags and makes some dependencies conditional.
Comment 3 Waldo 2009-07-21 18:44:49 UTC
This worked, but I still got this:

checking for main in -lavcodec... no
configure: error: Could not find a required library. Please see the README for your platform.

W
Comment 4 Waldo 2009-07-22 09:16:13 UTC
Update-- a revdep-rebuild re-emerged a couple of things including vlc and ffmpeg and I think an ffmpeg plugin of some sort... I then got a similar error dealing with libmpcdec.  So I had to also emerge libmpcdec to get it to finally get going.

It still didn't properly build, but that's another bug...

W
Comment 5 hal 2009-07-22 13:45:53 UTC
i think there are some more requrired deps according to the README.linux coming with the svn source:

You will then need the required libraries. The following is the list of packages
that are used to build XBMC packages on Debian/Ubuntu (with all supported
external libraries enabled).

Build-Depends: debhelper (>= 7.0.50), quilt, python-support, cmake,
 autotools-dev, autoconf, automake, unzip, libboost-dev,
 libgl1-mesa-dev | libgl-dev, libglu-dev, libglew-dev, libmad0-dev, libjpeg-dev,
 libsamplerate-dev, libogg-dev, libvorbis-dev, libfreetype6-dev,
 libfontconfig-dev, libbz2-dev, libfribidi-dev, libsqlite3-dev,
 libmysqlclient-dev, libasound-dev, libpng-dev, libpcre3-dev, liblzo2-dev,
 libcdio-dev, libsdl-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libenca-dev,
 libjasper-dev, libxt-dev, libxtst-dev, libxmu-dev, libxinerama-dev,
 libcurl4-gnutls-dev | libcurl-dev, libdbus-1-dev, libhal-storage-dev,
 libhal-dev, libpulse-dev, libavahi-common-dev, libavahi-client-dev,
 libxrandr-dev, libavcodec-dev, libavformat-dev, libavutil-dev, libpostproc-dev,
 libswscale-dev, liba52-dev, libdts-dev, libfaad-dev, libmp4ff-dev,
 libmpeg2-4-dev, libass-dev, libmpcdec-dev, libflac-dev, libwavpack-dev,
 python-dev, gawk, gperf, nasm [!amd64], libcwiid1-dev, libbluetooth-dev, libmms-dev
Comment 6 Waldo 2009-07-24 00:23:52 UTC
Yeah, now it dumps with:

		`cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o
make[1]: Leaving directory `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/xbmc/cores/paplayer/MACDll'
xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a(DVDDemuxFFmpeg.o): In function `CDVDDemuxFFmpeg::Read()':
DVDDemuxFFmpeg.cpp:(.text+0x2c3d): undefined reference to `av_free_packet'
DVDDemuxFFmpeg.cpp:(.text+0x2cfd): undefined reference to `av_free_packet'
DVDDemuxFFmpeg.cpp:(.text+0x2d8e): undefined reference to `av_free_packet'
collect2: ld returned 1 exit status

av_free_packet seems to be related to ffmpeg.  I tried reinstalling and resinstalled from svn but no dice..
Comment 7 hal 2009-08-04 00:53:06 UTC
i just modified the ebuild for usage with internal libs. it compiles fine.

see: http://sprunge.us/eBLU

maybe a flag to choose the usage of internal or external flags would be usefull.


(In reply to comment #6)
> Yeah, now it dumps with:
> 
>                 `cat ../../DllLoader/exports/wrapper.def`
> ../../DllLoader/exports/wrapper.o
> make[1]: Leaving directory
> `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/xbmc/cores/paplayer/MACDll'
> xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a(DVDDemuxFFmpeg.o): In function
> `CDVDDemuxFFmpeg::Read()':
> DVDDemuxFFmpeg.cpp:(.text+0x2c3d): undefined reference to `av_free_packet'
> DVDDemuxFFmpeg.cpp:(.text+0x2cfd): undefined reference to `av_free_packet'
> DVDDemuxFFmpeg.cpp:(.text+0x2d8e): undefined reference to `av_free_packet'
> collect2: ld returned 1 exit status
> 
> av_free_packet seems to be related to ffmpeg.  I tried reinstalling and
> resinstalled from svn but no dice..
> 

Comment 8 Xake 2009-08-06 14:09:09 UTC
Also remember that xbmc-9999 needs >ffmpeg-0.5-r* nowdays...
Comment 9 Waldo 2009-08-10 02:10:44 UTC
FWIW, I was eventually able to build after going into the svn directory at /usr/portage/distfiles/svn-src/xbmc/branches/linuxport/XBMC/ and doing a "make clean".  Did the same for the svn version of ffmpeg.  Something must have gotten screwed up somehow.

Maybe this will help anyone else w/compilation errors of the -9999 version...

W
Comment 10 Alan 2009-08-15 10:27:19 UTC
Latest svn builds look for libsmbclient so it's needed sys-fs/samba dependency.
I just tweaked an ebuild to add that dependency and add two extra use flags: avahi and external (disabled by default).
The first one adds the optional support for avahi while the second one enables/disables the support for external libraries.
I also added this patch (http://xbmc.org/trac/changeset/22043) to enable VDPAU for SD mpeg-2 (applied only if vdpau is enabled).

wget http://sprunge.us/jecA -O files/vdpau-sd-mpeg2.patch
wget http://sprunge.us/VeiT -O xbmc-9999.ebuild

tested with build 22184 on amd64 with this use flags enabled: "alsa avahi opengl vdpau"
Comment 11 Rick Harris 2009-08-23 23:38:45 UTC
Couple of duplicate bugs on this one (270962, 281078) for what is really one bug, missing dependencies in the xbmc-9999.ebuild

(In reply to comment #10)
> The first one adds the optional support for avahi while the second one
> enables/disables the support for external libraries.

It is Gentoo's policy to use system libs instead of duplication with bundled libs wherever possible, hence the non-optional '--enable-external-libraries' in the original ebuild.

> I also added this patch (http://xbmc.org/trac/changeset/22043) to enable VDPAU
> for SD mpeg-2 (applied only if vdpau is enabled).

That's not a patch but a diff between two SVN revisions, so by installing anything greater than or equal to revision 22043, you get the SD mpeg-2 changes anyway.

Missing dependencies are now:
avahi? ( net-dns/avahi )
dev-libs/tre
>=media-libs/faad2-2.7-r1
media-libs/libmpcdec
media-libs/libmpeg2
media-video/ffmpeg
>=net-fs/samba-3.2
virtual/opengl (should be made non-optional, see bug #272852)

Comment 12 SpanKY gentoo-dev 2009-08-27 09:51:03 UTC
xbmc uses internal faad2 now

http://sources.gentoo.org/media-tv/xbmc/xbmc-9999.ebuild?r1=1.28&r2=1.29