Subject: Re: enabling alternative patch program
To: Klaus Heinz <k.heinz.dez.drei@onlinehome.de>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 12/15/2003 10:08:29
On Mon, Dec 15, 2003 at 02:27:56AM +0100, Klaus Heinz wrote:
> Hi,
>
> is it ok to do this?
>
> --- defs.NetBSD.mk 10 Dec 2003 13:37:48 -0000 1.56
> +++ defs.NetBSD.mk 15 Dec 2003 01:16:23 -0000
>
> -_PATCH_BACKUP_ARG= -V simple -b # switch to patch(1) for backup suffix
> +_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
>
>
> This enables me to use the following in my /etc/mk.conf:
>
> USE_GPATCH?=no
> .if defined(USE_GPATCH) && !empty(USE_GPATCH:M[Yy][Ee][Ss])
> PATCH_DEBUG=yes
> PATCH=gpatch
> _PATCH_BACKUP_ARG=-b -V simple -z
> _PATCH_CAN_BACKUP= yes
> .endif
>
> I find it convenient being able to use a different patch program to
> examine problems with patches.
Yes, this would be good to have.
Thanks,
Alistair