From owner-freebsd-ports@FreeBSD.ORG Tue Jul 19 19:35:56 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8554316A41F for ; Tue, 19 Jul 2005 19:35:56 +0000 (GMT) (envelope-from xride@x12.dk) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA2BF43D49 for ; Tue, 19 Jul 2005 19:35:55 +0000 (GMT) (envelope-from xride@x12.dk) X-T2-Posting-ID: lkM/Dn7LTUP9vUt2XCoVCw== Received: from x12.dk ([83.72.97.237] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 428508487; Tue, 19 Jul 2005 21:35:54 +0200 Received: from localhost (unknown [127.0.0.1]) by x12.dk (Postfix) with ESMTP id F10CF5081D; Tue, 19 Jul 2005 21:35:48 +0200 (CEST) Received: from x12.dk ([127.0.0.1]) by localhost (x12.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64333-10; Tue, 19 Jul 2005 21:34:26 +0200 (CEST) Received: from x12.dk (localhost [127.0.0.1]) by x12.dk (Postfix) with ESMTP; Tue, 19 Jul 2005 21:34:25 +0200 (CEST) Received: from localhost (xride@localhost) by x12.dk (8.13.3/8.13.3/Submit) with ESMTP id j6JJYPjJ065273; Tue, 19 Jul 2005 21:34:25 +0200 (CEST) (envelope-from xride@x12.dk) Date: Tue, 19 Jul 2005 21:34:25 +0200 (CEST) From: Soeren Straarup To: Paul Schmehl In-Reply-To: <0D43EF3184DD2596A0C6F74E@utd59514.utdallas.edu> Message-ID: <20050719213342.H27439@x12.dk> References: <7EA964ADB15B6C3F4E521554@utd59514.utdallas.edu> <790a9fff05071911356839b928@mail.gmail.com> <0D43EF3184DD2596A0C6F74E@utd59514.utdallas.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at x12.dk Cc: ports@freebsd.org Subject: Re: patch problem with new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 19:35:56 -0000 On Tue, 19 Jul 2005, Paul Schmehl wrote: > --On Tuesday, July 19, 2005 13:35:07 -0500 Scot Hetzel > wrote: >> >> If you are repeatedly changing only one line in several files, you >> could use the ${REPLACE_CMD} variable to replace the line. >> >> USE_REINPLACE= yes >> WISH_CMD?= wish8.3 >> >> post-patch: >> .for file in file1 file2 >> @${REINPLACE_CMD} -e 's:exec wish:exec ${WISH_CMD}:g' ${WRKDIR}/$file >> .endfor >> >> You can use this trick even if you are patching one of the files, as >> the post-patch occurs after your patch is applied. >> > This looks like the way to go, but I can't seem to get it to work. The file > I want to patch is in ${WRKSRC}/client/, and here's the portion of the > Makefile that uses REINPLACE. > > NO_BUILD= yes > USE_REINPLACE= yes > WISH_CMD?= wish8.3 > WRKSRC= ${WRKDIR}/sguil-${PORTVERSION} > > PORTDOCS= CHANGES INSTALL INSTALL.openbsd LICENSE.QPL \ > OPENSSL.README TODO USAGE sguildb.dia > > .include > > post-patch: > .for f in sguil.tk > @${REINPLACE_CMD} -e 's:exec wish:exec ${WISH_CMD}:' ${WRKDIR}/client/${f} ^^^ Should that not be SRC? > .endfor > > I'm sure it's something due to my ignorance, but I can't get this to work, > even though I tried several different permutations of the path to the file. > Any suggestions? > > Paul Schmehl (pauls@utdallas.edu) > Adjunct Information Security Officer > University of Texas at Dallas > AVIEN Founding Member > http://www.utdallas.edu/ir/security/ > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > \Soeren Straarup Soeren Straarup | aka OZ2DAK aka Xride FreeBSD wannabe | FreeBSD since 2.2.6-R 'We wanted to believe. But the tools had been taken away..' Mulder