digitallumens / meta-golang

OpenEmbedded/Yocto layer with recipes for go-lang
MIT License
16 stars 11 forks source link

QA warning: host-user-contaminated #6

Open gautambt opened 8 years ago

gautambt commented 8 years ago

When I compile any go package I am getting the following warning:

WARNING: QA Issue: : is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

celledge commented 8 years ago

In my experience this is usually a build system issue. This recipe and class setup doesn't touch any user ownership. I have no QA issues appear if I delete the build working directory for the package and run it.

I've also had this issue recently in Yocto 2.1 for any package that I rebuild after the first time, not just go packages. I thought it might be due to the Docker build system that I am using, but it could be more widespread. See if any normal Yocto package that you rebuild causes the same error. It does for me and has been an annoyance that I'm still attempting to resolve.

celledge commented 8 years ago

I've made a slight modification to the do_install command that forces the installed executables to be owned by root. Perhaps this will fix things for you. Commit: 75ffa95fd1f71601f101aaa90e826119308ab123