pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/cups-base cups-base: Rename PKG_OPTIONS.cups to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c1fe455b27d
branches:  trunk
changeset: 382276:9c1fe455b27d
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Jun 25 10:01:51 2018 +0000

description:
cups-base: Rename PKG_OPTIONS.cups to PKG_OPTIONS.cups-base

Using a PKG_OPTIONS_VAR that is different to PKGBASE is problematic when
PKG_BUILD_OPTIONS is used. Deprecate the `cups' option (via PKG_LEGACY_OPTIONS
so if `cups' is still used everything will continue to work) in favour of
`cups-base'.

Thanks to <bouyer> for pointing out this problem on tech-pkg@ ML!

diffstat:

 print/cups-base/buildlink3.mk |   8 ++++----
 print/cups-base/options.mk    |  10 ++++++++--
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r 63f7c814bf3d -r 9c1fe455b27d print/cups-base/buildlink3.mk
--- a/print/cups-base/buildlink3.mk     Mon Jun 25 08:42:53 2018 +0000
+++ b/print/cups-base/buildlink3.mk     Mon Jun 25 10:01:51 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.6 2018/04/17 22:29:33 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2018/06/25 10:01:51 leot Exp $
 
 BUILDLINK_TREE+=       cups-base
 
@@ -12,15 +12,15 @@
 pkgbase := cups-base
 .include "../../mk/pkg-build-options.mk"
 
-.if !empty(PKG_BUILD_OPTIONS.cups:Mkerberos)
+.if !empty(PKG_BUILD_OPTIONS.cups-base:Mkerberos)
 .include "../../mk/krb5.buildlink3.mk"
 .endif
 
-.if !empty(PKG_BUILD_OPTIONS.cups:Mdnssd)
+.if !empty(PKG_BUILD_OPTIONS.cups-base:Mdnssd)
 .include "../../net/mDNSResponder/buildlink3.mk"
 .endif
 
-.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.cups:Mavahi)
+.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.cups-base:Mavahi)
 .include "../../net/avahi/buildlink3.mk"
 .endif
 
diff -r 63f7c814bf3d -r 9c1fe455b27d print/cups-base/options.mk
--- a/print/cups-base/options.mk        Mon Jun 25 08:42:53 2018 +0000
+++ b/print/cups-base/options.mk        Mon Jun 25 10:01:51 2018 +0000
@@ -1,11 +1,17 @@
-# $NetBSD: options.mk,v 1.2 2018/06/24 10:17:42 bouyer Exp $
+# $NetBSD: options.mk,v 1.3 2018/06/25 10:01:51 leot Exp $
 
-PKG_OPTIONS_VAR=       PKG_OPTIONS.cups
+PKG_OPTIONS_VAR=       PKG_OPTIONS.cups-base
 PKG_SUPPORTED_OPTIONS= acl dnssd kerberos pam tcpwrappers
 PKG_SUGGESTED_OPTIONS= dnssd kerberos
 
 PLIST_VARS+=           apple dbus dnssd dnssd-backend ippfind libusb pam
 
+.if defined(PKG_OPTIONS.cups)
+PKG_LEGACY_OPTIONS+=           ${PKG_OPTIONS.cups}
+PKG_OPTIONS_DEPRECATED_WARNINGS+= \
+       "Deprecated variable PKG_OPTIONS.cups used, use ${PKG_OPTIONS_VAR} instead."
+.endif
+
 .if ${OPSYS} == "Darwin"
 PLIST.apple=           yes
 PLIST.ippfind=         yes



Home | Main Index | Thread Index | Old Index