All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libnl: Fix possible host contamination error
@ 2016-09-14 10:45 Mats Karrman
  2016-09-14 11:55 ` Mike Looijmans
  0 siblings, 1 reply; 3+ messages in thread
From: Mats Karrman @ 2016-09-14 10:45 UTC (permalink / raw)
  To: openembedded-devel

 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}"
-- 
2.1.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] libnl: Fix possible host contamination error
  2016-09-14 10:45 [PATCH] libnl: Fix possible host contamination error Mats Karrman
@ 2016-09-14 11:55 ` Mike Looijmans
  2016-09-14 14:38   ` Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Looijmans @ 2016-09-14 11:55 UTC (permalink / raw)
  To: openembedded-devel

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/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] libnl: Fix possible host contamination error
  2016-09-14 11:55 ` Mike Looijmans
@ 2016-09-14 14:38   ` Martin Jansa
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2016-09-14 14:38 UTC (permalink / raw)
  To: openembedded-devel

This also needs to go to openembedded-core not -devel.

On Wed, Sep 14, 2016 at 1:55 PM, Mike Looijmans <mike.looijmans@topic.nl>
wrote:

> 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/
>
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-14 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 10:45 [PATCH] libnl: Fix possible host contamination error Mats Karrman
2016-09-14 11:55 ` Mike Looijmans
2016-09-14 14:38   ` Martin Jansa

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.