How to deal with large number of patches in a port?

Vasil Dimov vd at FreeBSD.org
Fri Mar 17 06:36:24 UTC 2006


On Thu, Mar 16, 2006 at 09:37:38PM +0000, James O'Gorman wrote:
> Hi Thierry,
> 
> On 16/3/06 21:25, Thierry Thomas wrote:
> >Le Jeu 16 mar 06 à 22:09:40 +0100, James O'Gorman <james at 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?
> 
Sure. Btw you should have /usr/bin/perl on your system.

-- 
Vasil Dimov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060317/9527c34a/attachment.pgp


More information about the freebsd-ports mailing list