Can't build ruby20 on -current: it doesn't honor WITHOUT_CDDL=yes

Andrey Chernov ache at freebsd.org
Thu Oct 30 10:26:19 UTC 2014


On 30.10.2014 13:17, Baptiste Daroussin wrote:
> On Thu, Oct 30, 2014 at 01:11:33PM +0300, Andrey Chernov wrote:
>> Hi.
>> I disable zfs and dtrace on my machine using WITHOUT_CDDL=yes in
>> /etc/src.conf
>> ryby20 port throw this error:
>> ...
>> checking for valgrind/memcheck.h... no
>> checking for strip... strip
>> configure: error: dtrace(1) is missing
>> ===>  Script "configure" failed unexpectedly.
>>
>> I see you have sophisticated check depending on OS version for
>> CONFIGURE_ARGS+=        --enable-dtrace
>> IMHO, it should be replaced to test dtrace binary presence instead.
>>
> 
> To be previse the port should not care about WITHOUT_CDDL :) but it should
> detect if the host has dtrace or note, probably a
> .if exists(/usr/sbin/dtrace)
> CONFIGURE_ARGS+= --enable-dtrace
> .endif
> 
> Should do the trick (to be tested of course :)

Yes, the thing
.if exists(/usr/sbin/dtrace)
CONFIGURE_ARGS+=        --enable-dtrace
.else
CONFIGURE_ARGS+=        --disable-dtrace
.endif
works (at least for no dtrace case)

-- 
http://ache.vniz.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20141030/8b889fa8/attachment.sig>


More information about the freebsd-ports mailing list