Received: by mail.netbsd.org (Postfix, from userid 605) id D109184EEE; Sun, 12 Feb 2023 20:14:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0AA5A84D13 for ; Sun, 12 Feb 2023 20:14:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id BFEwTujfbyaC for ; Sun, 12 Feb 2023 20:14:02 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 5294184D0C for ; Sun, 12 Feb 2023 20:14:02 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 41743FA90; Sun, 12 Feb 2023 20:14:02 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1676232842248690" MIME-Version: 1.0 Date: Sun, 12 Feb 2023 20:14:02 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/mk To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20230212201402.41743FA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1676232842248690 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1676232842248690 Content-Disposition: inline Content-Length: 812 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_1676232842248690--