[OE-core] [RFC] bitbake.conf: include only ${libdir}/${BPN}/*${SOLIBS} not whole ${libdir}/${BPN}/* in FILES_${PN}-dev

Martin Jansa martin.jansa at gmail.com
Mon Oct 17 13:59:38 UTC 2011


On Mon, Oct 17, 2011 at 02:48:29PM +0100, Phil Blundell wrote:
> On Mon, 2011-10-17 at 14:52 +0200, Martin Jansa wrote:
> > * ie syslog-ng has a lot of .so and .la files in ${libdir}/${BPN}/ and
> >   fails with this QA check:
> > | ERROR: QA Issue: non -dev/-dbg/-nativesdk package contains symlink .so: syslog-ng path
> > '/work/i586-oe-linux/syslog-ng-3.2.2-r6.1/packages-split/syslog-ng/usr/lib/syslog-ng/libafsocket.so'
> > * I haven't tried to rebuild from scratch to check if this changes is
> >   creating more QA issues about unpackaged files then what is trying to
> >   fix (ie in syslog-ng), that's why it's RFC
> > 
> > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> 
> The subject line of this patch doesn't seem to match what it's actually
> doing.  

Ah, sorry you're right it should be without '-dev' suffix in subject

> If there are .la or .so files in ${libdir}/${PN} that are causing a
> problem then it does seem reasonable to add them to FILES_${PN}-dev.
> But I don't think that restricting the scope of FILES_${PN} is
> desirable, or ought to be necessary.

How to do this with this order of PACKAGES, without redefining PACKAGES
itself?

PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-locale"

Regards,

> p.
> 
> > ---
> >  meta/conf/bitbake.conf |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index e2c1b6f..772c09e 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -262,7 +262,7 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS}
> >              ${sysconfdir} ${sharedstatedir} ${localstatedir} \
> >              ${base_bindir}/* ${base_sbindir}/* \
> >              ${base_libdir}/*${SOLIBS} \
> > -            ${datadir}/${BPN} ${libdir}/${BPN}/* \
> > +            ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \
> >              ${datadir}/pixmaps ${datadir}/applications \
> >              ${datadir}/idl ${datadir}/omf ${datadir}/sounds \
> >              ${libdir}/bonobo/servers"
> > @@ -271,7 +271,7 @@ FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
> >              ${datadir}/gnome/help"
> >  SECTION_${PN}-doc = "doc"
> >  
> > -FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \
> > +FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*${SOLIBSDEV} ${libdir}/*.la \
> >                  ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \
> >                  ${datadir}/aclocal ${base_libdir}/*.o"
> >  SECTION_${PN}-dev = "devel"
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
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-core/attachments/20111017/972c3b32/attachment-0002.sig>


More information about the Openembedded-core mailing list