From a215d8320edee0a317a6511e7e2efa5bba867486 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 9 Nov 2023 06:22:33 +0000 Subject: buildah: drop statically linked x86 entrypoint commit e89fac6c9bf8d0b [Add `buildah mkcw`, add `--cw` to `buildah commit` and `buildah build`] added a statically linked x86 entrypoint binary This entrypoint is not currently used in the tested / supported worflows. To avoid packaging QA warnings on non-x86 architectures, we remove the binary during the compilation phase. If it does need to be rebuilt in the future, buildah's Makefiles will have to be changed to not test the host for architecture support, and use the OE defined target arch and cross compilers instead. Signed-off-by: Bruce Ashfield --- recipes-containers/buildah/buildah_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-containers/buildah/buildah_git.bb b/recipes-containers/buildah/buildah_git.bb index e29e72ff..0819bfe9 100644 --- a/recipes-containers/buildah/buildah_git.bb +++ b/recipes-containers/buildah/buildah_git.bb @@ -45,11 +45,15 @@ do_compile:prepend() { go_do_compile() { export TMPDIR="${GOTMPDIR}" + export AS='${CC} -c' if [ -n "${GO_INSTALL}" ]; then ${GO} install ${GOBUILDFLAGS} ./cmd/buildah ${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go ${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go fi + + # x86 statically linked executable that we don't need + rm -f ${S}/src/github.com/containers/buildah/internal/mkcw/embed/entrypoint } do_install:append() { -- cgit v1.2.3-54-g00ecf