[yocto] QA Host Contamination in autotools/pkconfig based recipe

Andre McCurdy armccurdy at gmail.com
Fri Sep 16 16:59:58 PDT 2016


On Fri, Sep 16, 2016 at 6:33 AM, Burton, Ross <ross.burton at intel.com> wrote:
>
> On 16 September 2016 at 13:40, Chris Trobridge <christrobridge at 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list