* "${bindir}" versus "${bindir}/*" ??
@ 2012-03-24 8:40 Robert P. J. Day
2012-03-24 9:45 ` Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2012-03-24 8:40 UTC (permalink / raw)
To: OE Core mailing list
in bitbake.conf, numerous variables like "FILES_${PN}" are
initialized with a combination of directory variables, with two
different forms:
* ${bindir}
* ${bindir}/*
is there a functional difference between those two? my wildly
speculative guess is that if "*" works as it does in the shell, it
would simply skip any hidden objects. is that the difference? since
i don't see that clarified anywhere.
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] 5+ messages in thread* Re: "${bindir}" versus "${bindir}/*" ??
2012-03-24 8:40 "${bindir}" versus "${bindir}/*" ?? Robert P. J. Day
@ 2012-03-24 9:45 ` Richard Purdie
2012-03-24 10:01 ` Robert P. J. Day
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-03-24 9:45 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Sat, 2012-03-24 at 04:40 -0400, Robert P. J. Day wrote:
> in bitbake.conf, numerous variables like "FILES_${PN}" are
> initialized with a combination of directory variables, with two
> different forms:
>
> * ${bindir}
> * ${bindir}/*
>
> is there a functional difference between those two? my wildly
> speculative guess is that if "*" works as it does in the shell, it
> would simply skip any hidden objects. is that the difference? since
> i don't see that clarified anywhere.
The former is recursive and the latter is not and will just match files
in the directory (unhidden ones at that).
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: "${bindir}" versus "${bindir}/*" ??
2012-03-24 9:45 ` Richard Purdie
@ 2012-03-24 10:01 ` Robert P. J. Day
2012-03-24 11:26 ` Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2012-03-24 10:01 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Sat, 24 Mar 2012, Richard Purdie wrote:
> On Sat, 2012-03-24 at 04:40 -0400, Robert P. J. Day wrote:
> > in bitbake.conf, numerous variables like "FILES_${PN}" are
> > initialized with a combination of directory variables, with two
> > different forms:
> >
> > * ${bindir}
> > * ${bindir}/*
> >
> > is there a functional difference between those two? my wildly
> > speculative guess is that if "*" works as it does in the shell, it
> > would simply skip any hidden objects. is that the difference? since
> > i don't see that clarified anywhere.
>
> The former is recursive and the latter is not and will just match files
> in the directory (unhidden ones at that).
ah, that clears up so much. i'm actually embarrassed to ask such
obvious questions -- is that written up somewhere that i should have
run across it before asking about it?
rday
p.s. By "unhidden ones at that," i'm assuming you mean *only*
unhidden ones? so that its behaviour is entirely consistent with what
people would expect?
--
========================================================================
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] 5+ messages in thread* Re: "${bindir}" versus "${bindir}/*" ??
2012-03-24 10:01 ` Robert P. J. Day
@ 2012-03-24 11:26 ` Richard Purdie
2012-03-24 12:37 ` Robert P. J. Day
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-03-24 11:26 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Rifenbark, Scott M
On Sat, 2012-03-24 at 06:01 -0400, Robert P. J. Day wrote:
> On Sat, 24 Mar 2012, Richard Purdie wrote:
>
> > On Sat, 2012-03-24 at 04:40 -0400, Robert P. J. Day wrote:
> > > in bitbake.conf, numerous variables like "FILES_${PN}" are
> > > initialized with a combination of directory variables, with two
> > > different forms:
> > >
> > > * ${bindir}
> > > * ${bindir}/*
> > >
> > > is there a functional difference between those two? my wildly
> > > speculative guess is that if "*" works as it does in the shell, it
> > > would simply skip any hidden objects. is that the difference? since
> > > i don't see that clarified anywhere.
> >
> > The former is recursive and the latter is not and will just match files
> > in the directory (unhidden ones at that).
>
> ah, that clears up so much. i'm actually embarrassed to ask such
> obvious questions -- is that written up somewhere that i should have
> run across it before asking about it?
>
> rday
>
> p.s. By "unhidden ones at that," i'm assuming you mean *only*
> unhidden ones? so that its behaviour is entirely consistent with what
> people would expect?
I'm not passing judgement on that :).
Keep in mind that the whole system grew fairly organically more so at
some times that others and there are a ton on inconsistencies,
particularly when you get deeply into the system. I think OE-Core has
fixed a lot of details and has concentrated on the most user visible
ones but there are more things that could be cleaned up. I doubt we ever
will have a totally consistent system and I suspect if we did we'd hurt
the power and flexibility which are some of the bigger assets of the
project.
FWIW, the behaviour of the FILES_* variables uses python's globbing
functionality behind the scenes. If you know that it helps to understand
it:
http://docs.python.org/library/glob.html
(which in turn refers you to shell expansion which is something most
people are familiar with).
I think what I'd ask is where you find these things, ask questions and
get answers (such as the info about python glob above), can you please
try and document it somewhere?
Even if this is in the form of a Q&A type document it would perhaps save
the information and someone like Scott Rifenbark could then go through
this when he was time and integrate it into the manuals (assuming you
don't want to send him direct patches for that). This particular change
would make a good addition to:
http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#var-FILES
I'd also add that I sometimes hate the fact we use glob for FILES since
it does limit some of the things you can do. .debug directories are a
pet hate of mine in that regard.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: "${bindir}" versus "${bindir}/*" ??
2012-03-24 11:26 ` Richard Purdie
@ 2012-03-24 12:37 ` Robert P. J. Day
0 siblings, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2012-03-24 12:37 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Rifenbark, Scott M
On Sat, 24 Mar 2012, Richard Purdie wrote:
... snip ...
> I think what I'd ask is where you find these things, ask questions and
> get answers (such as the info about python glob above), can you please
> try and document it somewhere?
... snip ...
i've started my own wiki page re: oe-core, with a couple sections:
http://www.crashcourse.ca/wiki/index.php/OE-Core#Weirdness.2Foddities.2Fpossible_fixes_and_cleanups_in_current_OE-core
http://www.crashcourse.ca/wiki/index.php/OE-Core#Yocto.2FPoky_Reference_manual_variable_glossary_oddities
so, yes, i'm taking notes. :-)
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] 5+ messages in thread
end of thread, other threads:[~2012-03-24 12:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-24 8:40 "${bindir}" versus "${bindir}/*" ?? Robert P. J. Day
2012-03-24 9:45 ` Richard Purdie
2012-03-24 10:01 ` Robert P. J. Day
2012-03-24 11:26 ` Richard Purdie
2012-03-24 12:37 ` Robert P. J. Day
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.