summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2005-10-30 17:32:07 +0000
committerjschauma <jschauma@pkgsrc.org>2005-10-30 17:32:07 +0000
commit92854abe0546d41cd0dcc31cedcc68e8ae8e8077 (patch)
tree8cc8eafb991a704442f201e74471773891a69c79
parent3cc1f7f055793c27b517d9452e4400ce1031c8c2 (diff)
downloadpkgsrc-92854abe0546d41cd0dcc31cedcc68e8ae8e8077.tar.gz
If we're using devel/patch, then we know that we can create backup files
and how, so set this. Fixes problems observed under (at least) IRIX, where otherwise a call to gpatch ${_PATCH_BACKUP_ARG} .orig <patch would fail, as ${_PATCH_BACKUP_ARG} would be the empty string.
-rw-r--r--mk/tools/replace.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 34d0e78ba29..a564c822fcf 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.129 2005/10/16 19:38:05 schwarz Exp $
+# $NetBSD: replace.mk,v 1.130 2005/10/30 17:32:07 jschauma Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -861,6 +861,8 @@ TOOLS_DEPENDS.patch?= patch>=2.2:../../devel/patch
TOOLS_CREATE+= patch
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.patch=patch
TOOLS_PATH.patch= ${TOOLS_PREFIX.patch}/bin/gpatch
+_PATCH_CAN_BACKUP= yes
+_PATCH_BACKUP_ARG?= -b -V simple -z
. endif
.endif