Skip to contentSkip to conversation

host-user-contaminated fixes for meta-oe

PATCH Superseded Yi Zhao 2 participants 7 messages Jan 14, 2016 – Jan 15, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

cover host-user-contaminated fixes for meta-oe

The following changes since commit 73af5c278f6617149a46b2d2a1549bc154fa79e5:

mime-construct: Perform more mangling for perl path (2016-01-06 13:27:21 +0100)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib yzhao/4-fixes
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=yzhao/4-fixes

Yi Zhao (4):
debootstrap: fix host-user-contaminated
espeak: fix host-user-contaminated
orrery: fix host-user-contaminated
logwatch: fix host-user-contaminated

 .../debootstrap/debootstrap_1.0.67.bb              |    1 +
 .../recipes-extended/logwatch/logwatch_7.4.1.bb    |    1 +
 meta-oe/recipes-navigation/orrery/orrery_2.7.bb    |    1 +
 meta-oe/recipes-support/espeak/espeak_1.37.bb      |    1 +
 4 files changed, 4 insertions(+)
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/4 debootstrap: fix host-user-contaminated

Fix QA warning:
WARNING: QA Issue: debootstrap: /debootstrap/usr/share/debootstrap/scripts/gutsy is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

---
 .../debootstrap/debootstrap_1.0.67.bb              |    1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.67.bb +1 -0
index 73dea9b..62b2796 100644
@@ -31,4 +31,5 @@ do_compile_prepend() {
 
 do_install() {
     oe_runmake 'DESTDIR=${D}' install
+    chown -R root:root ${D}${datadir}/debootstrap
 }
Signature · 1 line
1.7.9.5
author
#2 lore raw

PATCH 2/4 espeak: fix host-user-contaminated

In reply to Yi Zhao

Fix QA warning:
WARNING: QA Issue: espeak: /espeak/usr/share/espeak-data/mbrola_ph/de6_phtrans is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

---
 meta-oe/recipes-support/espeak/espeak_1.37.bb |    1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/espeak/espeak_1.37.bb +1 -0
index 86f2c7a..cf05d26 100644
@@ -40,4 +40,5 @@ do_install() {
     fi
 
     cp -prf ${S}/espeak-data/* ${D}${datadir}/espeak-data
+    chown -R root:root ${D}${datadir}/espeak-data
 }
Signature · 1 line
1.7.9.5
author
#3 lore raw

PATCH 3/4 orrery: fix host-user-contaminated

In reply to Yi Zhao

Fix QA warning:
WARNING: QA Issue: orrery: /orrery/usr/share/orrery/deepSky/messier is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

---
 meta-oe/recipes-navigation/orrery/orrery_2.7.bb |    1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-navigation/orrery/orrery_2.7.bb +1 -0
index b3372b1..617afbc 100644
@@ -24,6 +24,7 @@ do_configure_prepend() {
 do_install_append() {
     install -d ${D}${datadir}/orrery
     cp -a ${S}/data/* ${D}${datadir}/orrery
+    chown -R root:root ${D}${datadir}/orrery
     install -d ${D}${datadir}/icons
     install -m 0755 ${WORKDIR}/orrery.png ${D}${datadir}/icons
 }
Signature · 1 line
1.7.9.5
author
#4 lore raw

PATCH 4/4 logwatch: fix host-user-contaminated

In reply to Yi Zhao

Fix QA warning:
WARNING: QA Issue: logwatch: /logwatch/usr/share/logwatch/scripts/services/resolver is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

---
 .../recipes-extended/logwatch/logwatch_7.4.1.bb    |    1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb +1 -0
index 001b3de..b121522 100644
@@ -23,6 +23,7 @@ do_install() {
     mv conf/ ${D}${datadir}/logwatch/default.conf
     mv scripts/ ${D}${datadir}/logwatch/scripts
     mv lib ${D}${datadir}/logwatch/lib
+    chown -R root:root ${D}${datadir}/logwatch
 
     install -m 0755 -d ${D}${mandir}/man1
     install -m 0755 -d ${D}${mandir}/man5
Signature · 1 line
1.7.9.5
#5 lore raw
In reply to Yi Zhao

Instead of patching things up with chown, you could also instruct the "cp" command to not attempt to preserve ownership (the -a and -p options will do that).

Instead of "cp -r -p ..." use "cp -r --preserve=mode,links ..."

Instead of "cp -a ..." use "cp -R --no-dereference --preserve=mode,links ..."

This fixes these QA warnings in a more structured way.

Quoted 16 lines · Yi Zhao

The following changes since commit 73af5c278f6617149a46b2d2a1549bc154fa79e5:

mime-construct: Perform more mangling for perl path (2016-01-06 13:27:21 +0100)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib yzhao/4-fixes
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=yzhao/4-fixes

Yi Zhao (4):
debootstrap: fix host-user-contaminated
espeak: fix host-user-contaminated
orrery: fix host-user-contaminated
logwatch: fix host-user-contaminated

Quoted 6 lines
  .../debootstrap/debootstrap_1.0.67.bb              |    1 +
  .../recipes-extended/logwatch/logwatch_7.4.1.bb    |    1 +
  meta-oe/recipes-navigation/orrery/orrery_2.7.bb    |    1 +
  meta-oe/recipes-support/espeak/espeak_1.37.bb      |    1 +
  4 files changed, 4 insertions(+)

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

author
#6 lore raw
Quoted 9 lines · Mike Looijmans

Instead of patching things up with chown, you could also instruct the "cp" command to not attempt to preserve ownership (the -a and -p options will do that).

Instead of "cp -r -p ..." use "cp -r --preserve=mode,links ..."

Instead of "cp -a ..." use "cp -R --no-dereference --preserve=mode,links ..."

This fixes these QA warnings in a more structured way.

Thanks, Mike

I will send V2 patch.

Yi

Quoted 46 lines · Yi Zhao
Quoted 17 lines

The following changes since commit 73af5c278f6617149a46b2d2a1549bc154fa79e5:

mime-construct: Perform more mangling for perl path (2016-01-06
13:27:21 +0100)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib yzhao/4-fixes
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=yzhao/4-fixes

Yi Zhao (4):
debootstrap: fix host-user-contaminated
espeak: fix host-user-contaminated
orrery: fix host-user-contaminated
logwatch: fix host-user-contaminated

Quoted 6 lines
  .../debootstrap/debootstrap_1.0.67.bb              |    1 +
  .../recipes-extended/logwatch/logwatch_7.4.1.bb    |    1 +
  meta-oe/recipes-navigation/orrery/orrery_2.7.bb    |    1 +
  meta-oe/recipes-support/espeak/espeak_1.37.bb      |    1 +
  4 files changed, 4 insertions(+)

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail