Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 18:49:28 -0800 (PST)
From:      Doug Barton <DougB@FreeBSD.org>
To:        Sergey Matveychuk <sem@ciam.ru>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: mozilla and bind
Message-ID:  <20040319184525.E85086@qbhto.arg>
In-Reply-To: <405B9799.5000008@ciam.ru>
References:  <405B9799.5000008@ciam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Mar 2004, Sergey Matveychuk wrote:

> As claimed on the last commit:
> [Bind installed with PORT_REPLACES_BASE_BIND defined] overwrites
> /usr/include/netdb.h and give a wrong definition for
> `h_errno' when _REENTRANT is defined. This causes link errors where
> `__h_errno' is undefined.
>
> But is there any work around? It looks like I have no chance to install
> mozilla. :(


Please try the following, and let me know if it works:

1. pkg_delete bind8*
2. cd /usr/ && mv include include-old
3. cd /usr/src && make includes
4. cd /usr/ports/dns/bind8
5. Apply the following patch
6. make clean && make -DPORT_REPLACES_BASE_BIND8 install

Then test the mozilla build. I have every reason to believe this should
fix you up, if it does, please let me know and I'll commit this fix to
the bind8 and bind84 ports.

Good luck,

Doug




Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/dns/bind8/Makefile,v
retrieving revision 1.48
diff -u -r1.48 Makefile
--- Makefile	27 Nov 2003 01:47:29 -0000	1.48
+++ Makefile	20 Mar 2004 02:43:08 -0000
@@ -15,7 +15,6 @@
 CATEGORIES?=	dns net
 MASTER_SITES=	${MASTER_SITE_ISC}
 MASTER_SITE_SUBDIR=	bind/src/${PORTVERSION}
-
 DISTFILES=	bind-src.tar.gz bind-doc.tar.gz
 DIST_SUBDIR=	bind-${PORTVERSION}

@@ -26,15 +25,19 @@
 PKGNAMESUFFIX=	-base
 PREFIX=		/usr
 BIND_DESTETC=	/etc/namedb
-INCLUDE_PATH=	include
-PLIST_SUB=	INCLUDE_PATH=${INCLUDE_PATH} FAKE_SBIN=sbin
+PLIST_SUB=	FAKE_SBIN=sbin
 .else
 BIND_DESTETC=	${PREFIX}/etc
-INCLUDE_PATH=	include/bind
-PLIST_SUB=	INCLUDE_PATH=${INCLUDE_PATH} FAKE_SBIN=bin
+PLIST_SUB=	FAKE_SBIN=bin
 .endif

-WRKSRC=		${WRKDIR}/src
+.if defined(PORT_REPLACES_BASE_BIND8_INCLUDES)
+INCLUDE_PATH=	include
+PLIST_SUB+=	INCLUDE_PATH=${INCLUDE_PATH}
+.else
+INCLUDE_PATH=	include/bind
+PLIST_SUB+=	INCLUDE_PATH=${INCLUDE_PATH}
+.endif

 MAN1=		dig.1 dnskeygen.1 dnsquery.1 host.1
 MAN3=		getaddrinfo.3 gethostbyname.3 getipnodebyname.3 getnetent.3 \
@@ -47,6 +50,8 @@
 PATCH_ARGS=	-s -d ${WRKDIR}
 PATCH_DIST_ARGS=	-s -d ${WRKDIR}

+WRKSRC=		${WRKDIR}/src
+
 post-patch:
 	@${SED} -e "s#\'DESTETC=.*#'DESTETC=${BIND_DESTETC}'#" \
 		-e "s#-O2 -g#${CFLAGS}#" \
@@ -61,12 +66,13 @@
 	@${MV} ${WRKSRC}/bin/dnskeygen/Makefile.sed \
 		${WRKSRC}/bin/dnskeygen/Makefile

-.if defined(PORT_REPLACES_BASE_BIND8)
-	@${SED} -e "s#\'DESTINC=.*#'DESTINC=${PREFIX}/include'#" \
+	@${SED} -e "s#\'DESTINC=.*#'DESTINC=${PREFIX}/${INCLUDE_PATH}'#" \
 		${WRKSRC}/port/freebsd/Makefile.set > \
 		${WRKSRC}/port/freebsd/Makefile.set.sed
 	@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
 		${WRKSRC}/port/freebsd/Makefile.set
+
+.if defined(PORT_REPLACES_BASE_BIND8)
 .for dir in nslookup nsupdate
 	@${SED} -e "s#{DESTBIN}#{DESTSBIN}#g" \
 	${WRKSRC}/bin/${dir}/Makefile > ${WRKSRC}/bin/${dir}/Makefile.sed
@@ -74,10 +80,10 @@
 .endfor
 .endif

-.for file in named.conf.5 named.8
+.for f in named.conf.5 named.8
 	@${SED} -e "s#/etc/named.conf#${BIND_DESTETC}/named.conf#g" \
-		${WRKDIR}/doc/man/${file} > ${WRKDIR}/doc/man/${file}.sed
-	@${MV} ${WRKDIR}/doc/man/${file}.sed ${WRKDIR}/doc/man/${file}
+		${WRKDIR}/doc/man/${f} > ${WRKDIR}/doc/man/${f}.sed
+	@${MV} ${WRKDIR}/doc/man/${f}.sed ${WRKDIR}/doc/man/${f}
 .endfor

 post-install:
@@ -91,11 +97,11 @@
 	@${MKDIR} ${DOCSDIR}/html ${DOCSDIR}/misc
 	${INSTALL_DATA} ${WRKDIR}/doc/html/*.html ${DOCSDIR}/html
 	${CP} -Rp ${WRKDIR}/src/conf ${DOCSDIR}
-.for file in CHANGES DNSSEC LICENSE LICENSE_RSA README SUPPORT TODO
-	${INSTALL_DATA} ${WRKDIR}/src/${file} ${DOCSDIR}
+.for f in CHANGES DNSSEC LICENSE LICENSE_RSA README SUPPORT TODO
+	${INSTALL_DATA} ${WRKDIR}/src/${f} ${DOCSDIR}
 .endfor
-.for file in DynamicUpdate FAQ.* *.txt
-	${INSTALL_DATA} ${WRKDIR}/doc/misc/${file} ${DOCSDIR}/misc
+.for f in DynamicUpdate FAQ.* *.txt
+	${INSTALL_DATA} ${WRKDIR}/doc/misc/${f} ${DOCSDIR}/misc
 .endfor
 .endif



-- 

    This .signature sanitized for your protection



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