From owner-freebsd-current@FreeBSD.ORG Wed Dec 31 05:34:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B60216A4CE for ; Wed, 31 Dec 2003 05:34:48 -0800 (PST) Received: from cheer.mahoroba.org (flets20-024.kamome.or.jp [218.45.20.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CDE343D2F for ; Wed, 31 Dec 2003 05:34:39 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:HCwe04YbIw9veoifFr5pCAFwQNwde0beund1uhJmsDSlT2KkRhIOOujF5i67ubVu@lyrics-g54.mahoroba.org [IPv6:3ffe:501:185b:8010:207:40ff:fec1:8887]) (user=ume mech=CRAM-MD5 bits=0)hBVDYLaH030293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Dec 2003 22:34:21 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 31 Dec 2003 22:34:21 +0900 Message-ID: From: Hajimu UMEMOTO To: Mark Huizer In-Reply-To: <20031231130800.GB59239@eeyore.local.dohd.org> References: <20031231130800.GB59239@eeyore.local.dohd.org> User-Agent: xcite1.38> Wanderlust/2.11.3 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.2-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cheer.mahoroba.org X-Mailman-Approved-At: Wed, 31 Dec 2003 06:25:42 -0800 cc: freebsd@dohd.org cc: current@freebsd.org Subject: Re: kern.osreldate and EAI_NODATA deprecation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 13:34:48 -0000 Hi, >>>>> On Wed, 31 Dec 2003 14:08:00 +0100 >>>>> Mark Huizer said: freebsd+current> I'm trying to upgrade the port for kaffe-devel, but I run into a problem freebsd+current> related to the changes in netdb.h on October 24th. (EAI_NODATA is freebsd+current> deprecated and is now an alias for EAI_NONAME). I can solve this with an extra patch if osreldate>someversion, but I freebsd+current> don't know how to find what someversion should be. freebsd+current> Was it changed because of that commit, or where can I find the nearest freebsd+current> osreldate change? Though it seems that FreeBSD is 1st runner about this change, the change is not specific to FreeBSD. So, you should distinguish this without FreeBSD specific way. So, I dared to don't bump __FreeBSD_version with this change. How about this patch? Index: libraries/clib/net/InetAddressImpl.c diff -u libraries/clib/net/InetAddressImpl.c.orig libraries/clib/net/InetAddressImpl.c --- libraries/clib/net/InetAddressImpl.c.orig Fri May 16 00:03:16 2003 +++ libraries/clib/net/InetAddressImpl.c Wed Dec 31 22:23:29 2003 @@ -256,7 +256,9 @@ "Unable to contact name server"); break; case EAI_NONAME: +#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME case EAI_NODATA: +#endif postExceptionMessage(&einfo, JAVA_NET(UnknownHostException), "Unknown host: %s", Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/