diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-09-14 08:33:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 08:33:00 -0400 |
commit | e9d3dc658d50b74430b3b8a470bfa9ab338fd44f (patch) | |
tree | b9f1e4533f80bdf7a69916bb6187584229667905 /packaging/bundle-libbpf.sh | |
parent | d581a4f2768b5faddb22184cc40d9324eee4093e (diff) |
Skip trying to preserve file owners when bundling external code. (#15966)
This fixes an issue that shows up when building packages for some
distros (most notably CentOS 7) with a rootless container runtime (such
as using Podman for the build as a regular user).
Diffstat (limited to 'packaging/bundle-libbpf.sh')
-rwxr-xr-x | packaging/bundle-libbpf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/bundle-libbpf.sh b/packaging/bundle-libbpf.sh index 1c55427657..52f7cf45e4 100755 --- a/packaging/bundle-libbpf.sh +++ b/packaging/bundle-libbpf.sh @@ -20,7 +20,7 @@ LIBBPF_BUILD_PATH="${1}/externaldeps/libbpf/libbpf-$(cat "${1}/packaging/libbpf. mkdir -p "${1}/externaldeps/libbpf" || exit 1 curl -sSL --connect-timeout 10 --retry 3 "https://github.com/netdata/libbpf/archive/${LIBBPF_TARBALL}" > "${LIBBPF_TARBALL}" || exit 1 sha256sum -c "${1}/packaging/libbpf.checksums" || exit 1 -tar -xzf "${LIBBPF_TARBALL}" -C "${1}/externaldeps/libbpf" || exit 1 +tar -xz --no-same-owner -f "${LIBBPF_TARBALL}" -C "${1}/externaldeps/libbpf" || exit 1 make -C "${LIBBPF_BUILD_PATH}/src" BUILD_STATIC_ONLY=1 OBJDIR=build/ DESTDIR=../ install || exit 1 cp -r "${LIBBPF_BUILD_PATH}/usr/${lib_subdir}/libbpf.a" "${1}/externaldeps/libbpf" || exit 1 cp -r "${LIBBPF_BUILD_PATH}/usr/include" "${1}/externaldeps/libbpf" || exit 1 |