All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][meta-cloud-services] consul: add INSANE_SKIP for textrel
@ 2018-10-10  6:59 changqing.li
  2018-10-10  6:59 ` [PATCH] docker-distribution: fix do package qa warning[ldflags] changqing.li
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: changqing.li @ 2018-10-10  6:59 UTC (permalink / raw)
  To: meta-virtualization

From: Changqing Li <changqing.li@windriver.com>

1. for i586, bitbake consul will have QA error of textrel.
   consul-git-r0 do_package_qa: QA Issue: ELF binary i
   'work/i586-wrs-linux/consul/git-r0/packages-split/consul/usr/bin/consul'
   has relocations in .text [textrel]

   according to go doc:
   -buildmode=pie
   Build the listed main packages and everything they import into
   position independent executables (PIE). Packages not named
   main are ignored.

   checked use command "eu-findtextrel ./consul", functions not
   compiled with -fpic/-fPIC are from packages not named main, and
   also not imported into package main.

   so -buildmode=pie cannot reslove this problem. so refer commit
   b689c72a of oe-core, just skip it.

2. This problem is caused since security_flags.inc is used by default.
   so alternative work around is:
      SECURITY_CFLAGS_pn-consul = "${SECURITY_NOPIE_CFLAGS}"
      SECURITY_LDFLAGS_pn-consul = ""

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 recipes-connectivity/consul/consul_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-connectivity/consul/consul_git.bb b/recipes-connectivity/consul/consul_git.bb
index a44e0b2..ee49c5e 100644
--- a/recipes-connectivity/consul/consul_git.bb
+++ b/recipes-connectivity/consul/consul_git.bb
@@ -23,3 +23,6 @@ do_install_append() {
 }
 
 FILES_${PN} += "${systemd_unitdir}/system"
+
+#for i586, executable consul contains textrel
+INSANE_SKIP_${PN} += "textrel"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] docker-distribution: fix do package qa warning[ldflags]
@ 2018-09-30  3:17 changqing.li
  2018-09-30  3:17 ` [PATCH] oci-runtime-tools: fix do package qa warning changqing.li
  0 siblings, 1 reply; 13+ messages in thread
From: changqing.li @ 2018-09-30  3:17 UTC (permalink / raw)
  To: meta-virtualization

From: Changqing Li <changqing.li@windriver.com>

fix below warning:
do_package_qa: QA Issue: No GNU_HASH in the elf binary:
xxx/usr/sbin/registry' [ldflags]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 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 7c7bce2..23d94c9 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -58,7 +58,7 @@ do_install() {
 }
 
 INSANE_SKIP_${PN} += "ldflags already-stripped"
-INSANE_SKIP_docker-registry += "ldflags already-stripped"
+INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped"
 
 FILES_docker-registry = "${sbindir}/*"
 FILES_docker-registry += "${systemd_unitdir}/system/docker-registry.service"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-10-11 18:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10  6:59 [PATCH][meta-cloud-services] consul: add INSANE_SKIP for textrel changqing.li
2018-10-10  6:59 ` [PATCH] docker-distribution: fix do package qa warning[ldflags] changqing.li
2018-10-11 18:37   ` Bruce Ashfield
2018-10-10  6:59 ` [PATCH] docker-distribution: fix do package qa warning [textrel] changqing.li
2018-10-11 18:37   ` Bruce Ashfield
2018-10-10  6:59 ` [PATCH] docker: fix do package qa warning changqing.li
2018-10-11 18:38   ` Bruce Ashfield
2018-10-10  6:59 ` [PATCH] oci-image-tools: " changqing.li
2018-10-11 18:38   ` Bruce Ashfield
2018-10-10  6:59 ` [PATCH] oci-runtime-tools: " changqing.li
2018-10-11 18:35   ` Bruce Ashfield
2018-10-11 18:34 ` [PATCH][meta-cloud-services] consul: add INSANE_SKIP for textrel Bruce Ashfield
  -- strict thread matches above, loose matches on Subject: below --
2018-09-30  3:17 [PATCH] docker-distribution: fix do package qa warning[ldflags] changqing.li
2018-09-30  3:17 ` [PATCH] oci-runtime-tools: fix do package qa warning changqing.li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.