Date: Tue, 15 Feb 2011 14:38:31 GMT From: Yasuhito FUTATSUKI <futatuki@bsdclub.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/154801: enma port dosen't use installed libbind9 Message-ID: <201102151438.p1FEcVnt072454@red.freebsd.org> Resent-Message-ID: <201102151440.p1FEe76S090756@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154801 >Category: ports >Synopsis: enma port dosen't use installed libbind9 >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: Tue Feb 15 14:40:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Yasuhito FUTATSUKI >Release: 8.1-RELEASE-p2 >Organization: DEBUG ( is one of *BSD users groups) >Environment: FreeBSD ns.example.jp 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Mon Dec 20 18:43:19 JST 2010 root@ns.example.jp:/usr/obj/usr/src/sys/GENERIC amd64 >Description: enma port has BUILD_DEPENDS on dns/bind97, but it dosen't use installed library, libbind9.a, then it builds temporary library by using dns/bind97 port tree. In my case, it causes error on "./configure". >How-To-Repeat: cd ${PORTSDIR}/mail/enma && make >Fix: here is diff of port Makefile: Patch attached with submission follows: --- Makefile.dist 2011-02-15 10:48:04.000000000 +0900 +++ Makefile 2011-02-15 23:33:21.000000000 +0900 @@ -14,7 +14,7 @@ MAINTAINER= umq@ueo.co.jp COMMENT= A sender authentication milter supporting SPF and Sender ID -BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/dns/bind97:checksum +BUILD_DEPENDS= ${LOCALBASE}/lib/libbind9.a:${PORTSDIR}/dns/bind97 .if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT) CONF_SUB= ${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample @@ -25,12 +25,9 @@ .endif .endif -BIND_PATH_CMD= cd ${PORTSDIR}/dns/bind97 && ${MAKE} -V WRKSRC -BIND_SRC_DIR= ${BASENAME} $$(${BIND_PATH_CMD}) - HAS_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/man \ - --with-libbind=${WRKSRC}/build/tmp_build + --with-libbind=${PREFIX} USE_RC_SUBR= milter-enma USE_GMAKE= yes LICENSE= BSD @@ -52,14 +49,6 @@ .include "${PORTSDIR}/Mk/bsd.openssl.mk" pre-configure: - cd ${PORTSDIR}/dns/bind97 && ${MAKE} -DBATCH patch && \ - ${LN} -s $$(${BIND_PATH_CMD}) ${WRKSRC}/build && \ - cd ${WRKSRC}/build/$$(${BIND_SRC_DIR}) && \ - ./configure --prefix=${WRKSRC}/build/tmp_build --enable-threads && \ - cd ${WRKSRC}/build/$$(${BIND_SRC_DIR})/lib/dns && \ - ${MAKE} include/dns/enumtype.h include/dns/enumclass.h && \ - cd ${WRKSRC}/build/$$(${BIND_SRC_DIR})/lib/bind9 && \ - ${MAKE} && ${MAKE} install ${REINPLACE_CMD} -e 's/-lbind/-lbind9/' ${WRKSRC}/configure \ ${WRKSRC}/enma/bin/Makefile.in ${WRKSRC}/enma/src/Makefile.in $$(${CONF_SUB}) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102151438.p1FEcVnt072454>