* what exactly is the proper way to use FILESEXTRAPATHS?
@ 2012-12-06 20:27 Robert P. J. Day
2012-12-06 23:15 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2012-12-06 20:27 UTC (permalink / raw)
To: OE Core mailing list
continuing my trek through coding pedantry and was wondering about
the exact purpose of the common line in .bbappend files:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
or some slight variation thereof.
i *thought* i knew what it did, so i did a small experiment with the
meta-ti layer and netbase (since i was already messing around with
it), and i replaced the contents of the netbase .bbappend file with
the single line:
FILESEXTRAPATHS_prepend := "rday"
and checked the environment for the value of FILESPATH for the netbase
recipe and, after formatting to read it clearly, what i saw was:
FILESPATH="rday/linux-gnueabi
rday/arm
rday/build-linux
rday/pn-netbase
rday/beagleboard
rday/omap3
rday/armv7a
rday/
rday/class-target
rday/forcevariable
rday/libc-glibc
rday/
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/linux-gnueabi
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/arm
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/build-linux
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/pn-netbase
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/beagleboard
/home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/omap3
... snip ...
what the heck? if that's what FILESEXTRAPATHS is supposed to do,
that is definitely *not* how it's being used in many, many bbappend
files.
is there an explanation somewhere as to what the above is supposed
to represent?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-06 20:27 what exactly is the proper way to use FILESEXTRAPATHS? Robert P. J. Day
@ 2012-12-06 23:15 ` Richard Purdie
2012-12-06 23:20 ` Robert P. J. Day
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-12-06 23:15 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: OE Core mailing list
On Thu, 2012-12-06 at 15:27 -0500, Robert P. J. Day wrote:
> continuing my trek through coding pedantry and was wondering about
> the exact purpose of the common line in .bbappend files:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> or some slight variation thereof.
>
> i *thought* i knew what it did, so i did a small experiment with the
> meta-ti layer and netbase (since i was already messing around with
> it), and i replaced the contents of the netbase .bbappend file with
> the single line:
>
> FILESEXTRAPATHS_prepend := "rday"
>
> and checked the environment for the value of FILESPATH for the netbase
> recipe and, after formatting to read it clearly, what i saw was:
>
> FILESPATH="rday/linux-gnueabi
> rday/arm
> rday/build-linux
> rday/pn-netbase
> rday/beagleboard
> rday/omap3
> rday/armv7a
> rday/
> rday/class-target
> rday/forcevariable
> rday/libc-glibc
> rday/
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/linux-gnueabi
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/arm
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/build-linux
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/pn-netbase
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/beagleboard
> /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/omap3
> ... snip ...
>
> what the heck? if that's what FILESEXTRAPATHS is supposed to do,
> that is definitely *not* how it's being used in many, many bbappend
> files.
>
> is there an explanation somewhere as to what the above is supposed
> to represent?
What is puzzling about the above? Its doing what it was designed to do.
The idea is to add the directory listed to the set of directories that
get "autogenerated" from OVERRIDES as search locations. What did you
expect it to do?
FWIW there is no need to use := with FILESEXTRAPATHS, or prepend for
that matter, just use +=/=+.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-06 23:15 ` Richard Purdie
@ 2012-12-06 23:20 ` Robert P. J. Day
2012-12-07 16:11 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2012-12-06 23:20 UTC (permalink / raw)
To: Richard Purdie; +Cc: OE Core mailing list
On Thu, 6 Dec 2012, Richard Purdie wrote:
> On Thu, 2012-12-06 at 15:27 -0500, Robert P. J. Day wrote:
> > continuing my trek through coding pedantry and was wondering about
> > the exact purpose of the common line in .bbappend files:
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> >
> > or some slight variation thereof.
> >
> > i *thought* i knew what it did, so i did a small experiment with the
> > meta-ti layer and netbase (since i was already messing around with
> > it), and i replaced the contents of the netbase .bbappend file with
> > the single line:
> >
> > FILESEXTRAPATHS_prepend := "rday"
> >
> > and checked the environment for the value of FILESPATH for the netbase
> > recipe and, after formatting to read it clearly, what i saw was:
> >
> > FILESPATH="rday/linux-gnueabi
> > rday/arm
> > rday/build-linux
> > rday/pn-netbase
> > rday/beagleboard
> > rday/omap3
> > rday/armv7a
> > rday/
> > rday/class-target
> > rday/forcevariable
> > rday/libc-glibc
> > rday/
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/linux-gnueabi
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/arm
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/build-linux
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/pn-netbase
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/beagleboard
> > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/omap3
> > ... snip ...
> >
> > what the heck? if that's what FILESEXTRAPATHS is supposed to do,
> > that is definitely *not* how it's being used in many, many bbappend
> > files.
> >
> > is there an explanation somewhere as to what the above is supposed
> > to represent?
>
> What is puzzling about the above? Its doing what it was designed to do.
>
> The idea is to add the directory listed to the set of directories that
> get "autogenerated" from OVERRIDES as search locations. What did you
> expect it to do?
i am, right this minute, looking at the explanation of
FILESEXTRAPATHS in the poky reference manual glossary. i see
absolutely no mention of the word "OVERRIDES".
signing off for the evening as i'm starting to get annoyed ...
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-06 23:20 ` Robert P. J. Day
@ 2012-12-07 16:11 ` Richard Purdie
2012-12-07 16:16 ` Robert P. J. Day
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Richard Purdie @ 2012-12-07 16:11 UTC (permalink / raw)
To: Robert P. J. Day, Rifenbark, Scott M; +Cc: OE Core mailing list
On Thu, 2012-12-06 at 18:20 -0500, Robert P. J. Day wrote:
> On Thu, 6 Dec 2012, Richard Purdie wrote:
>
> > On Thu, 2012-12-06 at 15:27 -0500, Robert P. J. Day wrote:
> > > continuing my trek through coding pedantry and was wondering about
> > > the exact purpose of the common line in .bbappend files:
> > >
> > > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> > >
> > > or some slight variation thereof.
> > >
> > > i *thought* i knew what it did, so i did a small experiment with the
> > > meta-ti layer and netbase (since i was already messing around with
> > > it), and i replaced the contents of the netbase .bbappend file with
> > > the single line:
> > >
> > > FILESEXTRAPATHS_prepend := "rday"
> > >
> > > and checked the environment for the value of FILESPATH for the netbase
> > > recipe and, after formatting to read it clearly, what i saw was:
> > >
> > > FILESPATH="rday/linux-gnueabi
> > > rday/arm
> > > rday/build-linux
> > > rday/pn-netbase
> > > rday/beagleboard
> > > rday/omap3
> > > rday/armv7a
> > > rday/
> > > rday/class-target
> > > rday/forcevariable
> > > rday/libc-glibc
> > > rday/
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/linux-gnueabi
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/arm
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/build-linux
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/pn-netbase
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/beagleboard
> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/omap3
> > > ... snip ...
> > >
> > > what the heck? if that's what FILESEXTRAPATHS is supposed to do,
> > > that is definitely *not* how it's being used in many, many bbappend
> > > files.
> > >
> > > is there an explanation somewhere as to what the above is supposed
> > > to represent?
> >
> > What is puzzling about the above? Its doing what it was designed to do.
> >
> > The idea is to add the directory listed to the set of directories that
> > get "autogenerated" from OVERRIDES as search locations. What did you
> > expect it to do?
>
> i am, right this minute, looking at the explanation of
> FILESEXTRAPATHS in the poky reference manual glossary. i see
> absolutely no mention of the word "OVERRIDES".
>
> signing off for the evening as i'm starting to get annoyed ...
It sounds like the docs are missing some details about how this works
and what its designed to do. We should add the information and there are
several of us who will happily work with Scott on fixing that.
Getting annoyed isn't going to help.
I'd also add that we're about to change the way this works a little so
we'd perhaps better hold off fixing the manual until we've made that
change (which will simplify the lists of search paths you've been seeing
further).
Scott: Looks like we need to tweak the manual in this location. Could
you open a bug or otherwise track this please?
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-07 16:11 ` Richard Purdie
@ 2012-12-07 16:16 ` Robert P. J. Day
2012-12-07 17:09 ` Robert P. J. Day
2012-12-07 23:58 ` Rifenbark, Scott M
2 siblings, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2012-12-07 16:16 UTC (permalink / raw)
To: Richard Purdie; +Cc: Rifenbark, Scott M, OE Core mailing list
On Fri, 7 Dec 2012, Richard Purdie wrote:
> It sounds like the docs are missing some details about how this
> works and what its designed to do. We should add the information and
> there are several of us who will happily work with Scott on fixing
> that.
>
> Getting annoyed isn't going to help.
>
> I'd also add that we're about to change the way this works a little
> so we'd perhaps better hold off fixing the manual until we've made
> that change (which will simplify the lists of search paths you've
> been seeing further).
>
> Scott: Looks like we need to tweak the manual in this location.
> Could you open a bug or otherwise track this please?
i'm in the midst of writing a wiki page on this for my upcoming
class, so once i'm done, feel free to steal.
and on a related note, my profuse apologies for my snottiness
earlier -- i was totally missing the critical point about bbappend
files being stacked which made all the difference and cleared
everything up.
grrrrrrr ... my bad.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-07 16:11 ` Richard Purdie
2012-12-07 16:16 ` Robert P. J. Day
@ 2012-12-07 17:09 ` Robert P. J. Day
2012-12-07 23:58 ` Rifenbark, Scott M
2 siblings, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2012-12-07 17:09 UTC (permalink / raw)
To: Richard Purdie; +Cc: Rifenbark, Scott M, OE Core mailing list
On Fri, 7 Dec 2012, Richard Purdie wrote:
> Scott: Looks like we need to tweak the manual in this location. Could
> you open a bug or otherwise track this please?
have i written anything abysmally stupid here so far?
http://www.crashcourse.ca/wiki/index.php/FILESEXTRAPATHS_and_bbappend_files
i really like to use live examples from the source to explain my
points.
a bit more coming for that page ...
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what exactly is the proper way to use FILESEXTRAPATHS?
2012-12-07 16:11 ` Richard Purdie
2012-12-07 16:16 ` Robert P. J. Day
2012-12-07 17:09 ` Robert P. J. Day
@ 2012-12-07 23:58 ` Rifenbark, Scott M
2 siblings, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2012-12-07 23:58 UTC (permalink / raw)
To: Richard Purdie, Robert P. J. Day; +Cc: OE Core mailing list
New bug filed...
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3552
Scott
>-----Original Message-----
>From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
>Sent: Friday, December 07, 2012 8:12 AM
>To: Robert P. J. Day; Rifenbark, Scott M
>Cc: OE Core mailing list
>Subject: Re: [OE-core] what exactly is the proper way to use
>FILESEXTRAPATHS?
>
>On Thu, 2012-12-06 at 18:20 -0500, Robert P. J. Day wrote:
>> On Thu, 6 Dec 2012, Richard Purdie wrote:
>>
>> > On Thu, 2012-12-06 at 15:27 -0500, Robert P. J. Day wrote:
>> > > continuing my trek through coding pedantry and was wondering about
>> > > the exact purpose of the common line in .bbappend files:
>> > >
>> > > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>> > >
>> > > or some slight variation thereof.
>> > >
>> > > i *thought* i knew what it did, so i did a small experiment with
>the
>> > > meta-ti layer and netbase (since i was already messing around with
>> > > it), and i replaced the contents of the netbase .bbappend file
>with
>> > > the single line:
>> > >
>> > > FILESEXTRAPATHS_prepend := "rday"
>> > >
>> > > and checked the environment for the value of FILESPATH for the
>netbase
>> > > recipe and, after formatting to read it clearly, what i saw was:
>> > >
>> > > FILESPATH="rday/linux-gnueabi
>> > > rday/arm
>> > > rday/build-linux
>> > > rday/pn-netbase
>> > > rday/beagleboard
>> > > rday/omap3
>> > > rday/armv7a
>> > > rday/
>> > > rday/class-target
>> > > rday/forcevariable
>> > > rday/libc-glibc
>> > > rday/
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/linux-gnueabi
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/arm
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/build-linux
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/pn-netbase
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/beagleboard
>> > > /home/rpjday/OE/dist/layers/oe-core/meta/recipes-
>core/netbase/netbase-5.0/omap3
>> > > ... snip ...
>> > >
>> > > what the heck? if that's what FILESEXTRAPATHS is supposed to
>do,
>> > > that is definitely *not* how it's being used in many, many
>bbappend
>> > > files.
>> > >
>> > > is there an explanation somewhere as to what the above is
>supposed
>> > > to represent?
>> >
>> > What is puzzling about the above? Its doing what it was designed to
>do.
>> >
>> > The idea is to add the directory listed to the set of directories
>that
>> > get "autogenerated" from OVERRIDES as search locations. What did you
>> > expect it to do?
>>
>> i am, right this minute, looking at the explanation of
>> FILESEXTRAPATHS in the poky reference manual glossary. i see
>> absolutely no mention of the word "OVERRIDES".
>>
>> signing off for the evening as i'm starting to get annoyed ...
>
>It sounds like the docs are missing some details about how this works
>and what its designed to do. We should add the information and there are
>several of us who will happily work with Scott on fixing that.
>
>Getting annoyed isn't going to help.
>
>I'd also add that we're about to change the way this works a little so
>we'd perhaps better hold off fixing the manual until we've made that
>change (which will simplify the lists of search paths you've been seeing
>further).
>
>Scott: Looks like we need to tweak the manual in this location. Could
>you open a bug or otherwise track this please?
>
>Cheers,
>
>Richard
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-12-08 0:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 20:27 what exactly is the proper way to use FILESEXTRAPATHS? Robert P. J. Day
2012-12-06 23:15 ` Richard Purdie
2012-12-06 23:20 ` Robert P. J. Day
2012-12-07 16:11 ` Richard Purdie
2012-12-07 16:16 ` Robert P. J. Day
2012-12-07 17:09 ` Robert P. J. Day
2012-12-07 23:58 ` Rifenbark, Scott M
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox