rpms/loudmouth/devel loudmouth-eai-nodata.patch, NONE, 1.1 loudmouth.spec, 1.35, 1.36

Owen Taylor (otaylor) fedora-extras-commits at redhat.com
Thu Feb 21 19:04:43 UTC 2008


Author: otaylor

Update of /cvs/extras/rpms/loudmouth/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8011

Modified Files:
	loudmouth.spec 
Added Files:
	loudmouth-eai-nodata.patch 
Log Message:
* Thu Feb 21 2008 Owen Taylor <otaylor at redhat.com> - 1.3.3-4
- Fix build with recent GNU libc


loudmouth-eai-nodata.patch:

--- NEW FILE loudmouth-eai-nodata.patch ---
diff -up loudmouth-1.3.3/loudmouth/lm-sock.c.eai-nodata loudmouth-1.3.3/loudmouth/lm-sock.c
--- loudmouth-1.3.3/loudmouth/lm-sock.c.eai-nodata	2008-02-21 13:51:24.000000000 -0500
+++ loudmouth-1.3.3/loudmouth/lm-sock.c	2008-02-21 13:54:10.000000000 -0500
@@ -279,9 +279,14 @@ _lm_sock_addrinfo_get_error_str (int err
 	case EAI_FAIL:     
 		return _("The nameserver encountered errors "
 			 "looking up this address");
+	/* EAI_NODATA is apparently missing on FreeBSD. On recent GNU libc,
+	 * it requires _GNU_SOURCE to be defined; in the unlikely case that
+	 * that GNU libc returns this value we'll return the default message */
+#ifdef EAI_NODATA
 	case EAI_NODATA:   
 		return _("The remote host exists but no address "
 			 "is available");
+#endif
 	case EAI_NONAME:   
 		return _("The remote address is unknown");
 	case EAI_FAMILY:


Index: loudmouth.spec
===================================================================
RCS file: /cvs/extras/rpms/loudmouth/devel/loudmouth.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- loudmouth.spec	20 Feb 2008 21:57:41 -0000	1.35
+++ loudmouth.spec	21 Feb 2008 19:03:59 -0000	1.36
@@ -2,7 +2,7 @@
 
 Name:           loudmouth
 Version:        1.3.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Loudmouth is a Jabber programming library written in C
 
 Group:          System Environment/Libraries
@@ -15,6 +15,8 @@
 Patch1:         %{name}-connect-fail-async.patch
 # http://developer.imendio.com/issues/browse/LM-117
 Patch2:         %{name}-connect-fail-sync.patch
+# http://developer.imendio.com/issues/browse/LM-120
+Patch3:         %{name}-eai-nodata.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -101,6 +103,9 @@
 
 
 %changelog
+* Thu Feb 21 2008 Owen Taylor <otaylor at redhat.com> - 1.3.3-4
+- Fix build with recent GNU libc
+
 * Thu Feb  7 2008 Owen Taylor <otaylor at redhat.com> - 1.3.3-3
 - Add patches fixing reentrancy problems on connection failure
 




More information about the fedora-extras-commits mailing list