Make the BSD-licensed patch the default.

The BSD-licensed patch(1) command has matured and it's behaviour
can be considered equivalent to the older version of GNU patch
in the tree.

The switch has been extensively tested [1] and only two ports
presented regressions, which have since been fixed.

For convenience a new WITH_GNU_PATCH option is available,
but it will likely be removed in the near future.

PR:		176313
Approved by:	portmgr
This commit is contained in:
pfg 2013-07-26 21:25:18 +00:00
parent 45f9b76a04
commit 97ac613107
5 changed files with 9 additions and 9 deletions

View File

@ -2,14 +2,14 @@
.include <bsd.own.mk> .include <bsd.own.mk>
.if ${MK_BSD_PATCH} == "yes" .if ${MK_GNU_PATCH} == "yes"
PROG= patch
.else
PROG= gnupatch PROG= gnupatch
CLEANFILES+= gnupatch.1 CLEANFILES+= gnupatch.1
gnupatch.1: patch.1 gnupatch.1: patch.1
cp ${.ALLSRC} ${.TARGET} cp ${.ALLSRC} ${.TARGET}
.else
PROG= patch
.endif .endif
SRCS= backupfile.c inp.c patch.c pch.c util.c version.c SRCS= backupfile.c inp.c patch.c pch.c util.c version.c

View File

@ -364,7 +364,6 @@ __DEFAULT_YES_OPTIONS = \
ZONEINFO ZONEINFO
__DEFAULT_NO_OPTIONS = \ __DEFAULT_NO_OPTIONS = \
BSD_PATCH \
BIND_IDN \ BIND_IDN \
BIND_LARGE_FILE \ BIND_LARGE_FILE \
BIND_LIBS \ BIND_LIBS \
@ -375,6 +374,7 @@ __DEFAULT_NO_OPTIONS = \
CLANG_EXTRAS \ CLANG_EXTRAS \
CTF \ CTF \
DEBUG_FILES \ DEBUG_FILES \
GNU_PATCH \
GPL_DTC \ GPL_DTC \
HESIOD \ HESIOD \
ICONV \ ICONV \

View File

@ -1,2 +0,0 @@
.\" $FreeBSD$
Install BSD-licensed patch as 'patch' instead of GNU patch.

View File

@ -0,0 +1,2 @@
.\" $FreeBSD$
Install GNU-licensed patch as 'patch' instead of BSD patch.

View File

@ -3,14 +3,14 @@
.include <bsd.own.mk> .include <bsd.own.mk>
.if ${MK_BSD_PATCH} == "yes" .if ${MK_GNU_PATCH} == "yes"
PROG= patch
.else
PROG= bsdpatch PROG= bsdpatch
CLEANFILES+= bsdpatch.1 CLEANFILES+= bsdpatch.1
bsdpatch.1: patch.1 bsdpatch.1: patch.1
cp ${.ALLSRC} ${.TARGET} cp ${.ALLSRC} ${.TARGET}
.else
PROG= patch
.endif .endif
SRCS= backupfile.c inp.c mkpath.c patch.c pch.c util.c SRCS= backupfile.c inp.c mkpath.c patch.c pch.c util.c