Date: Mon, 11 Dec 2000 21:27:34 +0900 From: "Akinori MUSHA" <knu@iDaemons.org> To: freebsd-ports@FreeBSD.org, asami@FreeBSD.org Subject: New variable proposal: USE_NEWPATCH Message-ID: <863dfvxhvt.wl@archon.local.idaemons.org>
next in thread | raw e-mail | index | archive | help
Unfortunately, there are some people nowadays who distribute patches in the incompatible format with our /usr/bin/patch, which are intended for patch 2.5 and higher. In most cases it is due to a patch's lack of an EOL at the end of the file, however, just for the _one_ byte we always have to explain the matter to the author to get the patch fixed. (sigh) Of course there are some patches that essentially depend on patch 2.5's features. So now, hereby I'd propose we introduce a new variable USE_NEWPATCH as attached. That would help us in a few cases it won't pay us to bother with. Opinions? Onions? [Yeah, if I'd had fresh onions yesterday, I could've put plenty of onion in the curry ;) ] -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "We're only at home when we're on the run, on the wing, on the fly" Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.360 diff -u -u -r1.360 bsd.port.mk --- bsd.port.mk 2000/11/16 13:06:25 1.360 +++ bsd.port.mk 2000/12/11 11:25:48 @@ -132,8 +132,10 @@ # compression. # USE_ZIP - Says that the port distfile uses zip, not tar w/[bg]zip # for compression. -# USE_NEWGCC - Says that the port requirest the latest gcc, either in +# USE_NEWGCC - Says that the port requires the latest gcc, either in # the system or installed from a port. +# USE_NEWPATCH - Says that the port requires the latest patch installed +# from the port. # USE_GMAKE - Says that the port uses gmake. # GMAKE - Set to path of GNU make if not in $PATH (default: gmake). # USE_AUTOMAKE - Says that the port uses automake. Implies USE_AUTOCONF. @@ -796,6 +798,10 @@ LIBTOOLFILES?= configure .endif LIBTOOLFLAGS?= --disable-ltlibs +.endif +.if defined(USE_NEWPATCH) +PATCH= ${LOCALBASE}/bin/patch +BUILD_DEPENDS+= ${PATCH}:${PORTSDIR}/devel/patch .endif .if defined(USE_NEWGCC) && ${OSVERSION} < 400012 CC= gcc295 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863dfvxhvt.wl>