From owner-freebsd-ports@FreeBSD.ORG Tue Mar 6 20:51:51 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C03D31065678 for ; Tue, 6 Mar 2012 20:51:51 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7D9918FC08 for ; Tue, 6 Mar 2012 20:51:51 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S51MK-0000r4-PF for freebsd-ports@freebsd.org; Tue, 06 Mar 2012 21:51:48 +0100 Received: from p5dcd6da4.dip.t-dialin.net ([93.205.109.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Mar 2012 21:51:48 +0100 Received: from jumper99 by p5dcd6da4.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Mar 2012 21:51:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: "Helmut Schneider" Date: Tue, 6 Mar 2012 20:51:36 +0000 (UTC) Lines: 39 Message-ID: References: <4F567784.9090801@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5dcd6da4.dip.t-dialin.net User-Agent: XanaNews/1.19.1.320 X-Ref: news.gmane.org ~XNS:0000022C X-Antivirus: avast! (VPS 120306-0, 06.03.2012), Outbound message X-Antivirus-Status: Clean Subject: Re: Problem with genplist replacing PORTVERSION 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, 06 Mar 2012 20:51:51 -0000 Olli Hauer wrote: > On 2012-03-06 21:30, Helmut Schneider wrote: > > Hi, > > > > To create a new version of a port (let's say typo3) I copy typo3 to > > typo3.org. Then I run > > > > sudo make clean && sudo port fetch > > sudo rm -r /tmp/typo3* > > sudo genplist clean; sudo genplist create tmp > > > > As a result on my 8.2 machine $PORTVERSION in pkg-plist is replaced > > with %%PORTVERSION%% as defined in the Makefile: > > > > %%WWWDIR%%_src-%%PORTVERSION%%/ChangeLog > > > > If I do so on my new 9.0 machine, it does not: > > > > %%WWWDIR%%_src-4.6.4/ChangeLog > > > > Why? What did I miss? > > > genplist does not replace by default PORTVERSION (not defined in the > genplist code) Maybe you have a custom script which looks like > > cat ~/.genplist/typo3 > > #!/bin/sh > PV=$(make -V PORTVERSION) > > sed -i '' "|${PV}|%%PORTVERSION%%|g" $1 Ah, yes, I indeed patched genplist and added | sed "s|${portversion}|%%PORTVERSION%%|g" Thanks!