* Please ensure you are using layout variables in recipes
@ 2011-01-25 12:35 Joshua Lock
2011-01-25 15:50 ` Darren Hart
2011-01-25 17:52 ` Koen Kooi
0 siblings, 2 replies; 6+ messages in thread
From: Joshua Lock @ 2011-01-25 12:35 UTC (permalink / raw)
To: poky
Hi all,
When creating/editing recipes can we please ensure consistent use of
layout variables, rather than absolute paths.
For example use:
${bindir}/foo
${datadir}/bar
and
${base_sbindir}/baz
rather than:
/usr/bin/foo
/usr/share/bar
and
/sbin/baz
The layout variables are defined in bitbake.conf and we should have
pretty much everything we need there, if you feel some are missing
please submit a patch (we've recently added some for cross and nativesdk
use, for example).
Thanks,
Joshua
--
Joshua Lock
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Please ensure you are using layout variables in recipes
2011-01-25 12:35 Please ensure you are using layout variables in recipes Joshua Lock
@ 2011-01-25 15:50 ` Darren Hart
2011-01-25 16:00 ` Joshua Lock
2011-01-25 17:52 ` Koen Kooi
1 sibling, 1 reply; 6+ messages in thread
From: Darren Hart @ 2011-01-25 15:50 UTC (permalink / raw)
To: Joshua Lock; +Cc: poky
On 01/25/2011 04:35 AM, Joshua Lock wrote:
> Hi all,
>
> When creating/editing recipes can we please ensure consistent use of
> layout variables, rather than absolute paths.
Hi Josh,
When I was putting together the mediatomb scripts I remember running
into this. We typically have to write custom init scripts, for example,
in order to deal with this as well as some other subtleties and
assumptions made by the package init author. In these cases, it would be
really useful to have a layer skeleton, which also included skeleton
recipes, images, etc. All commented, complete with documentation links
to aid people through the process. Seeing it all together in final form
would go a long way to helping people get it right the first (or maybe
the second) time. I've discussed this with Saul as well, maybe something
we need to get on the schedule?
--
Darren
>
> For example use:
>
> ${bindir}/foo
> ${datadir}/bar
> and
> ${base_sbindir}/baz
>
> rather than:
>
> /usr/bin/foo
> /usr/share/bar
> and
> /sbin/baz
>
> The layout variables are defined in bitbake.conf and we should have
> pretty much everything we need there, if you feel some are missing
> please submit a patch (we've recently added some for cross and nativesdk
> use, for example).
>
> Thanks,
> Joshua
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Please ensure you are using layout variables in recipes
2011-01-25 15:50 ` Darren Hart
@ 2011-01-25 16:00 ` Joshua Lock
2011-01-25 17:19 ` Saul Wold
0 siblings, 1 reply; 6+ messages in thread
From: Joshua Lock @ 2011-01-25 16:00 UTC (permalink / raw)
To: poky
On Tue, 2011-01-25 at 07:50 -0800, Darren Hart wrote:
> On 01/25/2011 04:35 AM, Joshua Lock wrote:
> > Hi all,
> >
> > When creating/editing recipes can we please ensure consistent use of
> > layout variables, rather than absolute paths.
>
> Hi Josh,
>
> When I was putting together the mediatomb scripts I remember running
> into this. We typically have to write custom init scripts, for example,
> in order to deal with this as well as some other subtleties and
> assumptions made by the package init author. In these cases, it would be
> really useful to have a layer skeleton, which also included skeleton
> recipes, images, etc. All commented, complete with documentation links
> to aid people through the process. Seeing it all together in final form
> would go a long way to helping people get it right the first (or maybe
> the second) time. I've discussed this with Saul as well, maybe something
> we need to get on the schedule?
I was just proposing something similar. Of course all of our metadata
should meet the same high standards but it would make sense to have
somewhere to point at as the canonical example.
Scheduling time to work providing example definitely gets my backing.
Cheers,
Joshua
--
Joshua Lock
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Please ensure you are using layout variables in recipes
2011-01-25 16:00 ` Joshua Lock
@ 2011-01-25 17:19 ` Saul Wold
0 siblings, 0 replies; 6+ messages in thread
From: Saul Wold @ 2011-01-25 17:19 UTC (permalink / raw)
To: poky
On 01/25/2011 08:00 AM, Joshua Lock wrote:
> On Tue, 2011-01-25 at 07:50 -0800, Darren Hart wrote:
>> On 01/25/2011 04:35 AM, Joshua Lock wrote:
>>> Hi all,
>>>
>>> When creating/editing recipes can we please ensure consistent use of
>>> layout variables, rather than absolute paths.
>>
>> Hi Josh,
>>
>> When I was putting together the mediatomb scripts I remember running
>> into this. We typically have to write custom init scripts, for example,
>> in order to deal with this as well as some other subtleties and
>> assumptions made by the package init author. In these cases, it would be
>> really useful to have a layer skeleton, which also included skeleton
>> recipes, images, etc. All commented, complete with documentation links
>> to aid people through the process. Seeing it all together in final form
>> would go a long way to helping people get it right the first (or maybe
>> the second) time. I've discussed this with Saul as well, maybe something
>> we need to get on the schedule?
>
> I was just proposing something similar. Of course all of our metadata
> should meet the same high standards but it would make sense to have
> somewhere to point at as the canonical example.
>
> Scheduling time to work providing example definitely gets my backing.
>
This is still on my radar, and was partly what I was thinking about this
for my talk. I have been thinking about a Yocto Metadata Philosophy,
that shares our update vision (based on some of the recent input) along
with layer/recipe implementation and examples. We can add to this init
scripts and other examples of commonly modified files.
Sau!
> Cheers,
> Joshua
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Please ensure you are using layout variables in recipes
2011-01-25 12:35 Please ensure you are using layout variables in recipes Joshua Lock
2011-01-25 15:50 ` Darren Hart
@ 2011-01-25 17:52 ` Koen Kooi
2011-01-25 17:59 ` Joshua Lock
1 sibling, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2011-01-25 17:52 UTC (permalink / raw)
To: Joshua Lock; +Cc: poky
Op 25 jan 2011, om 13:35 heeft Joshua Lock het volgende geschreven:
> Hi all,
>
> When creating/editing recipes can we please ensure consistent use of
> layout variables, rather than absolute paths.
>
> For example use:
>
> ${bindir}/foo
> ${datadir}/bar
> and
> ${base_sbindir}/baz
>
> rather than:
>
> /usr/bin/foo
> /usr/share/bar
> and
> /sbin/baz
>
> The layout variables are defined in bitbake.conf and we should have
> pretty much everything we need there, if you feel some are missing
> please submit a patch (we've recently added some for cross and nativesdk
> use, for example).
Some care needs to be taking with that, though, since things like initscripts, config files and udev rules might have the hardcoded paths inside. In OE the 'micro' distro sets $prefix to "" instead of "/usr", which uncovered a world of hurt. Adding a sed s:usr/bin:${bindir}:g -i initscript to do_install is an easy enough way to fix it :)
regards,
Koen
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Please ensure you are using layout variables in recipes
2011-01-25 17:52 ` Koen Kooi
@ 2011-01-25 17:59 ` Joshua Lock
0 siblings, 0 replies; 6+ messages in thread
From: Joshua Lock @ 2011-01-25 17:59 UTC (permalink / raw)
To: poky
On Tue, 2011-01-25 at 18:52 +0100, Koen Kooi wrote:
> Op 25 jan 2011, om 13:35 heeft Joshua Lock het volgende geschreven:
>
> > Hi all,
> >
> > When creating/editing recipes can we please ensure consistent use of
> > layout variables, rather than absolute paths.
> >
> > For example use:
> >
> > ${bindir}/foo
> > ${datadir}/bar
> > and
> > ${base_sbindir}/baz
> >
> > rather than:
> >
> > /usr/bin/foo
> > /usr/share/bar
> > and
> > /sbin/baz
> >
> > The layout variables are defined in bitbake.conf and we should have
> > pretty much everything we need there, if you feel some are missing
> > please submit a patch (we've recently added some for cross and nativesdk
> > use, for example).
>
> Some care needs to be taking with that, though, since things like
> initscripts, config files and udev rules might have the hardcoded paths
> inside. In OE the 'micro' distro sets $prefix to "" instead of "/usr",
> which uncovered a world of hurt. Adding a sed s:usr/bin:${bindir}:g -i
> initscript to do_install is an easy enough way to fix it :)
>
Indeed, we have a few instances of that (particularly in meta-demo) -
good shout on something to keep an eye out for.
Thanks,
Joshua
--
Joshua Lock
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-01-25 17:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 12:35 Please ensure you are using layout variables in recipes Joshua Lock
2011-01-25 15:50 ` Darren Hart
2011-01-25 16:00 ` Joshua Lock
2011-01-25 17:19 ` Saul Wold
2011-01-25 17:52 ` Koen Kooi
2011-01-25 17:59 ` Joshua Lock
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.