pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Feb 12 20:14:02 UTC 2023

Modified Files:
        pkgsrc/mk: bsd.pkg.mk

Log Message:
mk: fix show-license-status target for mirror-distfiles

in that case, license.mk is not included and thus
DEFAULT_ACCEPTABLE_LICENSES not set, leading to a strange error message

Thanks for the analysis go to rillig@


To generate a diff of this commit:
cvs rdiff -u -r1.2049 -r1.2050 pkgsrc/mk/bsd.pkg.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/bsd.pkg.mk
diff -u pkgsrc/mk/bsd.pkg.mk:1.2049 pkgsrc/mk/bsd.pkg.mk:1.2050
--- pkgsrc/mk/bsd.pkg.mk:1.2049 Sat Feb  4 08:38:28 2023
+++ pkgsrc/mk/bsd.pkg.mk        Sun Feb 12 20:14:02 2023
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.2049 2023/02/04 08:38:28 wiz Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.2050 2023/02/12 20:14:02 wiz Exp $
 #
 # This file is in the public domain.
 #
@@ -762,7 +762,7 @@ show-license show-licence: .PHONY
 .if !target(show-license-status)
 show-license-status show-licence-status: .PHONY
        @${ECHO} "The license of this package is ${LICENSE}."
-.if ${DEFAULT_ACCEPTABLE_LICENSES:M${LICENSE}}
+.if defined(DEFAULT_ACCEPTABLE_LICENSES) && ${DEFAULT_ACCEPTABLE_LICENSES:M${LICENSE}}
        @${ECHO}; \
        ${ECHO} "This license is in DEFAULT_ACCEPTABLE_LICENSES."
 .endif



Home | Main Index | Thread Index | Old Index