Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2006 21:37:38 +0000
From:      James O'Gorman <james@netinertia.co.uk>
To:        Thierry Thomas <thierry@FreeBSD.org>,  ports@freebsd.org
Subject:   Re: How to deal with large number of patches in a port?
Message-ID:  <4419DAA2.3000603@netinertia.co.uk>
In-Reply-To: <20060316212553.GG7184@graf.pompo.net>
References:  <4419D414.1070308@netinertia.co.uk> <20060316212553.GG7184@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Thierry,

On 16/3/06 21:25, Thierry Thomas wrote:
> Le Jeu 16 mar 06 à 22:09:40 +0100, James O'Gorman <james@netinertia.co.uk>
>  écrivait :
>> Hi,
> 
> Hello,
> 
>> I'm about to update a port I maintain (sysutils/boxbackup), but due to 
>> the upstream software not currently being PREFIX-clean, I have a large 
>> number of patches (29 patches in total) I need to apply to the source 
>> tree. The majority of them are fairly small (just a few lines), but some 
>> of them are a bit larger.
> 
> In such a case, perhaps could it be possible to fix PREFIX with sed
> (REINPLACE_CMD)?

The majority of the patches are correcting hard-coded references to perl 
- replacing it with @PERL@ so that autoconf then replaces it with the 
true location of the perl executable.

Perhaps something like:

${REINPLACE_CMD} -e 's,#!/usr/bin/perl,#!${PERL},' \
	${WRKSRC}/file1 \
	${WRKSRC}/file2 \
	${WRKSRC}/file3

would be better?

James



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4419DAA2.3000603>