From owner-freebsd-ports@FreeBSD.ORG Fri Mar 19 18:49:30 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2961616A4CE for ; Fri, 19 Mar 2004 18:49:30 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16D7F43D45 for ; Fri, 19 Mar 2004 18:49:30 -0800 (PST) (envelope-from DougB@freebsd.org) Received: from dougb.net ([24.130.160.161]) by comcast.net (rwcrmhc13) with SMTP id <2004032002492901500mlhrle>; Sat, 20 Mar 2004 02:49:29 +0000 Date: Fri, 19 Mar 2004 18:49:28 -0800 (PST) From: Doug Barton To: Sergey Matveychuk In-Reply-To: <405B9799.5000008@ciam.ru> Message-ID: <20040319184525.E85086@qbhto.arg> References: <405B9799.5000008@ciam.ru> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "ports@freebsd.org" Subject: Re: mozilla and bind X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 02:49:30 -0000 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