All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH] libnl: Fix possible host contamination error
Date: Wed, 14 Sep 2016 13:55:28 +0200	[thread overview]
Message-ID: <57D93AB0.2010305@topic.nl> (raw)
In-Reply-To: <17c49fd3-d0d9-d00f-69d9-07656bee9c00@gmail.com>

Usually this is the result from using a "cp" (typically "cp -r") command in 
the install script instead of "install". Use "install" if possible, patch the 
makefile if you have to. If the install script uses "cp -r", add a few extra 
--preserve options to the command to prevent it overriding ownership.

On 14-09-16 12:45, Mats Karrman wrote:
>  From 975b7e64462a465449d367ff6a4e5240a59221d9 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Mats=20K=C3=A4rrman?= <mats@southpole.se>
> Date: Wed, 14 Sep 2016 12:29:27 +0200
> Subject: [PATCH] libnl: Fix possible host contamination error
>
> ---
>   meta/recipes-support/libnl/libnl_3.2.28.bb | 4 ++++
>   1 file changed, 4 insertions(+)
>
>   Possibly a cannon to swat a fly but I get "WARNING: libnl-1_3.2.28-r0
> do_package_qa: QA Issue: libnl: /libnl-nf/usr/lib/libnl-nf-3.so.200.23.0 is
> owned by uid 1001, which is the same as the user running bitbake. This may be
> due to host contamination [host-user-contaminated]"
>   type errors on every file.
>
> diff --git a/meta/recipes-support/libnl/libnl_3.2.28.bb
> b/meta/recipes-support/libnl/libnl_3.2.28.bb
> index 26982f3..3fcfbc1 100644
> --- a/meta/recipes-support/libnl/libnl_3.2.28.bb
> +++ b/meta/recipes-support/libnl/libnl_3.2.28.bb
> @@ -23,6 +23,10 @@ SRC_URI[sha256sum] =
> "cd608992c656e8f6e3ab6c1391b162a5a51c49336b9219f7f390e61fc5
>
>   inherit autotools pkgconfig
>
> +do_install_append() {
> +    chown -R root:root ${D}
> +}
> +
>   FILES_${PN} = "${libdir}/libnl-3.so.* \
>                  ${libdir}/libnl.so.* \
>                  ${sysconfdir}"



Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacancy/topic-zoekt-technische-software-engineers/




  reply	other threads:[~2016-09-14 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 10:45 [PATCH] libnl: Fix possible host contamination error Mats Karrman
2016-09-14 11:55 ` Mike Looijmans [this message]
2016-09-14 14:38   ` Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57D93AB0.2010305@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.