rpms/net-snmp/devel net-snmp-5.4.1-config_libdir.patch, NONE, 1.1 net-snmp-5.4.1-hostname.patch, NONE, 1.1 net-snmp-5.4.1-pie.patch, NONE, 1.1 net-snmp-5.4.1-shared-ip.patch, NONE, 1.1 net-snmp-5.4.1-strange_libpath.patch, NONE, 1.1 .cvsignore, 1.22, 1.23 net-snmp.spec, 1.125, 1.126 sources, 1.22, 1.23 net-snmp-5.0.6-libtool.patch, 1.1, NONE net-snmp-5.1.1-ipAdEntIfIndex.patch, 1.2, NONE net-snmp-5.1.1-pie.patch, 1.1, NONE net-snmp-5.2.1-typeclash.diff, 1.1, NONE net-snmp-5.3.1-mib-option.patch, 1.1, NONE net-snmp-5.3.1-shared-ip.patch, 1.1, NONE net-snmp-5.3.1.pre2-config.patch, 1.1, NONE net-snmp-5.4-config_libdir.patch, 1.1, NONE net-snmp-5.4-free.patch, 1.1, NONE net-snmp-5.4-hostname.patch, 1.1, NONE net-snmp-5.4-if_addr.patch, 1.1, NONE net-snmp-5.4-ip-addr-route-leaks.patch, 1.1, NONE net-snmp-5.4-snmpassert.patch, 1.1, NONE net-snmp-5.4-strange_libpath.patch, 1.1, NONE net-snmp-5.4-tcpConn-tcp6-fopen.patch, 1.1, NONE net-snmp-5.4-transport-leak.patch, 1.1, NONE net-snmp-5.4-udp-endpoint.patch, 1.1, NONE

Jan Šafránek (jsafrane) fedora-extras-commits at redhat.com
Tue Aug 7 12:34:08 UTC 2007


Author: jsafrane

Update of /cvs/pkgs/rpms/net-snmp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7073

Modified Files:
	.cvsignore net-snmp.spec sources 
Added Files:
	net-snmp-5.4.1-config_libdir.patch 
	net-snmp-5.4.1-hostname.patch net-snmp-5.4.1-pie.patch 
	net-snmp-5.4.1-shared-ip.patch 
	net-snmp-5.4.1-strange_libpath.patch 
Removed Files:
	net-snmp-5.0.6-libtool.patch 
	net-snmp-5.1.1-ipAdEntIfIndex.patch net-snmp-5.1.1-pie.patch 
	net-snmp-5.2.1-typeclash.diff net-snmp-5.3.1-mib-option.patch 
	net-snmp-5.3.1-shared-ip.patch 
	net-snmp-5.3.1.pre2-config.patch 
	net-snmp-5.4-config_libdir.patch net-snmp-5.4-free.patch 
	net-snmp-5.4-hostname.patch net-snmp-5.4-if_addr.patch 
	net-snmp-5.4-ip-addr-route-leaks.patch 
	net-snmp-5.4-snmpassert.patch 
	net-snmp-5.4-strange_libpath.patch 
	net-snmp-5.4-tcpConn-tcp6-fopen.patch 
	net-snmp-5.4-transport-leak.patch 
	net-snmp-5.4-udp-endpoint.patch 
Log Message:
net-snmp-5.4.1 integrated

net-snmp-5.4.1-config_libdir.patch:

--- NEW FILE net-snmp-5.4.1-config_libdir.patch ---
--- net-snmp-5.4/configure.libdir	2006-11-27 14:27:52.000000000 +0100
+++ net-snmp-5.4/configure	2006-11-27 14:31:34.000000000 +0100
@@ -5161,7 +5161,7 @@
       # Let's accept both of them until this is cleared up.
       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
       lt_cv_file_magic_cmd=/usr/bin/file
-      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      lt_cv_file_magic_test_file=`echo $LIBDIR/libc.so.*`
       ;;
     esac
   else
@@ -5178,15 +5178,15 @@
   case $host_cpu in
   ia64*)
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
-    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+    lt_cv_file_magic_test_file=$LIBDIR/hpux32/libc.so
     ;;
   hppa*64*)
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
-    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+    lt_cv_file_magic_test_file=$LIBDIR/pa20_64/libc.sl
     ;;
   *)
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
-    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+    lt_cv_file_magic_test_file=$LIBDIR/libc.sl
     ;;
   esac
   ;;
@@ -5222,7 +5222,7 @@
 newos6*)
   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   lt_cv_file_magic_cmd=/usr/bin/file
-  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  lt_cv_file_magic_test_file=$LIBDIR/libnls.so
   ;;
 
 nto-qnx*)
@@ -5249,7 +5249,7 @@
   case $host_vendor in
   motorola)
     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
-    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    lt_cv_file_magic_test_file=`echo $LIBDIR/libc.so*`
     ;;
   ncr)
     lt_cv_deplibs_check_method=pass_all
@@ -8761,13 +8761,13 @@
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+if test -z "$aix_libpath"; then aix_libpath="$LIBDIR:/lib"; fi
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
        else
 	if test "$host_cpu" = ia64; then
-	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+	  hardcode_libdir_flag_spec='${wl}-R $libdir:$LIBDIR:/lib'
 	  allow_undefined_flag="-z nodefs"
 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 	else
@@ -8822,7 +8822,7 @@
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+if test -z "$aix_libpath"; then aix_libpath="$LIBDIR:/lib"; fi
 
 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 	  # Warning - without using the other run time loading flags,
@@ -8936,7 +8936,7 @@
     # does not break anything, and helps significantly (at the cost of a little
     # extra space).
     freebsd2.2*)
-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags $LIBDIR/c++rt0.o'
       hardcode_libdir_flag_spec='-R$libdir'
       hardcode_direct=yes
       hardcode_shlibpath_var=no
@@ -9504,7 +9504,7 @@
 shlibpath_overrides_runpath=unknown
 version_type=none
 dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_dlsearch_path_spec="/lib $LIBDIR"

 if test "$GCC" = yes; then
   case $host_os in
@@ -9363,7 +9363,7 @@
     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   fi
 else
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+  sys_lib_search_path_spec="/lib $LIBDIR /usr/local/lib"
 fi
 need_lib_prefix=unknown
 hardcode_into_libs=no

net-snmp-5.4.1-hostname.patch:

--- NEW FILE net-snmp-5.4.1-hostname.patch ---
--- net-snmp-5.4/snmplib/snmpUDPDomain.c.orig	2006-09-20 01:42:17.000000000 +0200
+++ net-snmp-5.4/snmplib/snmpUDPDomain.c	2007-05-03 12:17:30.000000000 +0200
@@ -87,6 +87,7 @@
 netsnmp_udp_fmtaddr(netsnmp_transport *t, void *data, int len)
 {
     netsnmp_udp_addr_pair *addr_pair = NULL;
+    struct hostent *host;
 
     if (data != NULL && len == sizeof(netsnmp_udp_addr_pair)) {
 	addr_pair = (netsnmp_udp_addr_pair *) data;
@@ -104,6 +105,10 @@
             return strdup("UDP: unknown");
         }
 
+        if ( t && t->flags & NETSNMP_TRANSPORT_FLAG_HOSTNAME ) {
+            host = gethostbyaddr((char *)&to->sin_addr, 4, AF_INET);
+            return (host ? strdup(host->h_name) : NULL);
+        }
         sprintf(tmp, "UDP: [%s]:%hu",
                 inet_ntoa(to->sin_addr), ntohs(to->sin_port));
         return strdup(tmp);
--- net-snmp-5.3.1/include/net-snmp/library/snmp_transport.h.orig	2005-09-15 15:46:58.000000000 +0200
+++ net-snmp-5.3.1/include/net-snmp/library/snmp_transport.h	2007-05-02 17:21:30.000000000 +0200
@@ -19,6 +19,7 @@
 #define		NETSNMP_TRANSPORT_FLAG_STREAM	0x01
 #define		NETSNMP_TRANSPORT_FLAG_LISTEN	0x02
 #define		NETSNMP_TRANSPORT_FLAG_TUNNELED	0x04
+#define 	NETSNMP_TRANSPORT_FLAG_HOSTNAME 0x80  /* for fmtaddr hook */
 
 /*  The standard SNMP domains.  */
 
--- net-snmp-5.4.1/apps/snmptrapd_log.c.orig	2007-05-31 16:39:14.000000000 +0200
+++ net-snmp-5.4.1/apps/snmptrapd_log.c	2007-08-07 13:46:40.000000000 +0200
@@ -626,6 +626,8 @@ realloc_handle_ip_fmt(u_char ** buf, siz
     char            fmt_cmd = options->cmd;     /* what we're formatting */
     u_char         *temp_buf = NULL;
     size_t          temp_buf_len = 64, temp_out_len = 0;
+    char           *tstr;
+    unsigned int    oflags;
 
     if ((temp_buf = calloc(temp_buf_len, 1)) == NULL) {
         return 0;
@@ -681,130 +683,59 @@ realloc_handle_ip_fmt(u_char ** buf, siz
          * Write the numerical transport information.  
          */
         if (transport != NULL && transport->f_fmtaddr != NULL) {
-            char           *tstr =
-                transport->f_fmtaddr(transport, pdu->transport_data,
-                                     pdu->transport_data_length);
-            if (!snmp_strcat
-                (&temp_buf, &temp_buf_len, &temp_out_len, 1, (u_char *)tstr)) {
-                if (tstr != NULL) {
-                    free(tstr);
-                }
-                if (temp_buf != NULL) {
-                    free(temp_buf);
-                }
+            oflags = transport->flags;
+            transport->flags &= ~NETSNMP_TRANSPORT_FLAG_HOSTNAME;
+            tstr = transport->f_fmtaddr(transport, pdu->transport_data,
+                                        pdu->transport_data_length);
+            transport->flags = oflags;
+
+            if (!tstr) goto noip;
+            if (!snmp_strcat(&temp_buf, &temp_buf_len, &temp_out_len,
+                             1, (u_char *)tstr)) {
+                SNMP_FREE(temp_buf);
+                SNMP_FREE(tstr);
                 return 0;
             }
-            if (tstr != NULL) {
-                free(tstr);
-            }
+            SNMP_FREE(tstr);
         } else {
-            if (!snmp_strcat
-                (&temp_buf, &temp_buf_len, &temp_out_len, 1,
-                 (const u_char*)"<UNKNOWN>")) {
-                if (temp_buf != NULL) {
-                    free(temp_buf);
-                }
+noip:
+            if (!snmp_strcat(&temp_buf, &temp_buf_len, &temp_out_len, 1,
+                             (const u_char*)"<UNKNOWN>")) {
+                SNMP_FREE(temp_buf);
                 return 0;
-            }
+             }
         }
         break;
 
-        /*
-         * Write a host name.  
-         */
     case CHR_PDU_NAME:
         /*
-         * Right, apparently a name lookup is wanted.  This is only reasonable
-         * for the UDP and TCP transport domains (we don't want to try to be
-         * too clever here).  
+         * Try to convert the numerical transport information
+         *  into a hostname.  Or rather, have the transport-specific
+         *  address formatting routine do this.
+         * Otherwise falls back to the numeric address format.
          */
-#ifdef NETSNMP_TRANSPORT_TCP_DOMAIN
-        if (transport != NULL && (transport->domain == netsnmpUDPDomain ||
-                                  transport->domain ==
-                                  netsnmp_snmpTCPDomain)) {
-#else
-        if (transport != NULL && transport->domain == netsnmpUDPDomain) {
-#endif
-            /*
-             * This is kind of bletcherous -- it breaks the opacity of
-             * transport_data but never mind -- the alternative is a lot of
-             * munging strings from f_fmtaddr.  
-             */
-typedef struct netsnmp_udp_addr_pair_s {   /* From snmpUDPDomain.c */
-    struct sockaddr_in remote_addr;
-    struct in_addr local_addr;
-} netsnmp_udp_addr_pair;
-
-            netsnmp_udp_addr_pair *addr =
-                (netsnmp_udp_addr_pair *) pdu->transport_data;
-            if (addr != NULL
-                && pdu->transport_data_length ==
-                sizeof(netsnmp_udp_addr_pair)) {
-                if (!netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID, 
-                                            NETSNMP_DS_APP_NUMERIC_IP)) {
-                    host =
-                        gethostbyaddr((char *) &(addr->remote_addr.sin_addr),
-                                      sizeof(struct in_addr), AF_INET);
-                }
-                if (host != NULL) {
-                    if (!snmp_strcat
-                        (&temp_buf, &temp_buf_len, &temp_out_len, 1,
-                         (u_char *)host->h_name)) {
-                        if (temp_buf != NULL) {
-                            free(temp_buf);
-                        }
-                        return 0;
-                    }
-                } else {
-                    if (!snmp_strcat
-                        (&temp_buf, &temp_buf_len, &temp_out_len, 1,
-                         (u_char *)inet_ntoa(addr->remote_addr.sin_addr))) {
-                        if (temp_buf != NULL) {
-                            free(temp_buf);
-                        }
-                        return 0;
-                    }
-                }
-            } else {
-                if (!snmp_strcat
-                    (&temp_buf, &temp_buf_len, &temp_out_len, 1,
-                     (const u_char*)"<UNKNOWN>")) {
-                    if (temp_buf != NULL) {
-                        free(temp_buf);
-                    }
-                    return 0;
-                }
-            }
-        } else if (transport != NULL && transport->f_fmtaddr != NULL) {
-            /*
-             * Some other domain for which we do not know how to do a name
-             * lookup.  Fall back to the formatted transport address.  
-             */
-            char           *tstr =
-                transport->f_fmtaddr(transport, pdu->transport_data,
-                                     pdu->transport_data_length);
-            if (!snmp_strcat
-                (&temp_buf, &temp_buf_len, &temp_out_len, 1, (u_char *)tstr)) {
-                if (tstr != NULL) {
-                    free(tstr);
-                }
-                if (temp_buf != NULL) {
-                    free(temp_buf);
-                }
+        if (transport != NULL && transport->f_fmtaddr != NULL) {
+            oflags = transport->flags;
+            if (!netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID,
+                                        NETSNMP_DS_APP_NUMERIC_IP))
+                transport->flags |= NETSNMP_TRANSPORT_FLAG_HOSTNAME;
+            tstr = transport->f_fmtaddr(transport, pdu->transport_data,
+                                        pdu->transport_data_length);
+            transport->flags = oflags;
+
+            if (!tstr) goto nohost;
+            if (!snmp_strcat(&temp_buf, &temp_buf_len, &temp_out_len,
+                             1, (u_char *)tstr)) {
+                SNMP_FREE(temp_buf);
+                SNMP_FREE(tstr);
                 return 0;
             }
-            if (tstr != NULL) {
-                free(tstr);
-            }
-        } else {
-            /*
-             * We are kind of stuck!  
-             */
+            SNMP_FREE(tstr);
+       } else {
+nohost:
             if (!snmp_strcat(&temp_buf, &temp_buf_len, &temp_out_len, 1,
                              (const u_char*)"<UNKNOWN>")) {
-                if (temp_buf != NULL) {
-                    free(temp_buf);
-                }
+                SNMP_FREE(temp_buf);
                 return 0;
             }
         }

net-snmp-5.4.1-pie.patch:

--- NEW FILE net-snmp-5.4.1-pie.patch ---
--- net-snmp-5.4.1/apps/Makefile.in.orig	2007-07-05 01:26:56.000000000 +0200
+++ net-snmp-5.4.1/apps/Makefile.in	2007-08-07 11:05:41.000000000 +0200
@@ -115,7 +115,7 @@ snmptest$(EXEEXT):    snmptest.$(OSUFFIX
 	$(LINK) ${CFLAGS} -o $@ snmptest.$(OSUFFIX) $(LOCAL_LIBS) ${LDFLAGS} ${LIBS} 
 
 snmptrapd$(EXEEXT):    $(TRAPD_OBJECTS) $(USETRAPLIBS) $(INSTALLLIBS)
-	$(LINK) ${CFLAGS} -o $@ $(TRAPD_OBJECTS) $(INSTALLLIBS) $(LOCAL_LIBS) ${LDFLAGS} ${TRAPLIBS}
+	$(LINK) ${CFLAGS} -o $@ -pie $(TRAPD_OBJECTS) $(INSTALLLIBS) $(LOCAL_LIBS) ${LDFLAGS} ${TRAPLIBS}
 
 snmptrap$(EXEEXT):    snmptrap.$(OSUFFIX) $(USELIBS)
 	$(LINK) ${CFLAGS} -o $@ snmptrap.$(OSUFFIX) $(LOCAL_LIBS) ${LDFLAGS} ${LIBS} 
--- net-snmp-5.4.1/agent/Makefile.in.orig	2007-07-05 01:26:56.000000000 +0200
+++ net-snmp-5.4.1/agent/Makefile.in	2007-08-07 11:05:19.000000000 +0200
@@ -139,7 +139,7 @@ getmibstat.o: mibgroup/kernel_sunos5.c
 	$(CC) $(CFLAGS) -o $@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? 
 
 snmpd$(EXEEXT):	${LAGENTOBJS} $(USELIBS) $(AGENTLIB) $(HELPERLIB) $(MIBLIB) $(LIBTARG) 
-	$(LINK) $(CFLAGS) -o $@ ${LAGENTOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${OUR_AGENT_LIBS}
+	$(LINK) $(CFLAGS) -o $@ -pie ${LAGENTOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${OUR_AGENT_LIBS}
 
 
 libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION):    ${LLIBAGENTOBJS} $(USELIBS)

net-snmp-5.4.1-shared-ip.patch:

--- NEW FILE net-snmp-5.4.1-shared-ip.patch ---
--- net-snmp-5.3.1/include/net-snmp/library/container.h.orig	2005-12-04 19:43:04.000000000 +0100
+++ net-snmp-5.3.1/include/net-snmp/library/container.h	2007-05-04 10:01:38.000000000 +0200
@@ -370,8 +370,32 @@
             }
         }
         return rc;
-    }
+    }    
+
-    
+     NETSNMP_STATIC_INLINE
+    int CONTAINER_TRY_INSERT(netsnmp_container *x, const void *k)
+    {
+        const void *res = NULL;
+
+        netsnmp_container *start;
+        /** start at first container */
+        while(x->prev)
+            x = x->prev;
+
+       start = x;
+
+       for(; x; x = x->next) {
+            if ((NULL != x->insert_filter) &&
+               (x->insert_filter(x,k) == 1))
+                continue;
+            res = x->find(x,k);
+	    if (res) {
+               return -1;
+            }
+        }
+        return CONTAINER_INSERT(start, k);
+    }
+
     /*------------------------------------------------------------------
      * These functions should EXACTLY match the function version in
      * container.c. If you change one, change them both.
--- net-snmp-5.3.1/snmplib/container.c.orig	2006-04-21 02:24:47.000000000 +0200
+++ net-snmp-5.3.1/snmplib/container.c	2007-05-04 10:34:23.000000000 +0200
@@ -286,6 +286,29 @@
     return rc;
 }
 
+int CONTAINER_TRY_INSERT(netsnmp_container *x, const void *k)
+{
+    const void *res = NULL;
+
+    netsnmp_container *start;
+    /** start at first container */
+    while(x->prev)
+        x = x->prev;
+
+    start = x;
+
+    for(; x; x = x->next) {
+        if ((NULL != x->insert_filter) &&
+            (x->insert_filter(x,k) == 1))
+            continue;
+        res = x->find(x,k);
+        if (res) {
+            return -1;
+        }
+    }
+    return CONTAINER_INSERT(start, k);
+}
+
 /*------------------------------------------------------------------
  * These functions should EXACTLY match the inline version in
  * container.h. If you change one, change them both.
--- net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c.orig	2007-05-17 23:53:28.000000000 +0200
+++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c	2007-08-07 13:49:49.000000000 +0200
@@ -272,11 +272,15 @@ _netsnmp_ioctl_ipaddress_container_load_
         /*
          * add entry to container
          */
-        if (CONTAINER_INSERT(container, entry) < 0)
-        {
-            DEBUGMSGTL(("access:ipaddress:container","error with ipaddress_entry: insert into container failed.\n"));
+        rc = CONTAINER_TRY_INSERT(container, entry);
+        if (rc < 0) {
+            static int logged = 0;
+            if (!logged) {
+                snmp_log(LOG_NOTICE, "Duplicate IP address detected, some interfaces may not be visible in IP-MIB\n");
+                logged = 1;
+            }
+            rc = 0;
             netsnmp_access_ipaddress_entry_free(entry);
-            continue;
         }
     }
 
--- net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c.orig	2006-09-15 02:48:50.000000000 +0200
+++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c	2007-08-07 13:47:55.000000000 +0200
@@ -324,7 +324,16 @@ _load_v6(netsnmp_container *container, i
         /*
          * add entry to container
          */
-        CONTAINER_INSERT(container, entry);
+        rc = CONTAINER_TRY_INSERT(container, entry);
+        if (rc < 0) {
+            static int logged = 0;
+            if (!logged) {
+                snmp_log(LOG_NOTICE, "Duplicate IP address detected, some interfaces may not be visible in IP-MIB\n");
+                logged = 1;
+            }
+            netsnmp_access_ipaddress_entry_free(entry);
+        }
+                                    
     }
 
     fclose(in);

net-snmp-5.4.1-strange_libpath.patch:

--- NEW FILE net-snmp-5.4.1-strange_libpath.patch ---
--- net-snmp-5.4.1/configure.mnttab.orig	2007-07-27 19:04:19.000000000 +0200
+++ net-snmp-5.4.1/configure.mnttab	2007-08-07 13:32:45.000000000 +0200
@@ -27930,7 +27930,7 @@ if test "${with_libwrap+set}" = set; the
   if test "$with_libwrap" != "no"; then
     if test "$with_libwrap" != "yes"; then
       CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
-      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
+      LDFLAGS="${LDFLAGS} -L$with_libwrap"
     fi
 
     _libs=${LIBS}
@@ -28134,7 +28134,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 	    _wraplibs="$_wraplibs -lwrap"
 else
   echo "$as_me: failed program was:" >&5
@@ -28362,7 +28362,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 			_wraplibs="$_wraplibs -lwrap -lnsl"
 else
   echo "$as_me: failed program was:" >&5
--- net-snmp-5.4.1/configure.libdir.orig	2007-08-07 13:31:31.000000000 +0200
+++ net-snmp-5.4.1/configure.libdir	2007-08-07 13:32:05.000000000 +0200
@@ -27922,7 +27922,7 @@ if test "${with_libwrap+set}" = set; the
   if test "$with_libwrap" != "no"; then
     if test "$with_libwrap" != "yes"; then
       CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
-      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
+      LDFLAGS="${LDFLAGS} -L$with_libwrap"
     fi
 
     _libs=${LIBS}
@@ -28126,7 +28126,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 	    _wraplibs="$_wraplibs -lwrap"
 else
   echo "$as_me: failed program was:" >&5
@@ -28354,7 +28354,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 			_wraplibs="$_wraplibs -lwrap -lnsl"
 else
   echo "$as_me: failed program was:" >&5
--- net-snmp-5.4.1/configure.orig	2007-08-07 13:31:31.000000000 +0200
+++ net-snmp-5.4.1/configure	2007-08-07 13:33:29.000000000 +0200
@@ -27922,7 +27922,7 @@ if test "${with_libwrap+set}" = set; the
   if test "$with_libwrap" != "no"; then
     if test "$with_libwrap" != "yes"; then
       CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
-      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
+      LDFLAGS="${LDFLAGS} -L$with_libwrap"
     fi
 
     _libs=${LIBS}
@@ -28126,7 +28126,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 	    _wraplibs="$_wraplibs -lwrap"
 else
   echo "$as_me: failed program was:" >&5
@@ -28354,7 +28354,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 			_wraplibs="$_wraplibs -lwrap -lnsl"
 else
   echo "$as_me: failed program was:" >&5
--- net-snmp-5.4.1/configure.in.orig	2007-07-27 19:02:00.000000000 +0200
+++ net-snmp-5.4.1/configure.in	2007-08-07 13:33:55.000000000 +0200
@@ -2714,7 +2714,7 @@ AC_ARG_WITH(libwrap,
   if test "$with_libwrap" != "no"; then
     if test "$with_libwrap" != "yes"; then
       CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
-      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
+      LDFLAGS="${LDFLAGS} -L$with_libwrap"
     fi
 
     _libs=${LIBS}
@@ -2732,7 +2732,7 @@ AC_ARG_WITH(libwrap,
 
 	    AC_MSG_RESULT([yes])
 	    AC_DEFINE(NETSNMP_USE_LIBWRAP)
-	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 	    _wraplibs="$_wraplibs -lwrap"],
         [
 	    AC_MSG_RESULT([no])
@@ -2748,7 +2748,7 @@ AC_ARG_WITH(libwrap,
 
 			AC_MSG_RESULT(yes)
 			AC_DEFINE(NETSNMP_USE_LIBWRAP)
-			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 			_wraplibs="$_wraplibs -lwrap -lnsl",
 
 			AC_MSG_RESULT(no)
--- net-snmp-5.4.1/configure.libpath.orig	2007-08-07 13:31:31.000000000 +0200
+++ net-snmp-5.4.1/configure.libpath	2007-08-07 13:34:52.000000000 +0200
@@ -27922,7 +27922,7 @@ if test "${with_libwrap+set}" = set; the
   if test "$with_libwrap" != "no"; then
     if test "$with_libwrap" != "yes"; then
       CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
-      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
+      LDFLAGS="${LDFLAGS} -L$with_libwrap"
     fi
 
     _libs=${LIBS}
@@ -28126,7 +28126,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+	    test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 	    _wraplibs="$_wraplibs -lwrap"
 else
   echo "$as_me: failed program was:" >&5
@@ -28354,7 +28354,7 @@ echo "${ECHO_T}yes" >&6
 #define NETSNMP_USE_LIBWRAP 1
 _ACEOF
 
-			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
+			test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap"
 			_wraplibs="$_wraplibs -lwrap -lnsl"
 else
   echo "$as_me: failed program was:" >&5


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/net-snmp/devel/.cvsignore,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- .cvsignore	28 Nov 2006 07:46:14 -0000	1.22
+++ .cvsignore	7 Aug 2007 12:33:35 -0000	1.23
@@ -1 +1 @@
-net-snmp-5.4.tar.gz
+net-snmp-5.4.1.tar.gz


Index: net-snmp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/net-snmp/devel/net-snmp.spec,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- net-snmp.spec	31 Jul 2007 12:56:52 -0000	1.125
+++ net-snmp.spec	7 Aug 2007 12:33:35 -0000	1.126
@@ -2,15 +2,15 @@
 
 # Arches on which we need to prevent arch conflicts on net-snmp-config.h
 %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64
-%define major_ver 5.4
+%define major_ver 5.4.1
 
 Summary: A collection of SNMP protocol tools and libraries
 Name: net-snmp
 Version: %{major_ver}
-Release: 16%{?dist}
+Release: 1%{?dist}
 Epoch: 1
 
-License: BSDish
+License: MIT
 Group: System Environment/Daemons
 URL: http://net-snmp.sourceforge.net/
 Source0: http://dl.sourceforge.net/net-snmp/net-snmp-%{major_ver}.tar.gz
@@ -23,29 +23,20 @@
 Source7: net-snmp-config
 Source8: net-snmp-trapd.redhat.conf
 Patch1: ucd-snmp-4.2.4.pre3-mnttab.patch
-#Patch2: net-snmp-5.0.6-libtool.patch
 Patch2: net-snmp-5.0.8-ipv6-sock-close.patch
 Patch3: net-snmp-5.0.8-readonly.patch
-Patch4: net-snmp-5.1.1-pie.patch
+Patch4: net-snmp-5.4.1-pie.patch
 Patch5: net-snmp-5.4-64bit.patch
 Patch6: net-snmp-5.1.2-dir-fix.patch
 Patch7: net-snmp-5.2.1-file_offset.patch
 Patch8: net-snmp-5.3.1-multilib.patch
-Patch9: net-snmp-5.4-config_libdir.patch
-#Patch10: net-snmp-5.4-if_addr.patch
-Patch11: net-snmp-5.4-ip-addr-route-leaks.patch
-Patch12: net-snmp-5.4-tcpConn-tcp6-fopen.patch
-Patch13: net-snmp-5.4-ethtool-config.patch
-Patch14: net-snmp-5.4-free.patch
-Patch15: net-snmp-5.4-strange_libpath.patch
-Patch16: net-snmp-5.4-snmpassert.patch
-Patch17: net-snmp-5.4-hostname.patch
-Patch18: net-snmp-5.4-udp-endpoint.patch
-Patch19: net-snmp-5.3.1-shared-ip.patch
-Patch20: net-snmp-5.3.1-mib-option.patch
-Patch21: net-snmp-5.4-exec-crash.patch
-Patch22: net-snmp-5.1.2-snmpconf-selinux.patch
-Patch23: net-snmp-5.4-transport-leak.patch
+Patch9: net-snmp-5.4.1-config_libdir.patch
+#Patch10: net-snmp-5.4.1-ethtool-config.patch
+Patch11: net-snmp-5.4.1-strange_libpath.patch
+Patch12: net-snmp-5.4.1-hostname.patch
+Patch13: net-snmp-5.4.1-shared-ip.patch
+Patch14: net-snmp-5.4-exec-crash.patch
+Patch15: net-snmp-5.1.2-snmpconf-selinux.patch
 
 Requires(pre): /sbin/chkconfig
 Requires(post): /sbin/chkconfig
@@ -152,24 +143,12 @@
 %patch7 -p1 -b .file_offset
 %patch8 -p1 -b .multilib
 %patch9 -p1 -b .libdir
-#%patch10 -p1 -b .if_addr
-
-#in net-snmp 5.4.1
-%patch11 -p0 -b .route-leak
-%patch12 -p1 -b .tcp6-fopen
-
-%patch13 -p1 -b .ethtool-config
-%patch14 -p1 -b .free
-%patch15 -p1 -b .strange_libpath
-%patch16 -p1 -b .verboselog
-
-%patch17 -p1 -b .hostname
-%patch18 -p1 -b .udp-endpoint
-%patch19 -p1 -b .shared-ip
-%patch20 -p1 -b .mib-option
-%patch21 -p1 -b .exec-crash
-%patch22 -p1 -b .selinux
-%patch23 -p0 -b .transport-leak
+#%patch10 -p1 -b .ethtool
+%patch11 -p1 -b .libpath
+%patch12 -p1 -b .hostname
+%patch13 -p1 -b .shared-ip
+%patch14 -p1 -b .exec
+%patch15 -p1 -b .selinux
 
 # Do this patch with a perl hack...
 perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@@ -376,6 +355,10 @@
 %{_libdir}/lib*.so.*
 
 %changelog
+* Tue Aug  7 2007  Safranek <jsafranek at redhat.com> 5.4.1-1
+- Lincense: field changed to MIT
+- 5.4.1 integrated
+
 * Mon Jul 31 2007  Safranek <jsafranek at redhat.com> 5.4-16
 - supported lm_sensors on ppc64 (#249255)
 - snmpconf generates config files with proper selinux context


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/net-snmp/devel/sources,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- sources	28 Nov 2006 07:46:14 -0000	1.22
+++ sources	7 Aug 2007 12:33:35 -0000	1.23
@@ -1 +1 @@
-46d893281056ff476e597659cb91574d  net-snmp-5.4.tar.gz
+6c974df7a5a5b1579f72115e6b045bda  net-snmp-5.4.1.tar.gz


--- net-snmp-5.0.6-libtool.patch DELETED ---


--- net-snmp-5.1.1-ipAdEntIfIndex.patch DELETED ---


--- net-snmp-5.1.1-pie.patch DELETED ---


--- net-snmp-5.2.1-typeclash.diff DELETED ---


--- net-snmp-5.3.1-mib-option.patch DELETED ---


--- net-snmp-5.3.1-shared-ip.patch DELETED ---


--- net-snmp-5.3.1.pre2-config.patch DELETED ---


--- net-snmp-5.4-config_libdir.patch DELETED ---


--- net-snmp-5.4-free.patch DELETED ---


--- net-snmp-5.4-hostname.patch DELETED ---


--- net-snmp-5.4-if_addr.patch DELETED ---


--- net-snmp-5.4-ip-addr-route-leaks.patch DELETED ---


--- net-snmp-5.4-snmpassert.patch DELETED ---


--- net-snmp-5.4-strange_libpath.patch DELETED ---


--- net-snmp-5.4-tcpConn-tcp6-fopen.patch DELETED ---


--- net-snmp-5.4-transport-leak.patch DELETED ---


--- net-snmp-5.4-udp-endpoint.patch DELETED ---




More information about the fedora-extras-commits mailing list