Created attachment 410786 [details] dcadec-0_pre20150901.ebuild Currently kodi-9999 fails to build due to a missing dependecy. ``` checking for LIBDCADEC... no configure: error: libdcadec not found ```
Created attachment 410802 [details] dcadec-0_pre20150901.ebuild
That dcadec does fix the Kodi live build issue. However then I see I package naming conflict on my system... Detected file collision(s): * * /usr/bin/dcadec * /usr/lib/debug/usr/bin/dcadec.debug * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * media-libs/libdca-0.0.5-r3:0::gentoo * /usr/bin/dcadec * /usr/lib/debug/usr/bin/dcadec.debug * * Package 'media-sound/dcadec-9999' NOT merged due to file collisions. * If necessary, refer to your elog messages for the whole content of the * above message.
(In reply to Bob Wya from comment #2) Did you install dcadec before manually? This is what I got from the package: ``` equery f dcadec * Searching for dcadec ... * Contents of media-sound/dcadec-0_pre20150901: /usr /usr/bin /usr/bin/dcadec /usr/include /usr/include/libdcadec /usr/include/libdcadec/dca_context.h /usr/include/libdcadec/dca_frame.h /usr/include/libdcadec/dca_stream.h /usr/include/libdcadec/dca_waveout.h /usr/lib /usr/lib/libdcadec.a /usr/lib/pkgconfig /usr/lib/pkgconfig/dcadec.pc ```
Yeh but there is a file conflict for the decoder binary (typo in my comment - didn't mean to say package name) between this package and stock Gentoo package: media-libs/libdca. As in: equery f media-libs/libdca * Searching for libdca in media-libs ... * Contents of media-libs/libdca-0.0.5-r3: /usr /usr/bin /usr/bin/dcadec /usr/bin/dtsdec /usr/bin/extract_dca /usr/bin/extract_dts /usr/include /usr/include/dca.h /usr/include/dts.h /usr/lib /usr/lib/debug /usr/lib/debug/usr /usr/lib/debug/usr/bin /usr/lib/debug/usr/bin/dcadec.debug /usr/lib/debug/usr/bin/extract_dca.debug /usr/lib/debug/usr/lib32 /usr/lib/debug/usr/lib32/libdca.so.0.0.0.debug /usr/lib/debug/usr/lib64 /usr/lib/debug/usr/lib64/libdca.so.0.0.0.debug /usr/lib32 /usr/lib32/libdca.so -> libdca.so.0.0.0 /usr/lib32/libdca.so.0 -> libdca.so.0.0.0 /usr/lib32/libdca.so.0.0.0 /usr/lib32/pkgconfig /usr/lib32/pkgconfig/libdca.pc /usr/lib32/pkgconfig/libdts.pc /usr/lib64 /usr/lib64/libdca.so -> libdca.so.0.0.0 /usr/lib64/libdca.so.0 -> libdca.so.0.0.0 /usr/lib64/libdca.so.0.0.0 /usr/lib64/pkgconfig /usr/lib64/pkgconfig/libdca.pc /usr/lib64/pkgconfig/libdts.pc /usr/share /usr/share/doc /usr/share/doc/libdca-0.0.5-r3 /usr/share/doc/libdca-0.0.5-r3/AUTHORS.bz2 /usr/share/doc/libdca-0.0.5-r3/ChangeLog.bz2 /usr/share/doc/libdca-0.0.5-r3/NEWS.bz2 /usr/share/doc/libdca-0.0.5-r3/README.bz2 /usr/share/doc/libdca-0.0.5-r3/TODO.bz2 /usr/share/doc/libdca-0.0.5-r3/libdca.txt.bz2 /usr/share/man /usr/share/man/man1 /usr/share/man/man1/dcadec.1.bz2 /usr/share/man/man1/dtsdec.1.bz2 -> /usr/share/man/man1/dcadec.1.bz2 /usr/share/man/man1/extract_dca.1.bz2 /usr/share/man/man1/extract_dts.1.bz2 -> /usr/share/man/man1/extract_dca.1.bz2
Created attachment 411002 [details] media-sound/libdca-0_pre20150901.ebuild Fixes file collision with media-libs/libdca.
(In reply to hal from comment #5) > Created attachment 411002 [details] > media-sound/libdca-0_pre20150901.ebuild > > Fixes file collision with media-libs/libdca. That's a pretty meh solution. Probably would be better to have one of the (or both) packages have building the tools be optional.
(In reply to Michael Cook from comment #6) > (In reply to hal from comment #5) > > Created attachment 411002 [details] > > media-sound/libdca-0_pre20150901.ebuild > > > > Fixes file collision with media-libs/libdca. > > That's a pretty meh solution. Probably would be better to have one of the > (or both) packages have building the tools be optional. I know but #gentoo-dev-help confirmed this would be the way to go. Additionally and as far as I can tell dcadec is a hard dependency for future kodi-16.0 and current live version - but I might be wrong here. The best solution would probably to convince upstream@dcadec to rename their binary accordingly. :)
thanks for the initial ebuild. you might want to rename the attachement to "dcadec-0_pre20150901.ebuild" though, else the build will fail with an invalid S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
added: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca7d810eb017cddfe3fa80d97e2a5faf43a479ed