[oe] Recipe for libmp3splt failed to make packages

Martin Jansa martin.jansa at gmail.com
Tue Feb 14 20:59:55 UTC 2012


On Wed, Feb 15, 2012 at 12:44:47AM +0400, Anton Komarov wrote:
> I tried to build libmp3splt library with this recipe, but gets
> following error. I just cannot understand - what am i doing wron?
> 
> 
> recipe:
> 
> DESCRIPTION = "Mp3splt-project is a utility to split mp3 and ogg files
> selecting a begin and an end time position, without decoding."
> HOMEPAGE = "http://mp3splt.sourceforge.net/mp3splt_page/about.php"
> BUGTRACKER = "http://sourceforge.net/tracker/?atid=476061&group_id=55130&func=browse"
> SECTION = "libs"
> LICENSE = "GPLv2"
> 
> DEPENDS="libmad"
> 
> LIC_FILES_CHKSUM = "file://COPYING;md5=678a5e287e539ce6c24384c512373a53"
> 
> PR = "r26"
> 
> S = "${WORKDIR}/libmp3splt-${PV}"
> 
> SRC_URI = "${SOURCEFORGE_MIRROR}/mp3splt/libmp3splt-${PV}.tar.gz"
> 
> SRC_URI[md5sum] = "1c982db15bba4efb42a5a227ce87a575"
> SRC_URI[sha256sum] =
> "7b3d485690cd0f076395917bf566314e05babbd7c02a7a99bbc40dcf1ea3ca96"
> 
> inherit autotools pkgconfig gettext
> 
> PACKAGES =+ "libsplt_mp3 libsplt_ogg"
> FILES_${PN}-dev = "${libdir}/libmp3splt.so ${libdir}/libmp3splt.la
> ${libdir}/libmp3splt.a ${libdir}/libmp3splt/*.so*"
> FILES_libsplt_mp3-staticdev="${libdir}/libmp3splt/libsplt_mp3.a"
> FILES_libsplt_ogg-staticdev="${libdir}/libmp3splt/libsplt_ogg.a"

there is no libsplt_mp3-staticdev/libsplt_ogg-staticdev in PACKAGES, so
this is ignored.

and there is no FILES_libsplt_mp3/FILES_libsplt_ogg

and don't use _ in subpackage names (and use ${PN} as prefix where
possible, better ${PN}-mp3).

> 
> errors:
> 
> WARNING: For recipe libmp3splt, the following files/directories were
> installed but not shipped in any package:
> WARNING:   /usr/share
> WARNING:   /usr/include
> WARNING:   /usr/share/aclocal
> WARNING:   /usr/share/aclocal/mp3splt.m4
> WARNING:   /usr/include/libmp3splt
> WARNING:   /usr/include/libmp3splt/mp3splt.h

This is because you're overwritting FILES_${PN}-dev not appending to it

> WARNING: libmp3splt: The compile log indicates that host include
> and/or library paths were used.  Please check the log
> '/stuff/work/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/temp/log.do_compile'

And you need to read this ^ log to find where it was using host include
and/or library paths.

Sometimes it's just mising library in DEPENDS, sometimes it's wrong
autotools usage and host's library is always found and you have to fix
it to look in sysroot instead.

> for more information.
> WARNING: QA Issue: non -staticdev package contains static .a library:
> libmp3splt path
> '/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/packages-split/libmp3splt/usr/lib/libmp3splt/libsplt_mp3.a'
> WARNING: QA Issue: non -staticdev package contains static .a library:
> libmp3splt path
> '/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/packages-split/libmp3splt/usr/lib/libmp3splt/libsplt_ogg.a'
> ERROR: QA Issue: non -dev/-dbg/-nativesdk package contains symlink
> .so: libmp3splt path
> '/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/packages-split/libmp3splt/usr/lib/libmp3splt/libsplt_mp3.so'
> ERROR: QA Issue: non -dev/-dbg/-nativesdk package contains symlink
> .so: libmp3splt path
> '/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/packages-split/libmp3splt/usr/lib/libmp3splt/libsplt_ogg.so'
> WARNING: QA Issue: non -staticdev package contains static .a library:
> libmp3splt-dev path
> '/work/armv7a-angstrom-linux-gnueabi/libmp3splt-0.5.6-r27/packages-split/libmp3splt-dev/usr/lib/libmp3splt.a'

This is because of those wrong FILES_ entries
-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20120214/edfe84cc/attachment-0002.sig>


More information about the Openembedded-devel mailing list