pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/install



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Mon Nov 12 13:47:33 UTC 2018

Modified Files:
        pkgsrc/mk/install: install.mk

Log Message:
mk/install: Add support for STRIP_DEBUG_SUPPORTED.

This is a package-settable variable that will disable stripping binaries if
set to anything other than "yes" (the default).  This helps packages such as
anything built using golang where stripping binaries is harmful to them.

Document this and the recently introduced STRIP_FILES_SKIP.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 pkgsrc/mk/install/install.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/install/install.mk
diff -u pkgsrc/mk/install/install.mk:1.73 pkgsrc/mk/install/install.mk:1.74
--- pkgsrc/mk/install/install.mk:1.73   Mon Nov 12 13:42:16 2018
+++ pkgsrc/mk/install/install.mk        Mon Nov 12 13:47:32 2018
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.73 2018/11/12 13:42:16 jperkin Exp $
+# $NetBSD: install.mk,v 1.74 2018/11/12 13:47:32 jperkin Exp $
 #
 # This file provides the code for the "install" phase.
 #
@@ -55,6 +55,13 @@
 #      A variable name that should be set as staged installation location
 #      presented as ${DESTDIR} at install phase.
 #      "DESTDIR" is set by default.
+#
+# STRIP_DEBUG_SUPPORTED
+#      If set to anything other than "yes" (the default), stripping will
+#      be disabled for the package.
+#
+# STRIP_FILES_SKIP
+#      A list of files relative to ${PREFIX} that will not be stripped.
 
 ######################################################################
 ### install (PUBLIC)
@@ -176,7 +183,7 @@ _INSTALL_ALL_TARGETS+=              pre-install
 _INSTALL_ALL_TARGETS+=         do-install
 _INSTALL_ALL_TARGETS+=         post-install
 _INSTALL_ALL_TARGETS+=         plist
-.if !empty(STRIP_DEBUG:M[Yy][Ee][Ss])
+.if ${STRIP_DEBUG:Uno:tl} == "yes" && ${STRIP_DEBUG_SUPPORTED:Uyes:tl} == "yes"
 _INSTALL_ALL_TARGETS+=         install-strip-debug
 .endif
 _INSTALL_ALL_TARGETS+=         install-doc-handling



Home | Main Index | Thread Index | Old Index