aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/makepatch
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2001-11-19 06:54:13 +0800
committertobez <tobez@FreeBSD.org>2001-11-19 06:54:13 +0800
commit5ed9b413af4a4153e9d7cc26c43a3912caaf7300 (patch)
tree336a692067796f24cf7bd6054aaf323b95e9a731 /textproc/makepatch
parentdc4a490a9fc90b69a36540e7afe0121b48c5cec7 (diff)
downloadfreebsd-ports-graphics-5ed9b413af4a4153e9d7cc26c43a3912caaf7300.tar.gz
freebsd-ports-graphics-5ed9b413af4a4153e9d7cc26c43a3912caaf7300.tar.zst
freebsd-ports-graphics-5ed9b413af4a4153e9d7cc26c43a3912caaf7300.zip
Bug fix (Perl on FreeBSD does not support -T and -B tests on a
filehandle; do not use them). PR: 31848 Submitted by: maintainer
Diffstat (limited to 'textproc/makepatch')
-rw-r--r--textproc/makepatch/Makefile1
-rw-r--r--textproc/makepatch/files/patch-makepatch.PL22
2 files changed, 23 insertions, 0 deletions
diff --git a/textproc/makepatch/Makefile b/textproc/makepatch/Makefile
index be220ec105a..ffa7c5f4c9f 100644
--- a/textproc/makepatch/Makefile
+++ b/textproc/makepatch/Makefile
@@ -7,6 +7,7 @@
PORTNAME= makepatch
PORTVERSION= 2.00a
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/JV
diff --git a/textproc/makepatch/files/patch-makepatch.PL b/textproc/makepatch/files/patch-makepatch.PL
new file mode 100644
index 00000000000..ee0bb07c45b
--- /dev/null
+++ b/textproc/makepatch/files/patch-makepatch.PL
@@ -0,0 +1,22 @@
+--- makepatch.PL Sun Dec 6 09:04:51 1998
++++ makepatch.PL.new Mon Nov 5 19:47:17 2001
+@@ -670,11 +670,14 @@
+ $skipped++;
+ return 0;
+ }
+- if ( -B $fh ) {
+- verbose ("WARNING: Binary file $new -- skipped\n");
+- $skipped++;
+- return 0;
+- }
++# Binary/Text test on filehandle makes no sense (and causes failure)
++# on FreeBSD
++#
++# if ( -B $fh ) {
++# verbose ("WARNING: Binary file $new -- skipped\n");
++# $skipped++;
++# return 0;
++# }
+ my $pos = $fh->getpos;
+ while ( <$fh> ) {
+ $lines++;