rpms/ORBit2/devel ORBit2-2.14.3-non-local-ipv4.patch, NONE, 1.1 ORBit2.spec, 1.44, 1.45

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Sep 10 18:48:42 UTC 2006


Author: mclasen

Update of /cvs/dist/rpms/ORBit2/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24811

Modified Files:
	ORBit2.spec 
Added Files:
	ORBit2-2.14.3-non-local-ipv4.patch 
Log Message:
fix non-local IPv4


ORBit2-2.14.3-non-local-ipv4.patch:
 linc-connection.c |   36 ------------------------------------
 1 files changed, 36 deletions(-)

--- NEW FILE ORBit2-2.14.3-non-local-ipv4.patch ---
--- ORBit2-2.14.3/linc2/src/linc-connection.c.non-local-ipv4	2006-09-10 14:43:46.000000000 -0400
+++ ORBit2-2.14.3/linc2/src/linc-connection.c	2006-09-10 14:44:00.000000000 -0400
@@ -495,27 +495,6 @@
 	CNX_UNLOCK (cnx);
 }
 
-static unsigned long
-get_inet_addr (const char *str)
-{
-        struct hostent *hp;
-        struct in_addr *addr_ptr;
-        unsigned long addr;
-
-        if (isdigit (*str)) {
-                        addr = inet_addr (str);
-                } else {
-                        if ((hp = gethostbyname (str)) != NULL) {
-
-                                addr_ptr = (struct in_addr *) hp->h_addr;
-
-                                addr = inet_addr (inet_ntoa (*addr_ptr));
-                        }
-                }
-
-        return addr;
-}
-
 static gboolean
 link_connection_do_initiate (LinkConnection        *cnx,
 			     const char            *proto_name,
@@ -535,21 +514,6 @@
 	if (!proto)
 		return FALSE;
 
-	if (host && (strcmp (proto_name, "IPv4") == 0)) {
-		
-		const char *local_host;
-		local_host = link_get_local_hostname ();
-
-		if (strcmp (host, local_host)) {
-			unsigned long inet_addr_host, inet_addr_local_host;
-			inet_addr_host = get_inet_addr (host);
-			inet_addr_local_host = get_inet_addr (local_host);
-
-			if (inet_addr_host != inet_addr_local_host)
-				return FALSE;
-		}
-	}
-
 	saddr = link_protocol_get_sockaddr (
 		proto, host, service, &saddr_len);
 


Index: ORBit2.spec
===================================================================
RCS file: /cvs/dist/rpms/ORBit2/devel/ORBit2.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- ORBit2.spec	5 Sep 2006 18:48:23 -0000	1.44
+++ ORBit2.spec	10 Sep 2006 18:48:40 -0000	1.45
@@ -4,7 +4,7 @@
 Summary: A high-performance CORBA Object Request Broker
 Name: ORBit2
 Version: 2.14.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source: %{name}-%{version}.tar.bz2
 Group: System Environment/Daemons
 License: LGPL/GPL
@@ -19,6 +19,8 @@
 BuildRequires: gtk-doc
 
 Patch0: ORBit2-2.14.3-multilib.patch
+# fixed in upstream cvs
+Patch1: ORBit2-2.14.3-non-local-ipv4.patch
 
 %description
 ORBit is a high-performance CORBA (Common Object Request Broker 
@@ -55,6 +57,7 @@
 %prep
 %setup -q
 %patch0 -p1 -b .multilib
+%patch1 -p1 -b .non-local-ipv4
  
 %build
 ## the shipped libtool is broken wrt. multilib
@@ -127,6 +130,9 @@
 %{_datadir}/gtk-doc
 
 %changelog
+* Sun Sep 10 2006 Matthias Clasen <mclasen at redhat.com> - 2.14.3-3
+- Make non-local IPv4 work again
+
 * Tue Sep  5 2006 Matthias Clasen <mclasen at redhat.com> - 2.14.3-2.fc6
 - Fix remaining multilib issues (#205228)
 




More information about the fedora-cvs-commits mailing list