* FILES_${PN} packaging and wildcarded exclusions
@ 2014-03-04 10:10 Alex J Lennon
2014-03-04 11:01 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Alex J Lennon @ 2014-03-04 10:10 UTC (permalink / raw)
To: yocto@yoctoproject.org
Hi,
I'm trying to understand how to cleanly extend FILES${PN} to include
files that are staged and need to be packaged
If I start with something like
FILES_${PN} += " \
${libdir}/mono/gac/policy.0.2.Mono.Addins/0.0.0.0__0738eb9f132ed756/* \
${libdir}/mono/gac/policy.0.2.Mono.Addins.Setup/0.0.0.0__0738eb9f132ed756/*
\
${libdir}/mono/gac/policy.0.6.Mono.Addins.CecilReflector/0.0.0.0__0738eb9f132ed756/*
\
${libdir}/mono/gac/policy.0.6.Mono.Addins.Gui/0.0.0.0__0738eb9f132ed756/* \
<snip/>
I seem to be able to clean that up a bit to
FILES_${PN} += " \
${libdir}/mono/gac/*/*/* \
<snip/>
What I'd like to do is to be able to represent "all files excepting
files ending with .mdb", for example, as I want to add those to a
${PN}-dbg package.
I was wondering if there's a syntax I can use within FILES_${PN} to
achieve that cleanly?
Thanks,
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FILES_${PN} packaging and wildcarded exclusions
2014-03-04 10:10 FILES_${PN} packaging and wildcarded exclusions Alex J Lennon
@ 2014-03-04 11:01 ` Paul Eggleton
2014-03-04 11:05 ` Alex J Lennon
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2014-03-04 11:01 UTC (permalink / raw)
To: Alex J Lennon; +Cc: yocto
Hi Alex,
On Tuesday 04 March 2014 10:10:13 Alex J Lennon wrote:
> I'm trying to understand how to cleanly extend FILES${PN} to include
> files that are staged and need to be packaged
>
> If I start with something like
>
> FILES_${PN} += " \
> ${libdir}/mono/gac/policy.0.2.Mono.Addins/0.0.0.0__0738eb9f132ed756/* \
> ${libdir}/mono/gac/policy.0.2.Mono.Addins.Setup/0.0.0.0__0738eb9f132ed756/*
> \
> ${libdir}/mono/gac/policy.0.6.Mono.Addins.CecilReflector/0.0.0.0__0738eb9f13
> 2ed756/* \
> ${libdir}/mono/gac/policy.0.6.Mono.Addins.Gui/0.0.0.0__0738eb9f132ed756/* \
> <snip/>
>
> I seem to be able to clean that up a bit to
>
> FILES_${PN} += " \
> ${libdir}/mono/gac/*/*/* \
> <snip/>
>
> What I'd like to do is to be able to represent "all files excepting
> files ending with .mdb", for example, as I want to add those to a
> ${PN}-dbg package.
>
> I was wondering if there's a syntax I can use within FILES_${PN} to
> achieve that cleanly?
There isn't I'm afraid - the tools you have available are wildcards and the
ordering of PACKAGES, since the first package whose FILES value matches a file
will get the file. However, for this specific case this should be just fine -
${PN}-dbg appears before ${PN} in the default value of PACKAGES, so you just
need to ensure FILES_${PN}-dbg is extended as needed.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FILES_${PN} packaging and wildcarded exclusions
2014-03-04 11:01 ` Paul Eggleton
@ 2014-03-04 11:05 ` Alex J Lennon
2014-03-04 11:14 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Alex J Lennon @ 2014-03-04 11:05 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 2807 bytes --]
On 04/03/2014 11:01, Paul Eggleton wrote:
> Hi Alex,
>
> On Tuesday 04 March 2014 10:10:13 Alex J Lennon wrote:
>> I'm trying to understand how to cleanly extend FILES${PN} to include
>> files that are staged and need to be packaged
>>
>> If I start with something like
>>
>> FILES_${PN} += " \
>> ${libdir}/mono/gac/policy.0.2.Mono.Addins/0.0.0.0__0738eb9f132ed756/* \
>> ${libdir}/mono/gac/policy.0.2.Mono.Addins.Setup/0.0.0.0__0738eb9f132ed756/*
>> \
>> ${libdir}/mono/gac/policy.0.6.Mono.Addins.CecilReflector/0.0.0.0__0738eb9f13
>> 2ed756/* \
>> ${libdir}/mono/gac/policy.0.6.Mono.Addins.Gui/0.0.0.0__0738eb9f132ed756/* \
>> <snip/>
>>
>> I seem to be able to clean that up a bit to
>>
>> FILES_${PN} += " \
>> ${libdir}/mono/gac/*/*/* \
>> <snip/>
>>
>> What I'd like to do is to be able to represent "all files excepting
>> files ending with .mdb", for example, as I want to add those to a
>> ${PN}-dbg package.
>>
>> I was wondering if there's a syntax I can use within FILES_${PN} to
>> achieve that cleanly?
> There isn't I'm afraid - the tools you have available are wildcards and the
> ordering of PACKAGES, since the first package whose FILES value matches a file
> will get the file. However, for this specific case this should be just fine -
> ${PN}-dbg appears before ${PN} in the default value of PACKAGES, so you just
> need to ensure FILES_${PN}-dbg is extended as needed.
Oh great, thanks. So as long as I make sure the order of precedence is
as needed in PACKAGES then the files will go in the right packages.
I wonder if there's any benefit to allowing regexp in FILES_
definitions? Or if that's just overcomplicating something that already
works?
> Cheers,
> Paul
>
--
Dynamic Devices Ltd <http://www.dynamicdevices.co.uk/>
Alex J Lennon / Director
1 Queensway, Liverpool L22 4RA
mobile: +44 (0)7956 668178
Linkedin <http://www.linkedin.com/in/alexjlennon> Skype
<skype:alexjlennon?add>
This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended
recipient(s). Any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is prohibited. E-mails are not secure and cannot be guaranteed to
be error free as they can be intercepted, amended, or contain viruses.
Anyone who communicates with us by e-mail is deemed to have accepted
these risks. Company Name is not responsible for errors or omissions in
this message and denies any responsibility for any damage arising from
the use of e-mail. Any opinion and other statement contained in this
message and any attachment are solely those of the author and do not
necessarily represent those of the company.
[-- Attachment #2.1: Type: text/html, Size: 5227 bytes --]
[-- Attachment #2.2: ddlogo-4.png --]
[-- Type: image/png, Size: 3997 bytes --]
[-- Attachment #2.3: linkedin.png --]
[-- Type: image/png, Size: 631 bytes --]
[-- Attachment #2.4: skype.png --]
[-- Type: image/png, Size: 800 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FILES_${PN} packaging and wildcarded exclusions
2014-03-04 11:05 ` Alex J Lennon
@ 2014-03-04 11:14 ` Paul Eggleton
0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2014-03-04 11:14 UTC (permalink / raw)
To: Alex J Lennon; +Cc: yocto
On Tuesday 04 March 2014 11:05:34 Alex J Lennon wrote:
> On 04/03/2014 11:01, Paul Eggleton wrote:
> > Hi Alex,
> >
> > On Tuesday 04 March 2014 10:10:13 Alex J Lennon wrote:
> >> I'm trying to understand how to cleanly extend FILES${PN} to include
> >> files that are staged and need to be packaged
> >>
> >> If I start with something like
> >>
> >> FILES_${PN} += " \
> >> ${libdir}/mono/gac/policy.0.2.Mono.Addins/0.0.0.0__0738eb9f132ed756/* \
> >> ${libdir}/mono/gac/policy.0.2.Mono.Addins.Setup/0.0.0.0__0738eb9f132ed756
> >> /*
> >> \
> >> ${libdir}/mono/gac/policy.0.6.Mono.Addins.CecilReflector/0.0.0.0__0738eb9
> >> f13 2ed756/* \
> >> ${libdir}/mono/gac/policy.0.6.Mono.Addins.Gui/0.0.0.0__0738eb9f132ed756/*
> >> \
> >> <snip/>
> >>
> >> I seem to be able to clean that up a bit to
> >>
> >> FILES_${PN} += " \
> >> ${libdir}/mono/gac/*/*/* \
> >> <snip/>
> >>
> >> What I'd like to do is to be able to represent "all files excepting
> >> files ending with .mdb", for example, as I want to add those to a
> >> ${PN}-dbg package.
> >>
> >> I was wondering if there's a syntax I can use within FILES_${PN} to
> >> achieve that cleanly?
> >
> > There isn't I'm afraid - the tools you have available are wildcards and
> > the
> > ordering of PACKAGES, since the first package whose FILES value matches a
> > file will get the file. However, for this specific case this should be
> > just fine - ${PN}-dbg appears before ${PN} in the default value of
> > PACKAGES, so you just need to ensure FILES_${PN}-dbg is extended as
> > needed.
>
> Oh great, thanks. So as long as I make sure the order of precedence is
> as needed in PACKAGES then the files will go in the right packages.
>
> I wonder if there's any benefit to allowing regexp in FILES_
> definitions? Or if that's just overcomplicating something that already
> works?
Well, I know the issue of making packaging a bit more flexible has been talked
about in the past, but I think we'd be reluctant to just add regex support
unless it's solving something that's hard / impossible with the current
scheme. The way it works now is already a bit complex for new users so
increasing the complexity might have the opposite to the desired effect, and of
course there's compatibility and performance impact to think about.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-04 11:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 10:10 FILES_${PN} packaging and wildcarded exclusions Alex J Lennon
2014-03-04 11:01 ` Paul Eggleton
2014-03-04 11:05 ` Alex J Lennon
2014-03-04 11:14 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.