Can't get _IMPLIES to work
Mathieu Arnold
mat at FreeBSD.org
Fri Sep 4 15:22:22 UTC 2015
Hi,
+--On 3 septembre 2015 12:52:56 -0400 Chris Inacio <nacho319 at gmail.com>
wrote:
| I'm having trouble getting the <option>_IMPLIES to function correctly. I
| have been trying to improve a port and add more of the options available
| in the underlying package into the ports/pkg system.
|
| Basically, as a smoke test I attempt to enable "NONIP" without selecting
| "MPLS". NONIP requires MPLS to function. I think I've covered this in
| the NONIP_IMPLIES, but I get configure errors stating that MPLS must be
| enabled.
|
| Here is the Makefile snippet, I've tried a bit of reordering and
| including/removing/moving the ".include <bsd.port.options.mk>"
Could you provide a full Makefile, or a patch to a port, so that I can test
?
For example, using astro/osmium, I can test that IMPLIES works correctly,
it has DOXYGEN_IMPLIES=DOCS, and:
$ make -V PLIST_SUB:MPORTDOCS*
PORTDOCS=""
$ make -V PLIST_SUB:MPORTDOCS* WITHOUT=DOCS
PORTDOCS="@comment "
$ make -V PLIST_SUB:MPORTDOCS* WITHOUT=DOCS WITH=DOXYGEN
PORTDOCS=""
DOCS is re-activated by WITH=DOXYGEN.
Or audio/alsa-plugin that has JACK_IMPLIES=SAMPLERATE:
$ make -VCONFIGURE_ARGS:M*jack* -V CONFIGURE_ARGS:M*samplerate*
--disable-jack
--disable-samplerate
$ make -VCONFIGURE_ARGS:M*jack* -V CONFIGURE_ARGS:M*samplerate*
WITH=SAMPLERATE
--disable-jack
--enable-samplerate
$ make -VCONFIGURE_ARGS:M*jack* -V CONFIGURE_ARGS:M*samplerate* WITH=JACK
--enable-jack
--enable-samplerate
Activating jack also activates samplerate.
So, it seems to work correctly for me. Does it not for you ?
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150904/5e728965/attachment.bin>
More information about the freebsd-ports
mailing list