aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2021-09-14 10:26:56 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2021-09-14 11:15:50 +0000
commita390bcbcd2dfa16e93764963f53335ebe3226528 (patch)
tree8738d198f6c31fa7574118f3425171b5eef102b9
parent9a248b9e990dbb47465b559e5a30283ad0f0e41f (diff)
downloadports-a390bcbcd2dfa16e93764963f53335ebe3226528.tar.gz
ports-a390bcbcd2dfa16e93764963f53335ebe3226528.zip
devel/freebsd-sysroot: Unbreak build as root
===> Extracting for amd64-freebsd-sysroot-a2021.09.12 => SHA256 Checksum OK for rust/bootstrap/amd64/12.2-RELEASE/base.txz. chmod: /wrkdirs/usr/ports/devel/freebsd-sysroot/work-amd64/stage/usr/local/freebsd-sysroot/amd64/lib/libthr.so.3: Operation not permitted chmod: /wrkdirs/usr/ports/devel/freebsd-sysroot/work-amd64/stage/usr/local/freebsd-sysroot/amd64/lib/libc.so.7: Operation not permitted chmod: /wrkdirs/usr/ports/devel/freebsd-sysroot/work-amd64/stage/usr/local/freebsd-sysroot/amd64/lib/libcrypt.so.5: Operation not permitted chmod: /wrkdirs/usr/ports/devel/freebsd-sysroot/work-amd64/stage/usr/local/freebsd-sysroot/amd64/usr/lib/librt.so.1: Operation not permitted
-rw-r--r--devel/freebsd-sysroot/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/freebsd-sysroot/Makefile b/devel/freebsd-sysroot/Makefile
index c7bd443b115a..ee697818f2ed 100644
--- a/devel/freebsd-sysroot/Makefile
+++ b/devel/freebsd-sysroot/Makefile
@@ -28,7 +28,8 @@ QA_ENV= IGNORE_QA_baselibs=1 \
IGNORE_QA_no_arch=1 \
IGNORE_QA_proxydeps=1 \
IGNORE_QA_stripped=1
-EXTRACT_AFTER_ARGS= -C${STAGEDIR}${_SYSROOT} ${_SYSROOT_INCLUDE:@x@--include=$x@} \
+EXTRACT_AFTER_ARGS= -C${STAGEDIR}${_SYSROOT} --no-same-permissions \
+ ${_SYSROOT_INCLUDE:@x@--include=$x@} \
${_SYSROOT_EXCLUDE:@x@--exclude=$x@}
NO_ARCH= yes
NO_BUILD= yes
@@ -119,6 +120,7 @@ do-extract:
dump -0f - ${WRKDIR}/base.img | \
restore -rf -
@${RM} ${WRKDIR}/base.img
+ @chflags -R noschg ${WRKDIR}/base
@${TAR} -C${WRKDIR}/base -cf - . | \
${TAR} -xf - ${EXTRACT_AFTER_ARGS}
.endif