Subject: PKG_SUPPORTED_OPTIONS in BUILD_DEFS?
To: None <jlam@netbsd.org>
From: Juan RP <xtraeme@netbsd.org>
List: tech-pkg
Date: 07/31/2004 01:47:56
--Signature=_Sat__31_Jul_2004_01_47_56_+0200_htySI_JI6pClQzkL
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit


Hi all,

I would like to see all available options via BUILD_DEFS when using
bsd.options.mk, it's useful to see which options the user may choose.

Index: bsd.options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.options.mk,v
retrieving revision 1.1
diff -u -r1.1 bsd.options.mk
--- bsd.options.mk      30 Jul 2004 20:59:08 -0000      1.1
+++ bsd.options.mk      30 Jul 2004 23:45:33 -0000
@@ -162,3 +162,4 @@
 # options using "pkg_info -Q PKG_OPTIONS <pkg>".
 #
 BUILD_DEFS+=           PKG_OPTIONS
+BUILD_DEFS+=           PKG_SUPPORTED_OPTIONS

For example, building openldap:

[juan@Nocturno][/usr/pkgsrc/databases/openldap]> make
===> Checking for vulnerabilities in openldap-2.2.13
=> Checksum OK for openldap-2.2.13.tgz.
===> Extracting for openldap-2.2.13
===> Required installed package libtool-base>=1.5.2: libtool-base-1.5.6nb1 found
===> Required installed package db4>=4.2.52nb1: db4-4.2.52nb4 found
===> Required installed package libtool-base>=1.5.2nb4: libtool-base-1.5.6nb1
found===> Required installed package ccache-[0-9]*: ccache-2.3nb1 found
==========================================================================
The following variables will affect the build process of this package,
openldap-2.2.13.  Their current value is shown below:

        * PKG_OPTIONS (defined)
        * PKG_SUPPORTED_OPTIONS = dynamic kerberos sasl slp
        * SSLBASE (defined)

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
===> Patching for openldap-2.2.13
[...]

What do you think?


--Signature=_Sat__31_Jul_2004_01_47_56_+0200_htySI_JI6pClQzkL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFBCt4sypkLYVDran0RAqDjAJ4wBmUaNM/Pq7Mt2dcxfWmxEEks/gCcDcIw
b+JHyOaAwM/VNX4jQW89P0k=
=zYrK
-----END PGP SIGNATURE-----

--Signature=_Sat__31_Jul_2004_01_47_56_+0200_htySI_JI6pClQzkL--