bitbake.conf: include only ${libdir}/${BPN}/*${SOLIBS} not whole ${libdir}/${BPN}/* in FILES_${PN}-dev
RFC 1/1 bitbake.conf: include only ${libdir}/${BPN}/*${SOLIBS} not whole ${libdir}/${BPN}/* in FILES_${PN}-dev
* 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
--- meta/conf/bitbake.conf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +2 -2
@@ -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"
Signature · 1 line
1.7.7
Quoted 7 lines · Martin Jansa
* 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
...
Even it raising new warinings it seems the way to go.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 9 lines · Martin Jansa
* 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 RFCSigned-off-by Martin Jansa <[email protected]>
The subject line of this patch doesn't seem to match what it's actually doing.
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.
p.
Quoted 26 lines
--- meta/conf/bitbake.conf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/conf/bitbake.conf +2
-2@@ -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"
Quoted 9 lines · Phil Blundell
Quoted 8 lines · Martin Jansa
* 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
Quoted 4 lines
Quoted 1 line
Signed-off-by Martin Jansa <[email protected]>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
Quoted 4 lines
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,
Quoted 35 lines
p.
Quoted 18 lines
--- meta/conf/bitbake.conf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/conf/bitbake.conf +1
-1@@ -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"meta/conf/bitbake.conf FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \ · line 277
Quoted 8 lines
meta/conf/bitbake.conf +1
-1@@ -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
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 10 lines · Martin Jansa
Quoted 4 lines · Phil Blundell
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"
Ah, hm. I had thought for some reason that ${PN}-dev was before ${PN} but evidently that's not correct. So you're right, there is probably no good way to do it without fiddling FILES_${PN}.
That being the case, I am inclined to say that this ought just to be fixed locally in the recipes that have the problem: it isn't very obvious to me that setting a restrictive glob on FILES_${PN} (and then having to edit all the recipes that install non-library things in there) is going to be a net win compared to just fixing the recipes that are currently shipping .la files in there by mistake.
Or, maybe another solution would be to invent some sort of mechanism like...
EXCLUDEFILES_${PN} = "*.la"
and get package.bbclass to skip anything matching that glob.
p.
Quoted 16 lines · Phil Blundell
Quoted 10 lines · Martin Jansa
Quoted 4 lines · Phil Blundell
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"
Ah, hm. I had thought for some reason that ${PN}-dev was before ${PN} but evidently that's not correct. So you're right, there is probably no good way to do it without fiddling FILES_${PN}.
Quoted 6 lines
That being the case, I am inclined to say that this ought just to be fixed locally in the recipes that have the problem: it isn't very obvious to me that setting a restrictive glob on FILES_${PN} (and then having to edit all the recipes that install non-library things in there) is going to be a net win compared to just fixing the recipes that are currently shipping .la files in there by mistake.
OK, I didn't any research to find what type of files are usually stored in ${libdir}/${BPN} but find /usr/lib64 on my gentoo box suggests that you're right (almost every directory under /usr/lib64 has something more than .so and .la files:
# find /usr/lib64/ -mindepth 1 -maxdepth 1 -type d | wc -l 186 # for i in `find /usr/lib64/ -mindepth 1 -maxdepth 1 -type d`; do ls -1 $i/* 2>/dev/null | grep -v ".so" | wc -l | grep -v '^0$'; done | wc -l 136 # for i in `find /usr/lib64/ -mindepth 1 -maxdepth 1 -type d`; do ls -1 $i/* 2>/dev/null | grep -v ".so" | grep -v ".la" | wc -l | grep -v '^0$'; done | wc -l 128
I've fixed it in syslog-ng by redifining FILES_${PN} in
http://git.openembedded.org/meta-openembedded/commit/?id=1ab4e30380da2444cfc66fe5283beb83168964a7
and we can ignore this conf/bitbake.conf patch.
Thanks
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]