Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Martin Jansa
On Fri, Oct 02, 2015 at 03:58:04PM +, Fred Ollinger wrote:
> I'm trying to change my /etc/systemd/journald.conf file.
> 
> 
> I have created a file in:
> 
> 
> our_system/recipe-core/systemd_%.bbappend
> 
> 
> With the contents:
> 
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

This works only for files listed in SRC_URI, that's not the case for
journald.conf which is included directly in systemd sources.

> 
> I created a directory in the same path called "systemd" and placed our new 
> version of journald.conf in it.
> 
> Then I did:
> 
> bitbake -c cleanall systemd && bitbake systemd
> bitbake -c cleanall our_image && bitbake our_image
> 
> Then I checked and the old journald.conf is still installed.
> 
> What am I doing wrong?
> 
> Frederick
> 
> -- 
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Christopher Larson
On Fri, Oct 2, 2015 at 11:22 AM, Daniel.  wrote:

> Where can I find this recipetool!? It seems a nice tool to have :)
>

It's in oe-core/scripts or poky/scripts in any recent release. It'll be in
the PATH after sourcing the setup scripts.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Christopher Larson
On Fri, Oct 2, 2015 at 11:11 AM, Daniel.  wrote:

> But this will only work if journald.conf are the same in all systemd
> versions (since you use a _%.bbappend). A better solution would be append
> install task with a copy from your custom journald.conf to install folder,
> something like:
>
> do_install_append() {
> cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf
> }


Which is precisely what recipetool appendfile will do for you :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Daniel.
Where can I find this recipetool!? It seems a nice tool to have :)

2015-10-02 15:21 GMT-03:00 Christopher Larson :

>
> On Fri, Oct 2, 2015 at 11:11 AM, Daniel.  wrote:
>
>> But this will only work if journald.conf are the same in all systemd
>> versions (since you use a _%.bbappend). A better solution would be append
>> install task with a copy from your custom journald.conf to install folder,
>> something like:
>>
>> do_install_append() {
>> cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf
>> }
>
>
> Which is precisely what recipetool appendfile will do for you :)
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Christopher Larson
On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger 
wrote:

> I'm trying to change my /etc/systemd/journald.conf file.
>

recipetool appendfile sounds like exactly what you want here.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Daniel.
But this will only work if journald.conf are the same in all systemd
versions (since you use a _%.bbappend). A better solution would be append
install task with a copy from your custom journald.conf to install folder,
something like:

do_install_append() {
cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf
}


Cheers,

2015-10-02 14:26 GMT-03:00 Daniel. :

> You can solve this by editing the original journal.conf, creating a
> patch with modifications and adding it to your .bbappend
>
> 2015-10-02 13:44 GMT-03:00 Christopher Larson :
> >
> > On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger  >
> > wrote:
> >>
> >> I'm trying to change my /etc/systemd/journald.conf file.
> >
> >
> > recipetool appendfile sounds like exactly what you want here.
> > --
> > Christopher Larson
> > clarson at kergoth dot com
> > Founder - BitBake, OpenEmbedded, OpenZaurus
> > Maintainer - Tslib
> > Senior Software Engineer, Mentor Graphics
> >
> > --
> > ___
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
>
>
> --
> "Do or do not. There is no try"
>   Yoda Master
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] FILESEXTRAPATHS_prepend fails for systemd

2015-10-02 Thread Daniel.
Daisy doesn't have it :(

Thank you for this information :)

Cheers,

2015-10-02 15:24 GMT-03:00 Christopher Larson :

>
> On Fri, Oct 2, 2015 at 11:22 AM, Daniel.  wrote:
>
>> Where can I find this recipetool!? It seems a nice tool to have :)
>>
>
> It's in oe-core/scripts or poky/scripts in any recent release. It'll be in
> the PATH after sourcing the setup scripts.
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto