Re: [OE-core] How to create a directory in multiple packages?

2020-12-15 Thread Mark Hatle
On 12/15/20 8:24 AM, Peter Kjellerstedt wrote: >> -Original Message- >> From: openembedded-core@lists.openembedded.org > c...@lists.openembedded.org> On Behalf Of Mark Hatle >> Sent: den 15 december 2020 02:02 >> To: openembedded-core@lists.openembedded.org >> Subject: Re: [OE-core] How to

Re: [OE-core] How to create a directory in multiple packages?

2020-12-15 Thread Peter Kjellerstedt
> -Original Message- > From: openembedded-core@lists.openembedded.org c...@lists.openembedded.org> On Behalf Of Mark Hatle > Sent: den 15 december 2020 02:02 > To: openembedded-core@lists.openembedded.org > Subject: Re: [OE-core] How to create a directory in multiple packages? > > On

Re: [OE-core] How to create a directory in multiple packages?

2020-12-14 Thread Mark Hatle
On 12/14/20 11:43 AM, Peter Kjellerstedt wrote: > Say we have a recipe that creates an empty /etc/foo directory. Now we > want to add a new file in that directory /etc/foo/bar and package it as > ${PN}-bar. This means the creation of the /etc/foo directory is moved > from the ${PN} package to

Re: [OE-core] How to create a directory in multiple packages?

2020-12-14 Thread Konrad Weihmann
Clearly an empty dir seems to be sub-optimal design, but if one would need it, I'd recommend to add a pkg_postinst_${PN} script and dynamically determine at installation time if this path needs to be created or not. So the dir either will be create by ${PN}-bin or by the script - I think I've

Re: [OE-core] How to create a directory in multiple packages?

2020-12-14 Thread Robert P. J. Day
On Mon, 14 Dec 2020, Peter Kjellerstedt wrote: > Say we have a recipe that creates an empty /etc/foo directory. Now we > want to add a new file in that directory /etc/foo/bar and package it as > ${PN}-bar. This means the creation of the /etc/foo directory is moved > from the ${PN} package to the

[OE-core] How to create a directory in multiple packages?

2020-12-14 Thread Peter Kjellerstedt
Say we have a recipe that creates an empty /etc/foo directory. Now we want to add a new file in that directory /etc/foo/bar and package it as ${PN}-bar. This means the creation of the /etc/foo directory is moved from the ${PN} package to the ${PN}-bar package. Is there any way to make ${PN}