ports/69941: ripe-whois doesn't work without IPv6

Lars Erik Gullerud lerik at nolink.net
Thu Aug 5 16:10:23 UTC 2004


The following reply was made to PR ports/69941; it has been noted by GNATS.

From: Lars Erik Gullerud <lerik at nolink.net>
To: freebsd-gnats-submit at freebsd.org, jc at minjust.gov.ua
Cc:  
Subject: Re: ports/69941: ripe-whois doesn't work without IPv6
Date: Thu, 05 Aug 2004 18:02:43 +0200

 --=-0SJsHQsa7TbOZcTR5wOz
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 The following patch seems to resolve this issue, tested on 4.10-RELEASE
 compiled without INET6. Also bump portrevision.
 
 Regards,
 Lars Erik
 
 
 
 --=-0SJsHQsa7TbOZcTR5wOz
 Content-Disposition: attachment; filename=ripe-whois.patch.txt
 Content-Type: text/plain; name=ripe-whois.patch.txt; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 diff -ruN /usr/ports/net/ripe-whois/Makefile ./Makefile
 --- /usr/ports/net/ripe-whois/Makefile	Wed Feb 25 22:50:53 2004
 +++ ./Makefile	Thu Aug  5 17:15:15 2004
 @@ -7,6 +7,7 @@
  
  PORTNAME=	ripe-whois
  PORTVERSION=	3.1.1v6
 +PORTREVISION=	1
  CATEGORIES=	net ipv6
  MASTER_SITES=	ftp://ftp.ripe.net/tools/
  
 diff -ruN /usr/ports/net/ripe-whois/files/patch-whois3.c ./files/patch-whois3.c
 --- /usr/ports/net/ripe-whois/files/patch-whois3.c	Thu Jan  1 01:00:00 1970
 +++ ./files/patch-whois3.c	Thu Aug  5 17:14:53 2004
 @@ -0,0 +1,16 @@
 +--- whois3.c.orig	Thu Aug  5 16:41:00 2004
 ++++ whois3.c	Thu Aug  5 16:59:16 2004
 +@@ -130,7 +130,12 @@
 + 	/* create the socket */
 + 	fd = socket(dest.ss_family, SOCK_STREAM, 0);
 + 	if (fd < 0)
 +-	    fatal("cannot create the socket: %s", strerror(errno));
 ++	{
 ++	    if (errno == EPROTONOSUPPORT)
 ++    		continue;
 ++	    else
 ++	    	fatal("cannot create the socket: %s", strerror(errno));
 ++	}
 + 
 + 	/* perform the connection */
 + 	err = connect(fd, (struct sockaddr *) &dest, destlen);
 
 --=-0SJsHQsa7TbOZcTR5wOz--
 



More information about the freebsd-ports-bugs mailing list