* how to exclude files when packaging?
@ 2011-11-17 2:29 Ni Qingliang
2011-11-17 8:14 ` McClintock Matthew-B29882
2011-11-17 9:10 ` Koen Kooi
0 siblings, 2 replies; 10+ messages in thread
From: Ni Qingliang @ 2011-11-17 2:29 UTC (permalink / raw)
To: openembedded-core
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/*"
--
Yi Qingliang
niqingliang@insigma.com.cn
https://niqingliang2003.wordpress.com
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 2:29 how to exclude files when packaging? Ni Qingliang
@ 2011-11-17 8:14 ` McClintock Matthew-B29882
2011-11-17 8:56 ` Martin Jansa
2011-11-17 8:57 ` Henning Heinold
2011-11-17 9:10 ` Koen Kooi
1 sibling, 2 replies; 10+ messages in thread
From: McClintock Matthew-B29882 @ 2011-11-17 8:14 UTC (permalink / raw)
To: niqingliang@insigma.com.cn,
Patches and discussions about the oe-core layer
On Wed, Nov 16, 2011 at 8:29 PM, Ni Qingliang
<niqingliang@insigma.com.cn> wrote:
> 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/*"
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
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 8:14 ` McClintock Matthew-B29882
@ 2011-11-17 8:56 ` Martin Jansa
2011-11-17 8:57 ` Henning Heinold
1 sibling, 0 replies; 10+ messages in thread
From: Martin Jansa @ 2011-11-17 8:56 UTC (permalink / raw)
To: McClintock Matthew-B29882,
Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]
On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
> On Wed, Nov 16, 2011 at 8:29 PM, Ni Qingliang
> <niqingliang@insigma.com.cn> wrote:
> > 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/*"
>
> 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...
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,
>
> -M
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 8:14 ` McClintock Matthew-B29882
2011-11-17 8:56 ` Martin Jansa
@ 2011-11-17 8:57 ` Henning Heinold
2011-11-17 9:12 ` Ni Qingliang
1 sibling, 1 reply; 10+ messages in thread
From: Henning Heinold @ 2011-11-17 8:57 UTC (permalink / raw)
To: openembedded-core
On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
> On Wed, Nov 16, 2011 at 8:29 PM, Ni Qingliang
> <niqingliang@insigma.com.cn> wrote:
> > 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/*"
>
> 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...
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
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 8:57 ` Henning Heinold
@ 2011-11-17 9:12 ` Ni Qingliang
2011-11-17 19:38 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Ni Qingliang @ 2011-11-17 9:12 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
I still think that the 'exclude" feature would be better.:)
On Thu, 2011-11-17 at 16:57 +0800, Henning Heinold wrote:
> On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
> > On Wed, Nov 16, 2011 at 8:29 PM, Ni Qingliang
> > <niqingliang@insigma.com.cn> wrote:
> > > 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/*"
> >
> > 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...
>
> 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
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Yi Qingliang
niqingliang@insigma.com.cn
https://niqingliang2003.wordpress.com
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 9:12 ` Ni Qingliang
@ 2011-11-17 19:38 ` Mark Hatle
2011-11-17 19:43 ` Chris Larson
0 siblings, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2011-11-17 19:38 UTC (permalink / raw)
To: openembedded-core
On 11/17/11 3:12 AM, Ni Qingliang wrote:
> 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
> On Thu, 2011-11-17 at 16:57 +0800, Henning Heinold wrote:
>> On Thu, Nov 17, 2011 at 08:14:06AM +0000, McClintock Matthew-B29882 wrote:
>>> On Wed, Nov 16, 2011 at 8:29 PM, Ni Qingliang
>>> <niqingliang@insigma.com.cn> wrote:
>>>> 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/*"
>>>
>>> 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...
>>
>> 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
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 19:38 ` Mark Hatle
@ 2011-11-17 19:43 ` Chris Larson
2011-11-17 19:51 ` Mark Hatle
0 siblings, 1 reply; 10+ messages in thread
From: Chris Larson @ 2011-11-17 19:43 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Nov 17, 2011 at 12:38 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> On 11/17/11 3:12 AM, Ni Qingliang wrote:
>>
>> 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
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to exclude files when packaging?
2011-11-17 19:43 ` Chris Larson
@ 2011-11-17 19:51 ` Mark Hatle
0 siblings, 0 replies; 10+ messages in thread
From: Mark Hatle @ 2011-11-17 19:51 UTC (permalink / raw)
To: openembedded-core
On 11/17/11 1:43 PM, Chris Larson wrote:
> On Thu, Nov 17, 2011 at 12:38 PM, Mark Hatle<mark.hatle@windriver.com> wrote:
>> On 11/17/11 3:12 AM, Ni Qingliang wrote:
>>>
>>> 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
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to exclude files when packaging?
2011-11-17 2:29 how to exclude files when packaging? Ni Qingliang
2011-11-17 8:14 ` McClintock Matthew-B29882
@ 2011-11-17 9:10 ` Koen Kooi
2011-11-17 9:30 ` Ni Qingliang
1 sibling, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2011-11-17 9:10 UTC (permalink / raw)
To: niqingliang, Patches and discussions about the oe-core layer
Op 17 nov. 2011, om 03:29 heeft Ni Qingliang het volgende geschreven:
> 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/*"
please replace all occurrences of '/usr/lib' with '${libdir}'
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: how to exclude files when packaging?
2011-11-17 9:10 ` Koen Kooi
@ 2011-11-17 9:30 ` Ni Qingliang
0 siblings, 0 replies; 10+ messages in thread
From: Ni Qingliang @ 2011-11-17 9:30 UTC (permalink / raw)
To: Koen Kooi; +Cc: Patches and discussions about the oe-core layer
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"
On Thu, 2011-11-17 at 17:10 +0800, Koen Kooi wrote:
> Op 17 nov. 2011, om 03:29 heeft Ni Qingliang het volgende geschreven:
>
> > 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/*"
>
>
> please replace all occurrences of '/usr/lib' with '${libdir}'
>
>
>
--
Yi Qingliang
niqingliang@insigma.com.cn
https://niqingliang2003.wordpress.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-11-17 19:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 2:29 how to exclude files when packaging? Ni Qingliang
2011-11-17 8:14 ` McClintock Matthew-B29882
2011-11-17 8:56 ` Martin Jansa
2011-11-17 8:57 ` Henning Heinold
2011-11-17 9:12 ` Ni Qingliang
2011-11-17 19:38 ` Mark Hatle
2011-11-17 19:43 ` Chris Larson
2011-11-17 19:51 ` Mark Hatle
2011-11-17 9:10 ` Koen Kooi
2011-11-17 9:30 ` Ni Qingliang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox