From b6de0913f9420680604e12a119d5d01ba6d51695 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Thu, 17 Dec 2015 23:14:44 -0800 Subject: openjdk-8/openjre-8: fix host-user-contaminated QA issue 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 Signed-off-by: Maxin B. John --- recipes-core/openjdk/openjdk-8_72b05.bb | 1 + recipes-core/openjdk/openjre-8_72b05.bb | 1 + 2 files changed, 2 insertions(+) (limited to 'recipes-core/openjdk') 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 } -- cgit v1.2.3-54-g00ecf