how to exclude files when packaging?
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included /usr/lib/${PN}/*. but there are some .a and .so(symlink) in /usr/lib/${PN}, which will result QA issue.
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}?
there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if
no 'exclude' feature, I must redefine FILES_${PN} like this:
FILES_${PN} = "/usr/lib/${PN}/*.so.* \
/usr/lib/${PN}/saf* \
/usr/lib/${PN}/open* \
/usr/lib/${PN}/immload \
/usr/lib/${PN}/nid_tipc \
/usr/lib/${PN}/smf* \
/usr/lib/${PN}/clc-cli/*"Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com
Quoted 5 lines · Ni Qingliang
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.
Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}?
there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if
no 'exclude' feature, I must redefine FILES_${PN} like this:
FILES_${PN} = "/usr/lib/${PN}/*.so.* \
/usr/lib/${PN}/saf* \
/usr/lib/${PN}/open* \
/usr/lib/${PN}/immload \
/usr/lib/${PN}/nid_tipc \
/usr/lib/${PN}/smf* \
/usr/lib/${PN}/clc-cli/*"Explicitly list what you want in FILES_${PN}
FILES_${PN} = /usr/lib/${PN}/saf
Make another PACKAGE for other files
PACKAGES =+ ${PN}-misc
FILES_${PN}-misc = /usr/lib/${PN}/saf
Maybe someone else can chime in if there is a way to mask certain files...
-M
Quoted 21 lines · On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
Quoted 5 lines · Ni Qingliang
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}? there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if no 'exclude' feature, I must redefine FILES_${PN} like this: FILES_${PN} = "/usr/lib/${PN}/*.so.* \ /usr/lib/${PN}/saf* \ /usr/lib/${PN}/open* \ /usr/lib/${PN}/immload \ /usr/lib/${PN}/nid_tipc \ /usr/lib/${PN}/smf* \ /usr/lib/${PN}/clc-cli/*"Explicitly list what you want in FILES_${PN}
Quoted 8 lines
FILES_${PN} =
/usr/lib/${PN}/safMake another PACKAGE for other files
PACKAGES =+ ${PN}-misc
FILES_${PN}-misc =/usr/lib/${PN}/safMaybe someone else can chime in if there is a way to mask certain files...
Be carefull with order of packages in PACKAGES usually you need it from most specific files pattern to less specific and the problem above is related to this:
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-October/011283.html
which wasn't applied, so yes you have to redefine whole FILES_${PN} or the part you need for your app, like I did for syslog-ng
http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-October/035607.html
Regards,
Quoted 6 lines
-M
_______________________________________________
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 21 lines · On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
Quoted 5 lines · Ni Qingliang
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}? there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if no 'exclude' feature, I must redefine FILES_${PN} like this: FILES_${PN} = "/usr/lib/${PN}/*.so.* \ /usr/lib/${PN}/saf* \ /usr/lib/${PN}/open* \ /usr/lib/${PN}/immload \ /usr/lib/${PN}/nid_tipc \ /usr/lib/${PN}/smf* \ /usr/lib/${PN}/clc-cli/*"Explicitly list what you want in FILES_${PN}
Quoted 8 lines
FILES_${PN} =
/usr/lib/${PN}/safMake another PACKAGE for other files
PACKAGES =+ ${PN}-misc
FILES_${PN}-misc =/usr/lib/${PN}/safMaybe someone else can chime in if there is a way to mask certain files...
No,
QA would always complain. For all files you do not want to package make a do_install_append() and remove them inside this function.
Another solution would be to tweak the buildsystem of the software, not to install the unwanted files.
Bye Henning
I still think that the 'exclude" feature would be better.:)
Quoted 45 lines · Henning Heinold
Quoted 21 lines · On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
Quoted 5 lines · Ni Qingliang
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}? there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if no 'exclude' feature, I must redefine FILES_${PN} like this: FILES_${PN} = "/usr/lib/${PN}/*.so.* \ /usr/lib/${PN}/saf* \ /usr/lib/${PN}/open* \ /usr/lib/${PN}/immload \ /usr/lib/${PN}/nid_tipc \ /usr/lib/${PN}/smf* \ /usr/lib/${PN}/clc-cli/*"Explicitly list what you want in FILES_${PN}
Quoted 8 lines
FILES_${PN} =
/usr/lib/${PN}/safMake another PACKAGE for other files
PACKAGES =+ ${PN}-misc
FILES_${PN}-misc =/usr/lib/${PN}/safMaybe someone else can chime in if there is a way to mask certain files...
No,
QA would always complain. For all files you do not want to package make a
do_install_append()and remove them inside this function.Another solution would be to tweak the buildsystem of the software, not to install the unwanted files.
Bye Henning
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com
Quoted 1 line · Ni Qingliang
I still think that the 'exclude" feature would be better.:)
IMHO an exclude function would simply be an automated rm -f <list> at the end of the install process.
It should be fairly easy to implement this if someone thinks it's a better idea then making individual recipes run a rm -f of their own.
--Mark
Quoted 47 lines · Henning Heinold
Quoted 45 lines · On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
Quoted 21 lines
Quoted 5 lines · Ni Qingliang
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}? there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if no 'exclude' feature, I must redefine FILES_${PN} like this: FILES_${PN} = "/usr/lib/${PN}/*.so.* \ /usr/lib/${PN}/saf* \ /usr/lib/${PN}/open* \ /usr/lib/${PN}/immload \ /usr/lib/${PN}/nid_tipc \ /usr/lib/${PN}/smf* \ /usr/lib/${PN}/clc-cli/*"Explicitly list what you want in FILES_${PN}
Quoted 8 lines
FILES_${PN} =
/usr/lib/${PN}/safMake another PACKAGE for other files
PACKAGES =+ ${PN}-misc
FILES_${PN}-misc =/usr/lib/${PN}/safMaybe someone else can chime in if there is a way to mask certain files...
No,
QA would always complain. For all files you do not want to package make a
do_install_append()and remove them inside this function.Another solution would be to tweak the buildsystem of the software, not to install the unwanted files.
Bye Henning
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 9 lines · Mark Hatle
Quoted 2 lines · Ni Qingliang
I still think that the 'exclude" feature would be better.:)
IMHO an exclude function would simply be an automated rm -f <list> at the end of the install process.
It should be fairly easy to implement this if someone thinks it's a better idea then making individual recipes run a rm -f of their own.
I wonder if, in general, it'd be useful to implement glob exclusions. In other words, our list of patterns could become more like a .gitignore file:
/foo/*
!/foo/bar
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 8 lines · Chris Larson
Quoted 7 lines · Mark Hatle
Quoted 2 lines · Ni Qingliang
I still think that the 'exclude" feature would be better.:)
IMHO an exclude function would simply be an automated rm -f<list> at the end of the install process.
Quoted 8 lines
Quoted 2 lines
It should be fairly easy to implement this if someone thinks it's a better idea then making individual recipes run a rm -f of their own.
I wonder if, in general, it'd be useful to implement glob exclusions. In other words, our list of patterns could become more like a .gitignore file:
/foo/*
!/foo/bar
I considered that early on in the Yocto Project work -- but decided against it due to simply the complications required to ensure that the patterns worked as the end user expected them.
I know the bitbake back end and OE classes have matured since then, it may be easier to implement now -- if so I'm certainly interested in this.
--Mark
Op 17 nov. 2011, om 03:29 heeft Ni Qingliang het volgende geschreven:
Quoted 5 lines
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.
Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}?
there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if
no 'exclude' feature, I must redefine FILES_${PN} like this:
FILES_${PN} = "/usr/lib/${PN}/*.so.* \
/usr/lib/${PN}/saf* \
/usr/lib/${PN}/open* \
/usr/lib/${PN}/immload \
/usr/lib/${PN}/nid_tipc \
/usr/lib/${PN}/smf* \
/usr/lib/${PN}/clc-cli/*"please replace all occurrences of '/usr/lib' with '${libdir}'
Oh, my fault.
I defined another var: opensaflibmiscdir
osaflibsvcdir = "${libdir}/${PN}"
FILES_${PN} = "${osaflibsvcdir}/lib*.so.* ${osaflibsvcdir}/clc-cli/* \
${osaflibsvcdir}/immload ${osaflibsvcdir}/nid_tipc \
${osaflibsvcdir}/osaf* ${osaflibsvcdir}/opensaf* \
${osaflibsvcdir}/smf*"FILES_${PN}-dev = "${osaflibsvcdir}/lib*.so ${osaflibsvcdir}/*.la" FILES_${PN}-staticdev = "${osaflibsvcdir}/*.a"
Quoted 24 lines · Koen Kooi
Op 17 nov. 2011, om 03:29 heeft Ni Qingliang het volgende geschreven:
Quoted 5 lines
Hello, All:
I'm working on opensaf, wrote a bb file for it,
and found that the FILES_${PN} has included/usr/lib/${PN}/*. but there are some .a and .so(symlink) in/usr/lib/${PN}, which will result QA issue.Quoted 11 lines
how to exclude some files (e.g. *.a, *.so) in FILES_${PN}? there are some elf in /usr/lib/${PN} whose prefix is not 'lib', so if no 'exclude' feature, I must redefine FILES_${PN} like this: FILES_${PN} = "/usr/lib/${PN}/*.so.* \ /usr/lib/${PN}/saf* \ /usr/lib/${PN}/open* \ /usr/lib/${PN}/immload \ /usr/lib/${PN}/nid_tipc \ /usr/lib/${PN}/smf* \ /usr/lib/${PN}/clc-cli/*"please replace all occurrences of '
/usr/lib' with '${libdir}'
Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com