On Fri, Sep 16, 2016 at 6:33 AM, Burton, Ross <ross.bur...@intel.com> wrote:
>
> On 16 September 2016 at 13:40, Chris Trobridge <christrobri...@hotmail.com>
> wrote:
>>
>> The install line in the makefile is "cp -af $(APP_LIBXX_FILES)
>> $(DESTDIR)$(libdir)/", so I am at a bit of a loss as this should preserve
>> ownership.
>
>
> It does - the build happens as you (uid 1000) so the file gets installed as
> 1000.  This is why makefiles should generally use "install" instead, as that
> will reset owner.  automake has built in support for this, otherwise just
> patch out "cp" and use "install" instead.

If using install doesn't work for some reason then replacing "cp -af"
with "cp -af --no-preserve=ownership" would be an alternative.

> Oh and:
>
> inherit autotools pkgconfig
> B = "${S}"
>
> Just inherit autotools-brokensep instead.
>
> Ross
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to