Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2010 04:30:27 GMT
From:      elij <elij.mx@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153165: port dns/ldns fails to build with config (EXAMPLES=on and GOST=off)
Message-ID:  <201012150430.oBF4URQd040341@red.freebsd.org>
Resent-Message-ID: <201012150440.oBF4e8of094512@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153165
>Category:       ports
>Synopsis:       port dns/ldns fails to build with config (EXAMPLES=on and GOST=off)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 15 04:40:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     elij
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD fbox.wundrd.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When using the configuration options EXAMPLES=on and GOST=off, the port will not build.
This is due to the 'post-configure' section in the WITH_EXAMPLES if block.

post-configure:
        @(cd ${WRKSRC}/examples; ./configure --prefix=${PREFIX} \
                --infodir=${PREFIX}/${INFO_PATH} --mandir=${MANPREFIX}/man \
                --build=${CONFIGURE_TARGET})

This section does not use the CONFIGURE_ARGS defined for the else block of WITH_GOST.

.if defined(WITH_GOST)
BUILD_DEPENDS+= openssl>=1.0:${PORTSDIR}/security/openssl
.else
CONFIGURE_ARGS+=        --disable-gost
.endif

If I manually edit the makefile and add '--disable-gost' to the post-configure block above, I can successfully build the port with EXAMPLES enabled and GOST disabled. I am not, however, sure how to include CONFIGURE_ARGS in the post-configure block appropriately (due to my inexperience with the ports makefile system).
>How-To-Repeat:
cd /usr/ports/dns/ldns
make config
# enable EXAMPLES
# disable GOST
make
>Fix:
Add CONFIGURE_ARGS to the post-configure block in the WITH_EXAMPLES section. The '--disable-gost' configuration argument is not being propagated to the nested configure invocation.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012150430.oBF4URQd040341>