[oe] [meta-java][PATCH 1/2] openjdk: fix host-user-contaminated QA issue
jackie.huang at windriver.com
jackie.huang at windriver.com
Fri Dec 18 07:31:55 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 +
1 file changed, 1 insertion(+)
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
}
--
2.3.5
More information about the Openembedded-devel
mailing list