summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-12-07 14:49:19 -0600
committerZach van Rijn <me@zv.io>2024-08-10 06:09:07 +0000
commit1f46363893b2d422ed3748d3a6044ebb1f25ef67 (patch)
treed19e62b61e9cc1d93b5e4367569587225fd5475e
parent82c2846b38bcad07586aec2e31e814496ebb990c (diff)
downloadpackages-1f46363893b2d422ed3748d3a6044ebb1f25ef67.tar.gz
packages-1f46363893b2d422ed3748d3a6044ebb1f25ef67.tar.bz2
packages-1f46363893b2d422ed3748d3a6044ebb1f25ef67.tar.xz
packages-1f46363893b2d422ed3748d3a6044ebb1f25ef67.zip
Add fakeroot patches.
-rw-r--r--scripts/setup-abuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/setup-abuild b/scripts/setup-abuild
index f35ddd114..bfd75add8 100644
--- a/scripts/setup-abuild
+++ b/scripts/setup-abuild
@@ -331,14 +331,20 @@ test ! -f ._${nfrt}-${vfrt#*:} && \
;
cd ${nfrt}-${vfrt};
git checkout ${vfrt};
+ while read k; do curl -s ${k} | patch -p1 || true; done <<EOF
+https://git.alpinelinux.org/aports/plain/main/fakeroot/do-not-redefine-id_t.patch?id=bb497eeb2155d0332284942105692bc05fec25a9
+https://git.alpinelinux.org/aports/plain/main/fakeroot/fakeroot-no64.patch?id=bb497eeb2155d0332284942105692bc05fec25a9
+https://git.alpinelinux.org/aports/plain/main/fakeroot/fakeroot-stdint.patch?id=bb497eeb2155d0332284942105692bc05fec25a9
+https://git.alpinelinux.org/aports/plain/main/fakeroot/fix-format.patch?id=bb497eeb2155d0332284942105692bc05fec25a9
+https://git.alpinelinux.org/aports/plain/main/fakeroot/fix-shell-in-fakeroot.patch?id=bb497eeb2155d0332284942105692bc05fec25a9
+EOF
./bootstrap;
f=$(mktemp); # needed due to "error: unknown type name 'cap_user_header_t'"
echo > ${f} "#include <linux/capability.h>";
cat libfakeroot.c >> ${f};
mv ${f} libfakeroot.c;
rm -fr x; mkdir x; cd x;
- # -D_ID_T is for "error: conflicting types for 'id_t'; have 'int'"
- CFLAGS="-D_ID_T" \
+ CFLAGS="-D_STAT_VER=0 $CFLAGS" \
../configure \
--prefix="${DEST}" \
;