rpms/nfs-utils/devel nfs-utils-1.1.3-glibc22.patch, NONE, 1.1 nfs-utils.spec, 1.183, 1.184

Steve Dickson (steved) fedora-extras-commits at redhat.com
Thu Jul 31 09:41:11 UTC 2008


Author: steved

Update of /cvs/pkgs/rpms/nfs-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19611

Modified Files:
	nfs-utils.spec 
Added Files:
	nfs-utils-1.1.3-glibc22.patch 
Log Message:
Mount command did not compile against older glibc versions.


nfs-utils-1.1.3-glibc22.patch:

--- NEW FILE nfs-utils-1.1.3-glibc22.patch ---
commit 2d173a587a7dbee81ffaf246d044f384fb6487c8
Author: Chuck Lever <chuck.lever at oracle.com>
Date:   Thu Jul 31 05:24:18 2008 -0400

    mount.nfs command: old glibc missing some flags
    
    Old versions of glibc (< 2.4) have a getaddrinfo(3) implementation, but
    do not include public definitions of the AI_V4MAPPED, AI_ALL, and
    AI_ADDRCONFIG flags because it was believed that these flags were not
    standardized.  However, these flags have standard definitions both in
    POSIX 1003 and in RFCs, and were thus included in later releases of
    glibc.
    
    To allow the mount.nfs command to build on systems with these older
    versions of glibc, add conditional definitions for these flags in
    utils/mount/network.c.
    
    Signed-off-by: Chuck Lever <chuck.lever at oracle.com>
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/utils/mount/network.c b/utils/mount/network.c
index 75354a7..0023769 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -48,6 +48,24 @@
 #include "mount_constants.h"
 #include "network.h"
 
+/*
+ * Earlier versions of glibc's /usr/include/netdb.h exclude these
+ * definitions because it was thought they were not part of a stable
+ * POSIX standard.  However, they are defined by RFC 2553 and 3493
+ * and in POSIX 1003.1-2001, so these definitions were added in later
+ * versions of netdb.h.
+ */
+#ifndef AI_V4MAPPED
+#define AI_V4MAPPED     0x0008  /* IPv4-mapped addresses are acceptable.  */
+#endif	/* AI_V4MAPPED */
+#ifndef AI_ALL
+#define AI_ALL          0x0010  /* Return both IPv4 and IPv6 addresses.  */
+#endif	/* AI_ALL */
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG   0x0020  /* Use configuration of this host to choose \
+				   returned address type.  */
+#endif	/* AI_ADDRCONFIG */
+
 #define PMAP_TIMEOUT	(10)
 #define CONNECT_TIMEOUT	(20)
 #define MOUNT_TIMEOUT	(30)


Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -r1.183 -r1.184
--- nfs-utils.spec	28 Jul 2008 08:34:41 -0000	1.183
+++ nfs-utils.spec	31 Jul 2008 09:40:41 -0000	1.184
@@ -2,7 +2,7 @@
 Name: nfs-utils
 URL: http://sourceforge.net/projects/nfs
 Version: 1.1.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 1
 
 # group all 32bit related archs
@@ -30,6 +30,8 @@
 Patch90: nfs-utils-1.1.0-mount-fsc.patch
 %endif
 
+Patch100: nfs-utils-1.1.3-glibc22.patch
+
 Group: System Environment/Daemons
 Provides: exportfs    = %{epoch}:%{version}-%{release}
 Provides: nfsstat     = %{epoch}:%{version}-%{release}
@@ -83,6 +85,8 @@
 %patch90 -p1
 %endif
 
+%patch100 -p1
+
 # Remove .orig files
 find . -name "*.orig" | xargs rm -f
 
@@ -241,6 +245,9 @@
 %attr(4755,root,root)   /sbin/umount.nfs4
 
 %changelog
+* Thu Jul 31 2008 Steve Dickson <steved at redhat.com> 1.1.3-2
+- Mount command did not compile against older glibc versions.
+
 * Mon Jul 28 2008 Steve Dickson <steved at redhat.com> 1.1.3-1
 - Updated to latest upstream version: 1.1.3
 




More information about the fedora-extras-commits mailing list