Date: Mon, 24 Feb 2014 16:13:31 +0100 From: Mathieu Arnold <mat@FreeBSD.org> To: Eygene Ryabinkin <rea@freebsd.org>, Mathieu Arnold <mat@FreeBSD.org> Cc: apache@freebsd.org, portmgr@freebsd.org Subject: Re: Patch for devel/apr1 Message-ID: <2C491D88016B73ABEE3549BF@ogg.in.absolight.net> In-Reply-To: <si3TtFF7heojydymL3/cz%2BBr880@W4hAcbyY3boCl2ecg4/u9JA8hSY> References: <W/LXQdmArDuvEZINc6uIco1Q77Q@DMnR65URhR2fwN60Ud5mwsygncU> <rPjS0dCkOXQwLs9s6PofV/p/GT4@Edl7HbwHujl6CRBF88MhHM/peE4> <d73YgQvFILY2/L/3172O%2BSqT8sQ@Edl7HbwHujl6CRBF88MhHM/peE4> <329E85FD56E28E496CF7A8D1@ogg.in.absolight.net> <si3TtFF7heojydymL3/cz%2BBr880@W4hAcbyY3boCl2ecg4/u9JA8hSY> <F5D7C8BA190F257D33F0ED53@ogg.in.absolight.net> <si3TtFF7heojydymL3/cz%2BBr880@W4hAcbyY3boCl2ecg4/u9JA8hSY>
next in thread | previous in thread | raw e-mail | index | archive | help
+--On 24 f=C3=A9vrier 2014 18:59:17 +0400 Eygene Ryabinkin = <rea@freebsd.org> wrote: | It says "OPTIONS_DEFINE contains a list of OPTIONS to be used. These | are independent of each other and are not grouped". Yes, OPTIONS_DEFINE will get you a list of options to choose from that are not grouped and can be used in any combinations. Some ports, like apr1, prefer to group their options regarding to what they do. You can't put an option in OPTIONS_DEFINE and in some other group, it would not end up doing what you would have wanted to start with. |> If you need to globally set some options, you should put things like = this |> in your make.conf: |>=20 |> OPTIONS_SET=3D LDAP |>=20 |> Or like antoine said, if you need them on the command line, WITH=3DLDAP |=20 | I am setting per-port options via | {{{ |# Apache portable library | .if ${.CURDIR:M/usr/ports/devel/apr1} | BATCH=3Dyes | WITH_THREADS=3Dyes | WITHOUT_IPV6=3Dyes | WITH_BDB=3Dyes | WITH_GDBM=3Dyes | WITHOUT_LDAP=3Dyes | WITHOUT_MYSQL=3Dyes | WITHOUT_NDBM=3Dyes | WITHOUT_PGSQL=3Dyes | WITHOUT_SQLITE=3Dyes | WITH_DEVRANDOM=3Dyes | .endif | }}} |=20 | Probably it should be changed to 'WITH=3DTHREADS BDB GDBM ...', but why | WITH_/WITHOUT_ knobs were eliminated? I have over 100 systems where | I have these settings for over than 200 ports on each. Of course, I can | automate that, but what was the reason? What you need to do in that case is put in your make.conf: devel_apr1_SET=3D THREADS BDB GDBM DEVRANDOM devel_apr1_UNSET=3D IPV6 LDAP MYSQL NDBM PGSQL SQLITE You can get the first part for any port by running make -V CONFIGURE_NAME from the ports directory. As for the reason, I don't remember, I think it was because it was a pain to maintain, forcing you to make things like what you did. --=20 Mathieu Arnold
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C491D88016B73ABEE3549BF>