From owner-cvs-all Fri Jun 14 5: 1: 0 2002 Delivered-To: cvs-all@freebsd.org Received: from sdns.kv.ukrtel.net (sdns.kv.ukrtel.net [195.5.27.246]) by hub.freebsd.org (Postfix) with ESMTP id 617BE37B41A; Fri, 14 Jun 2002 05:00:37 -0700 (PDT) Received: from vega.vega.com (195.5.51.243 [195.5.51.243]) by sdns.kv.ukrtel.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id M7SJ62R5; Fri, 14 Jun 2002 15:02:38 +0300 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g5EC0Tb11594; Fri, 14 Jun 2002 15:00:29 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3D09DB11.8362727A@FreeBSD.org> Date: Fri, 14 Jun 2002 15:01:21 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Trevor Johnson Cc: Juli Mallett , Pete Fritchman , portmgr@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: ports/Mk bsd.port.mk References: <20020614033017.I8221-100000@blues.jpj.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Trevor Johnson wrote: > > Juli Mallett wrote: > > > Anyway, it's on my list of things to MFC, but it was controversial when it was > > on the tip of my mind, and I had trivial stuff I was having trouble getting to > > the RELENG_4 branch during the freeze, so I decided I'd wait for the free for > > all. I'd like to see ports move over to using it once it's been MFC'd for a > > while... > > Suppose there were a port, call it ports/misc/46upgrade, which installed > jmallett's sed, either as "jsed" or as just plain "sed" (in the latter > case, it would /usr/bin/sed aside on installation, and back in place on > deinstallation). Suppose the jsed port bumped /var/db/port.mkversion and > bsd.port.mk checked for this ("your system is too old to use this > bsd.port.mk") Then the macro for patching in situ could always use > jmallett's sed, never perl. It would behave consistently across different > versions of FreeBSD, so it would be easier to test and debug. I should admit that it looks like the most realistic plan out there. The main problems are with $ and @ characters, which have a special meaning for perl but no such meaning for sed(1), so that any, even simple, regexp that uses those chars *could not* be modified to work uniformly with both perl and sed. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message