From 82c27f15e1e44508e267fb24a8b41ee39fc6bcaa Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 9 Jul 2023 13:30:04 +0000 Subject: 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(-) (limited to 'regress') 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 -- cgit v1.2.3