pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg During 'make replace', use pkg_admin to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10ee61a6d486
branches:  trunk
changeset: 516257:10ee61a6d486
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Mon Jul 17 18:18:42 2006 +0000

description:
During 'make replace', use pkg_admin to set the unsafe_depends
variable to YES for each pacakge that depends on the replaced package.

Discussed on tech-pkg with generally positive comments.

diffstat:

 mk/flavor/pkg/replace.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 6ade9340929e -r 10ee61a6d486 mk/flavor/pkg/replace.mk
--- a/mk/flavor/pkg/replace.mk  Mon Jul 17 18:17:41 2006 +0000
+++ b/mk/flavor/pkg/replace.mk  Mon Jul 17 18:18:42 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.4 2006/07/07 21:24:28 jlam Exp $
+# $NetBSD: replace.mk,v 1.5 2006/07/17 18:18:42 gdt Exp $
 
 ######################################################################
 ### replace-pkg (PRIVATE, pkgsrc/mk/install/replace.mk)
@@ -150,6 +150,7 @@
                        { print }'                                      \
                        $$contents > $$newcontents;                     \
                ${MV} -f $$newcontents $$contents;                      \
+               ${PKG_ADMIN} set unsafe_depends=YES $$pkg;              \
        done
 
 ######################################################################



Home | Main Index | Thread Index | Old Index