Mailinglist Archive: opensuse-commit (1157 mails)

< Previous Next >
commit libnl
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Wed, 03 Oct 2007 01:04:26 +0200
  • Message-id: <20071002230426.E0FD5678334@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package libnl
checked in at Wed Oct 3 01:04:26 CEST 2007.

--------
--- libnl/libnl.changes 2007-08-25 11:57:58.000000000 +0200
+++ /mounts/work_src_done/STABLE/libnl/libnl.changes    2007-09-15 10:20:53.000000000 +0200
@@ -1,0 +2,11 @@
+Wed Aug 22 02:10:01 CEST 2007 - dmueller@xxxxxxx
+
+- update to 1.0-pre6:
+  * fixes write after delete crashes
+  * fixes realloc() handling
+  * fixes format string warnings
+  * fixes invalid free in nl_addr_parse for AF_UNSPEC addresses
+  * fixes double nlmsg_free() in nl_recvmsgs() while receiving
+    a multipart message and the read was interrupted.
+
+-------------------------------------------------------------------

Old:
----
  libnl-1.0-pre5.tar.gz
  libnl-1.pc
  libnl-1.pc.x86_64
  libnl.__dp_dump.vasprintf.patch
  libnl-makefile.patch
  libnl.print_class.cast.patch
  libnl.raw_dump_msg.formatstring.patch
  r22.diff
  r23.diff
  r28.diff

New:
----
  libnl-1.0-pre6.tar.bz2
  libnl-compat.diff
  libnl-includes.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libnl.spec ++++++
--- /var/tmp/diff_new_pack.vl2817/_old  2007-10-03 01:04:19.000000000 +0200
+++ /var/tmp/diff_new_pack.vl2817/_new  2007-10-03 01:04:19.000000000 +0200
@@ -11,27 +11,20 @@
 # norootforbuild
 
 Name:           libnl
-%define preversion pre5
+%define preversion pre6
 %define prefix /usr
 Summary:        Convenience library for kernel netlink sockets
 Group:          Development/Libraries/Other
 License:        LGPL v2 or later
 Version:        1.0
-Release:        76
-URL:            http://people.suug.ch/~tgr/libnl/
-Source:         http://people.suug.ch/~tgr/libnl/files/libnl-%{version}-%{preversion}.tar.gz
-Source1:        %{name}-1.pc
-Source2:        %{name}-1.pc.x86_64
-Patch:          %{name}-makefile.patch
+Release:        82
+Url:            http://people.suug.ch/~tgr/libnl/
+Source:         http://people.suug.ch/~tgr/libnl/files/libnl-%{version}-%{preversion}.tar.bz2
 Patch1:         %{name}-typedef.patch
-Patch3:         r22.diff
-Patch4:         r23.diff
-Patch5:         r28.diff
-Patch6:         libnl.nl_str2af.patch
-Patch7:         libnl.__dp_dump.vasprintf.patch
-Patch8:         libnl.route.metric-overflow.patch
-Patch9:         libnl.raw_dump_msg.formatstring.patch
-Patch10:        libnl.print_class.cast.patch
+Patch2:         libnl-includes.diff
+Patch3:         libnl-compat.diff
+Patch4:         libnl.nl_str2af.patch
+Patch5:         libnl.route.metric-overflow.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -61,19 +54,15 @@
 
 %prep
 %setup -q -n libnl-%{version}-%{preversion}
-%patch
+%ifnarch ia64 ppc64 s390x
 %patch1 -p1
+%endif
+%patch2
 %patch3
-%patch4 -p1
+%patch4
 %patch5
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p1
 
 %build
-rm -rfv include/linux
 #%configure
 CFLAGS="$RPM_OPT_FLAGS" \
   ./configure \
@@ -82,14 +71,7 @@
 make
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
-%if "%_lib" == "lib64"
-cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libnl-1.pc
-%else
-cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
-%endif
+%makeinstall
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -108,7 +90,6 @@
 %{_includedir}/netlink/
 %{_libdir}/%{name}.so
 %{_libdir}/pkgconfig/%{name}-1.pc
-
 %changelog
 * Sat Aug 25 2007 - olh@xxxxxxx
 - remove incomplete copies of kernel headers
@@ -122,6 +103,14 @@
   remove compiler warnings by checking vasprintf return value
 * Wed Aug 22 2007 - dmueller@xxxxxxx
 - fix accesses of free'd memory which crash NetworkManager-kde
+* Wed Aug 22 2007 - dmueller@xxxxxxx
+- update to 1.0-pre6:
+  * fixes write after delete crashes
+  * fixes realloc() handling
+  * fixes format string warnings
+  * fixes invalid free in nl_addr_parse for AF_UNSPEC addresses
+  * fixes double nlmsg_free() in nl_recvmsgs() while receiving
+  a multipart message and the read was interrupted.
 * Mon Feb 20 2006 - ro@xxxxxxx
 - fix build on ia64, ppc64, s390x
 * Wed Jan 25 2006 - mls@xxxxxxx

++++++ libnl-compat.diff ++++++
--- include/netlink/cache.h
+++ include/netlink/cache.h
@@ -36,6 +36,7 @@
 extern struct nl_cache *       nl_cache_alloc_name(const char *);
 extern void                    nl_cache_clear(struct nl_cache *);
 extern void                    nl_cache_free(struct nl_cache *);
+static __inline void nl_cache_destroy_and_free(struct nl_cache* c) { nl_cache_free(c); }
 
 /* Cache modification */
 extern int                     nl_cache_add(struct nl_cache *,
++++++ libnl-includes.diff ++++++
--- include/netlink/netlink.h
+++ include/netlink/netlink.h
@@ -17,6 +17,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
+#include <linux/types.h>
 #include <sys/socket.h>
 #include <netlink/types.h>
 #include <netlink/netlink-compat.h>
++++++ libnl.nl_str2af.patch ++++++
--- /var/tmp/diff_new_pack.vl2817/_old  2007-10-03 01:04:19.000000000 +0200
+++ /var/tmp/diff_new_pack.vl2817/_new  2007-10-03 01:04:19.000000000 +0200
@@ -4,8 +4,8 @@
  lib/addr.c             |    4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
 
---- a/include/netlink/addr.h
-+++ b/include/netlink/addr.h
+--- include/netlink/addr.h
++++ include/netlink/addr.h
 @@ -48,7 +48,7 @@ extern unsigned int  nl_addr_get_prefixle
  
  /* Address Family Translations */
@@ -15,8 +15,8 @@
  
  /* Translations to Strings */
  extern char *         nl_addr2str(struct nl_addr *, char *, size_t);
---- a/lib/addr.c
-+++ b/lib/addr.c
+--- lib/addr.c
++++ lib/addr.c
 @@ -891,9 +891,9 @@ char *nl_af2str(char family, char *buf, 
   *
   * @return Address family as number or \c AF_UNSPEC.

++++++ libnl-typedef.patch ++++++
--- /var/tmp/diff_new_pack.vl2817/_old  2007-10-03 01:04:19.000000000 +0200
+++ /var/tmp/diff_new_pack.vl2817/_new  2007-10-03 01:04:19.000000000 +0200
@@ -1,39 +1,13 @@
----
- include/netlink-local.h            |    6 ------
- include/netlink/netlink-kernel.h   |    1 +
- include/netlink/rtnetlink-kernel.h |    1 +
- 3 files changed, 2 insertions(+), 6 deletions(-)
-
---- a/include/netlink-local.h
-+++ b/include/netlink-local.h
-@@ -30,12 +30,6 @@
- #include <arpa/inet.h>
- #include <netdb.h>

--typedef uint8_t               __u8;
--typedef uint16_t      __u16;
--typedef uint32_t      __u32;
--typedef int32_t               __s32;
+diff -pur libnl-1.0-pre5-4/include/netlink-local.h libnl-1.0-pre5/include/netlink-local.h
+--- libnl-1.0-pre5-4/include/netlink-local.h   2005-11-15 05:01:17.876722753 -0800
++++ libnl-1.0-pre5/include/netlink-local.h     2005-11-15 05:08:49.763035970 -0800
+@@ -34,7 +34,8 @@ typedef uint8_t              __u8;
+ typedef uint16_t      __u16;
+ typedef uint32_t      __u32;
+ typedef int32_t               __s32;
 -typedef uint64_t      __u64;
--
++//typedef uint64_t    __u64;
++typedef unsigned long long  __u64;

  /* local header copies */
  #include <linux/if.h>
- #include <linux/if_arp.h>
---- a/include/netlink/netlink-kernel.h
-+++ b/include/netlink/netlink-kernel.h
-@@ -1,5 +1,6 @@
- #ifndef __LINUX_NETLINK_H
- #define __LINUX_NETLINK_H
-+#include <linux/types.h>

- #define NETLINK_ROUTE         0       /* Routing/device hook */
- #define NETLINK_W1            1       /* 1-wire subsystem */
---- a/include/netlink/rtnetlink-kernel.h
-+++ b/include/netlink/rtnetlink-kernel.h
-@@ -1,5 +1,6 @@
- #ifndef __LINUX_RTNETLINK_H
- #define __LINUX_RTNETLINK_H
-+#include <linux/types.h>

- /**
-  * @anchor rtnlmsgtypes


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread