From 7397efc8f9de4ff8216261fed16ae8131aa56ba2 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 29 Jun 2015 12:32:41 +0000 Subject: [PATCH] Make Perl behave nicely, and install files 644 and not 444. With hat: perl@ Sponsored by: Absolight --- devel/p5-ExtUtils-Install/Makefile | 2 +- .../files/patch-lib_ExtUtils_Install.pm | 11 +++++++++++ lang/perl5-devel/Makefile | 1 + ...atch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm | 11 +++++++++++ lang/perl5.16/Makefile | 2 +- ...atch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm | 11 +++++++++++ lang/perl5.18/Makefile | 2 +- ...atch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm | 11 +++++++++++ lang/perl5.20/Makefile | 2 +- ...atch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm | 11 +++++++++++ lang/perl5.22/Makefile | 1 + ...atch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm | 11 +++++++++++ 12 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 devel/p5-ExtUtils-Install/files/patch-lib_ExtUtils_Install.pm create mode 100644 lang/perl5-devel/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm create mode 100644 lang/perl5.16/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm create mode 100644 lang/perl5.18/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm create mode 100644 lang/perl5.20/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm create mode 100644 lang/perl5.22/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm diff --git a/devel/p5-ExtUtils-Install/Makefile b/devel/p5-ExtUtils-Install/Makefile index ad3e609bb270..a2f9ad39563b 100644 --- a/devel/p5-ExtUtils-Install/Makefile +++ b/devel/p5-ExtUtils-Install/Makefile @@ -2,7 +2,7 @@ PORTNAME= ExtUtils-Install PORTVERSION= 2.04 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/devel/p5-ExtUtils-Install/files/patch-lib_ExtUtils_Install.pm b/devel/p5-ExtUtils-Install/files/patch-lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..946f7cfcce1c --- /dev/null +++ b/devel/p5-ExtUtils-Install/files/patch-lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- lib/ExtUtils/Install.pm.orig 2015-06-19 12:08:32 UTC ++++ lib/ExtUtils/Install.pm +@@ -809,7 +809,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose ); diff --git a/lang/perl5-devel/Makefile b/lang/perl5-devel/Makefile index 942308d1f634..1aee64bc9389 100644 --- a/lang/perl5-devel/Makefile +++ b/lang/perl5-devel/Makefile @@ -4,6 +4,7 @@ PORTNAME= perl #PORTVERSION= ${PERL_VERSION} # XXX DISTVERSION= ${GH_TAGNAME:C/^v//:C/-g[0-9a-f]*$//} +PORTREVISION= 1 CATEGORIES= lang devel perl5 # XXX MASTER_SITES= LOCAL/mat/perl GH CPAN/../../src/5.0 diff --git a/lang/perl5-devel/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm b/lang/perl5-devel/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..b84c8fc02b9c --- /dev/null +++ b/lang/perl5-devel/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- cpan/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2015-06-22 12:55:33 UTC ++++ cpan/ExtUtils-Install/lib/ExtUtils/Install.pm +@@ -809,7 +809,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose ); diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index b4ddd9bce343..58ee594c8320 100644 --- a/lang/perl5.16/Makefile +++ b/lang/perl5.16/Makefile @@ -3,7 +3,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VERSION} -PORTREVISION= 21 +PORTREVISION= 22 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN/../../src/5.0 DIST_SUBDIR= perl diff --git a/lang/perl5.16/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm b/lang/perl5.16/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..1f958e86e976 --- /dev/null +++ b/lang/perl5.16/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- dist/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2013-03-04 15:16:21 UTC ++++ dist/ExtUtils-Install/lib/ExtUtils/Install.pm +@@ -822,7 +822,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose ); diff --git a/lang/perl5.18/Makefile b/lang/perl5.18/Makefile index 4d743a80ccb6..c34cb7485a42 100644 --- a/lang/perl5.18/Makefile +++ b/lang/perl5.18/Makefile @@ -3,7 +3,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VERSION} -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN/../../src/5.0 DIST_SUBDIR= perl diff --git a/lang/perl5.18/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm b/lang/perl5.18/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..3d335cf92054 --- /dev/null +++ b/lang/perl5.18/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- dist/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2014-10-01 01:33:00 UTC ++++ dist/ExtUtils-Install/lib/ExtUtils/Install.pm +@@ -797,7 +797,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose ); diff --git a/lang/perl5.20/Makefile b/lang/perl5.20/Makefile index 402cdde17bff..758e3e3838dd 100644 --- a/lang/perl5.20/Makefile +++ b/lang/perl5.20/Makefile @@ -3,7 +3,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VERSION} -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN/../../src/5.0 DIST_SUBDIR= perl diff --git a/lang/perl5.20/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm b/lang/perl5.20/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..d4ec3e09b880 --- /dev/null +++ b/lang/perl5.20/files/patch-dist_ExtUtils-Install_lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- dist/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2014-12-27 11:49:23 UTC ++++ dist/ExtUtils-Install/lib/ExtUtils/Install.pm +@@ -808,7 +808,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose ); diff --git a/lang/perl5.22/Makefile b/lang/perl5.22/Makefile index 3bd0b60c03cd..8803efedc82c 100644 --- a/lang/perl5.22/Makefile +++ b/lang/perl5.22/Makefile @@ -3,6 +3,7 @@ PORTNAME= perl DISTVERSION= ${PERL_VERSION} +PORTREVISION= 1 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN/../../src/5.0 CPAN/../by-authors/id/R/RJ/RJBS DIST_SUBDIR= perl diff --git a/lang/perl5.22/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm b/lang/perl5.22/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm new file mode 100644 index 000000000000..1f2e3e4847c3 --- /dev/null +++ b/lang/perl5.22/files/patch-cpan_ExtUtils-Install_lib_ExtUtils_Install.pm @@ -0,0 +1,11 @@ +--- cpan/ExtUtils-Install/lib/ExtUtils/Install.pm.orig 2015-06-19 11:34:20 UTC ++++ cpan/ExtUtils-Install/lib/ExtUtils/Install.pm +@@ -809,7 +809,7 @@ sub install { #XXX OS-SPECIFIC + utime($atime,$mtime + $Is_VMS,$targetfile) unless $dry_run>1; + + +- $mode = 0444 | ( $mode & 0111 ? 0111 : 0 ); ++ $mode = 0644 | ( $mode & 0111 ? 0111 : 0 ); + $mode = $mode | 0222 + if $realtarget ne $targetfile; + _chmod( $mode, $targetfile, $verbose );