The easiest solution to avoid having the target packages install go
code in /usr/local/go/src would be to change:
FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
to:
FILES_${PN}-dev += "${prefix}/local/go/src"
in all recipes in recipes-devtools and recipes-containers.
And if anyone wonders why we have a QA step that fails the package
task if anything is installed to /usr/local, it is because we use
/usr/local to mount a writable flash partition there (maybe not
the best decision, but it stems back to long before we started using
bitbake). Thus it would hide anything installed in /usr/local in the
rootfs.
//Peter
> -----Original Message-----
> From: Joakim Roubert <[email protected]>
> Sent: den 23 mars 2020 09:51
> To: Bruce Ashfield <[email protected]>; Peter Kjellerstedt
> <[email protected]>
> Cc: [email protected]
> Subject: Re: [meta-virtualization][PATCH] go: Enable different target dir
> by using variable
>
> On 2020-03-21 18:10, Bruce Ashfield wrote:
> >
> > Joakim: is this what is happening to you ? They are in the DEPENDS,
> > and hence get the PN RDEPENDS, then are installed to target, and that
> > is causing you issues ?
>
> I am working in a build environment set up by Peter & c:o, where there
> is a hook run at the end that will fail if a package installs things to
> /usr/local. For me that is an issue when I build docker-ce, since
> docker-ce will trigger these go packages and I need them not to put
> anything in /usr/local for the build to pass that check. From my view,
> it does not really matter how things are solved, as long as I can build
> docker-ce. Which I cannot with the current meta-virtualization in our
> build environment.
>
> BR,
>
> /Joakim
> --
> Joakim Roubert
> Senior Engineer
>
> Axis Communications AB
> Emdalavägen 14, SE-223 69 Lund, Sweden
> Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48
> Fax: +46 46 13 61 30, www.axis.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5229):
https://lists.yoctoproject.org/g/meta-virtualization/message/5229
Mute This Topic: https://lists.yoctoproject.org/mt/72095928/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-