pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/pkgformat/pkg



Module Name:    pkgsrc
Committed By:   gdt
Date:           Mon Sep 19 12:26:08 UTC 2016

Modified Files:
        pkgsrc/mk/pkgformat/pkg: replace.mk

Log Message:
Omit pkg_tarup during replace in destdir mode

In destdir mode (the default), make replace creates the replacement
binary package without modifying the installed system, and then
installs it via pkg_add -u.  Thus, the new package is known to have
built and packaged ok before the system is changed, and the risk of
trouble is low; thus the benefit of tarring up the installed package
is very low, especially since the newly-tarred-up package is removed
by "make clean".  Using pkg_tarup costs cycles to run and more
importantly causes users to have to install it since it is not an
automatic dependency.

In addition, binary packages are now kept by default when building, so
the old version should be accessible in case of trouble.

This commit does not change the non-destdir case.  Almost no one uses
that method, and the relative benefit of tarup is much higher.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/pkgformat/pkg/replace.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/pkgformat/pkg/replace.mk
diff -u pkgsrc/mk/pkgformat/pkg/replace.mk:1.3 pkgsrc/mk/pkgformat/pkg/replace.mk:1.4
--- pkgsrc/mk/pkgformat/pkg/replace.mk:1.3      Sun Apr 10 15:58:03 2016
+++ pkgsrc/mk/pkgformat/pkg/replace.mk  Mon Sep 19 12:26:08 2016
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.3 2016/04/10 15:58:03 joerg Exp $
+# $NetBSD: replace.mk,v 1.4 2016/09/19 12:26:08 gdt Exp $
 #
 
 # _pkgformat-destdir-replace:
@@ -22,9 +22,9 @@ _pkgformat-replace: \
        replace-fixup-installed-info \
        .PHONY
 
+# tarup is omitted for DESTDIR, because the benefits are very small
 _pkgformat-destdir-replace: \
        replace-names \
-       replace-tarup \
        replace-destdir \
        .PHONY
 



Home | Main Index | Thread Index | Old Index