From 0442f2e7b85b66d791e04a06de394225f0e146b5 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Wed, 10 Oct 2018 14:59:11 +0800 Subject: docker-distribution: fix do package qa warning [textrel] 1. After security flag PIE is enabled by default, we might met below QA warning on some arch, like aarch64, fix it by skip textrel QA check refer commit b689c72a of oe-core docker-distribution-v2.6.2-r0 do_package_qa: QA Issue: ELF binary 'work/aarch64-poky-linux/docker-distribution/v2.6.2-r0/packages-split/ docker-registry/usr/sbin/registry' has relocations in .text [textrel] 2. This problem is caused since security_flags.inc is used by default. so alternative work around is: SECURITY_CFLAGS_pn-docker-distribution = "${SECURITY_NOPIE_CFLAGS}" SECURITY_LDFLAGS_pn-docker-distribution = "" Signed-off-by: Changqing Li Signed-off-by: Bruce Ashfield --- recipes-containers/docker-distribution/docker-distribution_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb index d4f80984..2892556a 100644 --- a/recipes-containers/docker-distribution/docker-distribution_git.bb +++ b/recipes-containers/docker-distribution/docker-distribution_git.bb @@ -57,7 +57,7 @@ do_install() { } INSANE_SKIP_${PN} += "ldflags already-stripped" -INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped" +INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped textrel" FILES_docker-registry = "${sbindir}/*" FILES_docker-registry += "${systemd_unitdir}/system/docker-registry.service" -- cgit v1.2.3-54-g00ecf