From 1fda6b69265a4ab210b2b3f6d6e2e1048d2b873a Mon Sep 17 00:00:00 2001 From: bluhm Date: Sun, 9 Jul 2023 13:30:03 +0000 Subject: [PATCH] Some Perl tests set owner, permissions, access time, and modification time on files in the Perl source distribution. Replace the symlink in obj directory with a copy, so that they do not modify OpenBSD src tree. --- regress/gnu/usr.bin/perl/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/regress/gnu/usr.bin/perl/Makefile b/regress/gnu/usr.bin/perl/Makefile index 56ebf47f2fc..d6f5eaabb9d 100644 --- a/regress/gnu/usr.bin/perl/Makefile +++ b/regress/gnu/usr.bin/perl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2023/07/08 14:49:55 bluhm Exp $ +# $OpenBSD: Makefile,v 1.5 2023/07/09 13:30:03 bluhm Exp $ .if ! (make(clean) || make(cleandir) || make(obj)) NCPU != /sbin/sysctl -n hw.ncpuonline @@ -16,9 +16,14 @@ permissions: # Match expectations of cpan/Test-Harness/t/source_handler.t for # cpan/Test-Harness/t/source_tests/source*.sh executalbe bits. # Remove symlink and fix permissions of copy in obj directory. + # cpan/autodie/t/chmod.t and cpan/autodie/t/chown.t modify themself, + # and cpan/autodie/t/utime.t touches touch_me. Replace symlink. .for f in \ cpan/Test-Harness/t/source_tests/source.sh \ - cpan/Test-Harness/t/source_tests/source_args.sh + cpan/Test-Harness/t/source_tests/source_args.sh \ + cpan/autodie/t/chmod.t \ + cpan/autodie/t/chown.t \ + cpan/autodie/t/touch_me rm -f ${BSDOBJDIR}/gnu/usr.bin/perl/$f cp ${BSDSRCDIR}/gnu/usr.bin/perl/$f ${BSDOBJDIR}/gnu/usr.bin/perl/$f chmod +x ${BSDOBJDIR}/gnu/usr.bin/perl/$f -- 2.20.1