Subject: enabling alternative patch program
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.dez.drei@onlinehome.de>
List: tech-pkg
Date: 12/15/2003 02:27:56
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.
ciao
Klaus