Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2012 21:45:56 +0100
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        Helmut Schneider <jumper99@gmx.de>
Subject:   Re: Problem with genplist replacing PORTVERSION
Message-ID:  <4F567784.9090801@FreeBSD.org>
In-Reply-To: <xn0hva8d04er786001@news.gmane.org>
References:  <xn0hva8d04er786001@news.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F567784.9090801>