From: Changqing Li <changqing...@windriver.com> fix below warning: do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-runtime-tool' has relocations in .text [textrel]
Add GOBUILDFLAGS which have -buildmode=pie to fix the problem Signed-off-by: Changqing Li <changqing...@windriver.com> --- .../files/0001-fix-do_package_qa-error.patch | 32 ++++++++++++++++++++++ .../oci-runtime-tools/oci-runtime-tools_git.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch diff --git a/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch b/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch new file mode 100644 index 0000000..3c5d820 --- /dev/null +++ b/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch @@ -0,0 +1,32 @@ +From 7de9fd7db7a001b66d92d5e80806e50bb5252392 Mon Sep 17 00:00:00 2001 +From: Changqing Li <changqing...@windriver.com> +Date: Thu, 27 Sep 2018 12:50:32 +0800 +Subject: [PATCH] fix do_package_qa error + +fix below error: +do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-runtime-tool' +has relocations in .text [textrel] + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <changqing...@windriver.com> +--- + src/import/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/import/Makefile b/src/import/Makefile +index 77626d2..b97f6ec 100644 +--- a/src/import/Makefile ++++ b/src/import/Makefile +@@ -8,7 +8,7 @@ COMMIT=$(shell git rev-parse HEAD 2> /dev/null || true) + all: tool runtimetest + + tool: +- go build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" -o oci-runtime-tool ./cmd/oci-runtime-tool ++ go build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" ${GOBUILDFLAGS} -o oci-runtime-tool ./cmd/oci-runtime-tool + + .PHONY: runtimetest + runtimetest: +-- +2.7.4 + diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb index 61b68b5..218f68c 100644 --- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f66 SRC_URI = "git://github.com/opencontainers/runtime-tools.git \ file://0001-Revert-implement-add-set-function-for-hooks-items.patch \ + file://0001-fix-do_package_qa-error.patch \ " SRCREV = "6e7da8148f4de2c9e9c9d3b345576898d4f412cb" -- 2.7.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto