Skip to contentSkip to conversation

openjdk-8/openjre-8: fix host-user-contaminated QA issue

PATCH New [email protected] 1 participant 2 messages Dec 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 openjdk-8/openjre-8: fix host-user-contaminated QA issue

From: Jackie Huang <[email protected]>

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

---
 recipes-core/openjdk/openjdk-8_72b05.bb | 1 +
 recipes-core/openjdk/openjre-8_72b05.bb | 1 +
 2 files changed, 2 insertions(+)
recipes-core/openjdk/openjdk-8_72b05.bb +1 -0
index 96473f5..d962b1f 100644
@@ -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
 }
recipes-core/openjdk/openjre-8_72b05.bb +1 -0
index 1543652..f99d25b 100644
@@ -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
 }
Signature · 1 line
2.3.5
#1 lore raw

PATCH v2 2/2 openjdk-8/openjre-8: skip the dev-so test

From: Jackie Huang <[email protected]>

Fixed:
ERROR: QA Issue: non -dev/-dbg/nativesdk- package contains symlink .so:
openjdk-8 path 'work/core2-64-poky-linux/openjdk-8/72b05-r0/packages-split/openjdk-8/usr/lib/jvm/openjdk-8/jre/lib/amd64/server/libjsig.so' [dev-so]

The symlink .so is valid so we just skip the test
just like what we does in openjdk-7.

---
 recipes-core/openjdk/openjdk-8-cross.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-core/openjdk/openjdk-8-cross.inc +3 -0
index 457a010..63572ad 100644
@@ -69,3 +69,6 @@ EXTRA_OEMAKE_append = '\
     QUIETLY= \
     images \
 '
+
+# There is a symlink to a .so but this one is valid.
+INSANE_SKIP_${PN} = "dev-so"
Signature · 1 line
2.3.5