From owner-freebsd-ports Mon Dec 11 4:27:49 2000 From owner-freebsd-ports@FreeBSD.ORG Mon Dec 11 04:27:46 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mail.rdc1.kt.home.ne.jp (ha1.rdc1.kt.home.ne.jp [203.165.9.242]) by hub.freebsd.org (Postfix) with ESMTP id 0AE5237B400; Mon, 11 Dec 2000 04:27:42 -0800 (PST) Received: from daemon.local.idaemons.org ([203.165.161.10]) by mail.rdc1.kt.home.ne.jp (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20001211122735.KNQR20233.mail.rdc1.kt.home.ne.jp@daemon.local.idaemons.org>; Mon, 11 Dec 2000 04:27:35 -0800 Received: by daemon.local.idaemons.org (8.11.1/3.7W) id eBBCRY203028; Mon, 11 Dec 2000 21:27:34 +0900 (JST) Date: Mon, 11 Dec 2000 21:27:34 +0900 Message-ID: <863dfvxhvt.wl@archon.local.idaemons.org> From: "Akinori MUSHA" To: freebsd-ports@FreeBSD.org, asami@FreeBSD.org Subject: New variable proposal: USE_NEWPATCH User-Agent: Wanderlust/2.5.4 (Smooth) SEMI/1.14.0 (Iburihashi) FLIM/1.14.0 (Ninokuchi) APEL/10.2 MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by SEMI 1.14.0 - "Iburihashi") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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