meta-virtualization/recipes-containers
Chen Qi 8f15c45f7d skopeo: avoid overriding GOBUILDFLAGS set in go.bbclass
When MACHINE is riscv64, skopeo fails to build with the following
error message:

  ERROR: QA Issue: skopeo: ELF binary /usr/sbin/skopeo has relocations in .text [textrel]

To reproduce the issue, run the following command:
MACHINE=qemuriscv64 bitbake skopeo

In go.bbclass, we have:
"""
export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath"
...
python() {
    if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
        d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel")
    else:
        d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')
}
"""

The '-v -trimpath' and arch depedent '-buildmode=pie' is generally reasonable.
And we can see we'll need to use anonymous python function to handle PIE. So we
should avoid overriding it unless necessary.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2025-08-18 19:01:16 -04:00
..
aardvark-dns aardvark-dns: update to v1.15.0 2025-06-26 10:21:40 -04:00
buildah buildah: update to v1.40.1 2025-06-26 12:05:20 -04:00
catatonit catatonit: update to v0.2.1 2025-06-26 12:10:09 -04:00
cgroup-lite cgroup-lite: convert remaining WORKDIR references to UNPACKDIR 2024-05-29 13:16:56 +00:00
conmon conmon: update to v2.1.13 2025-06-26 12:16:59 -04:00
container-host-config metadata: add whitespace around assignments 2025-04-03 17:56:53 +00:00
containerd containerd: drop CVE_VERSION 2025-07-31 13:42:38 -04:00
cri-o cri-o: update to v1.33.0 2025-07-07 11:42:27 -04:00
cri-tools cri-tools: update to v1.33.0 2025-07-07 11:42:27 -04:00
criu containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
crun crun: update to 1.21 2025-07-07 11:42:27 -04:00
docker Docker: add more required kernel modules as RRECOMMENDS:${PN} 2025-07-31 13:44:59 -04:00
docker-compose docker-compose: limit the amount of data copied 2025-04-18 13:56:50 +00:00
docker-distribution docker-distribution: fix build for 386 2025-07-07 11:42:27 -04:00
go-digest containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
go-errors containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
go-spf13-cobra containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
go-spf13-pflag containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
k3s metadata: relocation.inc: add whitespace around assignments 2025-04-03 17:56:53 +00:00
kubernetes k8s: update to v1.33.2 2025-07-07 11:42:27 -04:00
lxc lxc: update to v6.0.4 2025-07-07 11:42:27 -04:00
lxcfs lxcfs: add systemd to REQUIRED_DISTRO_FEATURES 2023-09-07 21:00:53 +00:00
nerdctl containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
netavark netavark: update to v1.15.2 2025-07-07 11:42:27 -04:00
oci-image-spec containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
oci-image-tools containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
oci-runtime-spec containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
oci-runtime-tools containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
oci-systemd-hook containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
podman podman: update to v5.5.2 2025-07-07 11:42:27 -04:00
podman-compose podman-compose: update to v1.4.0 2025-07-07 11:42:27 -04:00
podman-tui podman-tui: update to v1.6.1 2025-07-07 11:42:27 -04:00
riddler containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
runc runc: update to v1.3.0-rc.1 2025-07-07 11:42:27 -04:00
singularity containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
skopeo skopeo: avoid overriding GOBUILDFLAGS set in go.bbclass 2025-08-18 19:01:16 -04:00
sloci-image containers: adapt to UNPACKDIR changes 2025-06-25 22:40:08 -04:00
tini tini: update to v0.19.0 2025-07-20 22:36:08 -04:00
umoci umoci: update to v0.5.0 2025-07-07 11:42:27 -04:00