git: a390bcbcd2df - main - devel/freebsd-sysroot: Unbreak build as root
Tobias Kortkamp
tobik at FreeBSD.org
Tue Sep 14 11:19:45 UTC 2021
The branch main has been updated by tobik:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a390bcbcd2dfa16e93764963f53335ebe3226528
commit a390bcbcd2dfa16e93764963f53335ebe3226528
Author: Tobias Kortkamp <tobik at FreeBSD.org>
AuthorDate: 2021-09-14 10:26:56 +0000
Commit: Tobias Kortkamp <tobik at FreeBSD.org>
CommitDate: 2021-09-14 11:15:50 +0000
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
---
devel/freebsd-sysroot/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 at --include=$x@} \
+EXTRACT_AFTER_ARGS= -C${STAGEDIR}${_SYSROOT} --no-same-permissions \
+ ${_SYSROOT_INCLUDE:@x at --include=$x@} \
${_SYSROOT_EXCLUDE:@x at --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
More information about the dev-commits-ports-all
mailing list