ports/84780: Update port: sysutils/lookupd fix build on 6.0 pointed by pointyhat
Marcus Grando
marcus at corp.grupos.com.br
Wed Aug 10 21:30:12 UTC 2005
>Number: 84780
>Category: ports
>Synopsis: Update port: sysutils/lookupd fix build on 6.0 pointed by pointyhat
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 10 21:30:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Marcus Grando
>Release: 6.0-BETA2
>Organization:
Grupos Internet S/A
>Environment:
FreeBSD marcus.grupos.com.br 6.0-BETA2 FreeBSD 6.0-BETA2 #3: Wed Aug 10 15:52:23 BRT 2005 root at marcus.grupos.com.br:/usr/obj/usr/src/sys/MARCUS i386
>Description:
- Fix build on 6.0 pointed by pointyhat
Add files:
files/patch-modules::dns::resolv::getaddrinfo.c
files/patch-modules::dns::resolv::res_send.c
Note:
Tested with 6.0 and 5.4
>How-To-Repeat:
>Fix:
diff -ruN lookupd.orig/Makefile lookupd/Makefile
--- lookupd.orig/Makefile Sun Apr 10 18:47:32 2005
+++ lookupd/Makefile Wed Aug 10 17:55:06 2005
@@ -17,6 +17,7 @@
PKGMESSAGE= ${WRKDIR}/pkg-message
STARTUPSCRIPT= ${WRKDIR}/lookupd.sh
+MAKE_ENV= WARNS=0
MAN5= lookupd.conf.5
MAN8= lookupd.8
diff -ruN lookupd.orig/files/patch-modules::dns::resolv::getaddrinfo.c lookupd/files/patch-modules::dns::resolv::getaddrinfo.c
--- lookupd.orig/files/patch-modules::dns::resolv::getaddrinfo.c Wed Dec 31 21:00:00 1969
+++ lookupd/files/patch-modules::dns::resolv::getaddrinfo.c Wed Aug 10 18:08:30 2005
@@ -0,0 +1,18 @@
+--- modules/dns/resolv/getaddrinfo.c.orig Fri Jul 2 15:28:07 2004
++++ modules/dns/resolv/getaddrinfo.c Wed Aug 10 18:07:12 2005
+@@ -339,6 +339,7 @@
+ #define MATCH(x, y, w) \
+ ((x) == (y) || (/*CONSTCOND*/(w) && ((x) == ANY || (y) == ANY)))
+
++#if __FreeBSD_version < 501000
+ char *
+ gai_strerror(ecode)
+ int ecode;
+@@ -351,6 +352,7 @@
+ }
+ return "Unknown error";
+ }
++#endif
+
+ void
+ freeaddrinfo(ai)
diff -ruN lookupd.orig/files/patch-modules::dns::resolv::res_send.c lookupd/files/patch-modules::dns::resolv::res_send.c
--- lookupd.orig/files/patch-modules::dns::resolv::res_send.c Wed Dec 31 21:00:00 1969
+++ lookupd/files/patch-modules::dns::resolv::res_send.c Wed Aug 10 18:09:43 2005
@@ -0,0 +1,20 @@
+--- modules/dns/resolv/res_send.c.orig Fri Jul 2 15:31:44 2004
++++ modules/dns/resolv/res_send.c Wed Aug 10 18:09:22 2005
+@@ -201,7 +201,7 @@
+ if (_res.options & RES_DEBUG) {
+ if (getnameinfo(address, address->sa_len, abuf, sizeof(abuf),
+ pbuf, sizeof(pbuf),
+- NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID) != 0) {
++ NI_NUMERICHOST | NI_NUMERICSERV ) != 0) {
+ strncpy(abuf, "?", sizeof(abuf));
+ strncpy(pbuf, "?", sizeof(pbuf));
+ }
+@@ -475,7 +475,7 @@
+ }
+ Dprint((_res.options & RES_DEBUG) &&
+ getnameinfo(nsap, salen, abuf, sizeof(abuf),
+- NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID) == 0,
++ NULL, 0, NI_NUMERICHOST ) == 0,
+ (stdout, ";; Querying server (# %d) address = %s\n",
+ ns + 1, abuf));
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list