[oe] [meta-java][1/2 v2] openjdk-8/openjre-8: fix host-user-contaminated QA issue

jackie.huang at windriver.com jackie.huang at windriver.com
Tue Dec 22 07:49:38 UTC 2015


From: Jackie Huang <jackie.huang at windriver.com>

Fixed:
WARNING: QA Issue: openjdk-8:
/openjdk-8-doc/usr/lib/jvm/openjdk-8/jre/THIRD_PARTY_README is owned by
uid 1786, which is the same as the user running bitbake. This may be due
to host contamination [host-user-contaminated]

The use of cp results in files in the recipe being owned by the user
running bitbake, so fix the owner to root:root

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 recipes-core/openjdk/openjdk-8_72b05.bb | 1 +
 recipes-core/openjdk/openjre-8_72b05.bb | 1 +
 2 files changed, 2 insertions(+)

diff --git a/recipes-core/openjdk/openjdk-8_72b05.bb b/recipes-core/openjdk/openjdk-8_72b05.bb
index 96473f5..d962b1f 100644
--- a/recipes-core/openjdk/openjdk-8_72b05.bb
+++ b/recipes-core/openjdk/openjdk-8_72b05.bb
@@ -20,6 +20,7 @@ do_install() {
     rm -rf ${D}${JDK_HOME}
         mkdir -p ${D}${JDK_HOME}
     cp -rp ${B}/images/j2sdk-image/* ${D}${JDK_HOME}
+    chown -R root:root ${D}${JDK_HOME}
     install -m644 ${WORKDIR}/jvm.cfg  ${D}${JDK_HOME}/jre/lib/${JDK_ARCH}/
     find ${D}${JDK_HOME} -name "*.debuginfo" -print0 | xargs -0 rm
 }
diff --git a/recipes-core/openjdk/openjre-8_72b05.bb b/recipes-core/openjdk/openjre-8_72b05.bb
index 1543652..f99d25b 100644
--- a/recipes-core/openjdk/openjre-8_72b05.bb
+++ b/recipes-core/openjdk/openjre-8_72b05.bb
@@ -20,6 +20,7 @@ do_install() {
     rm -rf ${D}${JRE_HOME}
         mkdir -p ${D}${JRE_HOME}
     cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME}
+    chown -R root:root ${D}${JRE_HOME}
     install -m644 ${WORKDIR}/jvm.cfg  ${D}${JRE_HOME}/lib/${JDK_ARCH}/
     find ${D}${JRE_HOME} -name "*.debuginfo" -print0 | xargs -0 rm
 }
-- 
2.3.5




More information about the Openembedded-devel mailing list