Your message dated Sat, 01 Mar 2014 22:49:03 +0000
with message-id <e1wjsin-0000eo...@franck.debian.org>
and subject line Bug#653021: fixed in ipvsadm 1:1.26-3
has caused the Debian Bug report #653021,
regarding ipvsadm: build against libnl3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
653021: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653021
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ipvsadm
Version: 1:1.25.clean-1
Severity: wishlist

Dear Maintainer,

libnl3 3.2.3 is now in Debian unstable. It would be nice if ipvsadm
could be built against it.

Attached are two patches which allow this: one debdiff from Ubuntu
changes to port to libnl3,
and an extra patch to support libnl3 3.2.x.

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'),
(500, 'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-6-generic (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Mathieu Trudel-Lapierre <mathieu...@gmail.com>
Freenode: cyphermox, Jabber: mathieu...@gmail.com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93
From: Mathieu Trudel-Lapierre <mathieu.trudel-lapie...@canonical.com>
Subject: When building against libnl3; make sure we get the right cflags and
 libs
Forwarded: yes

Index: ipvsadm/Makefile
===================================================================
--- ipvsadm.orig/Makefile	2011-12-21 15:18:16.477534000 -0500
+++ ipvsadm/Makefile	2011-12-21 16:02:25.245788763 -0500
@@ -77,7 +77,8 @@
 OBJS		= ipvsadm.o config_stream.o dynamic_array.o
 LIBS		= $(POPT_LIB)
 ifneq (0,$(HAVE_NL))
-LIBS		+= $(shell pkg-config --libs libnl-3.0)
+INCLUDE		+= $(shell pkg-config --cflags libnl-3.0 libnl-genl-3.0)
+LIBS		+= $(shell pkg-config --libs libnl-3.0 libnl-genl-3.0)
 endif
 DEFINES		= -DVERSION=\"$(VERSION)\" -DSCHEDULERS=\"$(SCHEDULERS)\" \
 		  $(POPT_DEFINE)
Index: ipvsadm/libipvs/Makefile
===================================================================
--- ipvsadm.orig/libipvs/Makefile	2011-12-21 15:18:16.477534000 -0500
+++ ipvsadm/libipvs/Makefile	2011-12-21 15:59:15.081777734 -0500
@@ -4,6 +4,7 @@
 CFLAGS		= -Wall -Wunused -Wstrict-prototypes -g -fPIC
 ifneq (0,$(HAVE_NL))
 CFLAGS		+= -DLIBIPVS_USE_NL
+INCLUDE          += $(shell pkg-config --cflags libnl-3.0 libnl-genl-3.0)
 endif
 
 INCLUDE		+= $(shell if [ -f ../../ip_vs.h ]; then	\
diff -u ipvsadm-1.25.clean/debian/changelog ipvsadm-1.25.clean/debian/changelog
--- ipvsadm-1.25.clean/debian/changelog
+++ ipvsadm-1.25.clean/debian/changelog
@@ -1,3 +1,9 @@
+ipvsadm (1:1.25.clean-1ubuntu2) oneiric; urgency=low
+
+  * Port to libnl3.
+
+ -- Colin Watson <cjwat...@ubuntu.com>  Mon, 08 Aug 2011 17:23:22 +0100
+
 ipvsadm (1:1.25.clean-1ubuntu1) natty; urgency=low
 
   * libipvs/libipvs.c: upstream patch (r64) to fix incorrect activeconns,
diff -u ipvsadm-1.25.clean/debian/control ipvsadm-1.25.clean/debian/control
--- ipvsadm-1.25.clean/debian/control
+++ ipvsadm-1.25.clean/debian/control
@@ -4,7 +4,7 @@
 Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
 XSBC-Original-Maintainer: Alexander Wirt <formo...@debian.org>
 Standards-Version: 3.8.3
-Build-Depends: debhelper (>= 5), libpopt-dev, po-debconf, libnl-dev
+Build-Depends: debhelper (>= 5), libpopt-dev, po-debconf, libnl3-dev
 
 Package: ipvsadm
 Architecture: any
diff -u ipvsadm-1.25.clean/libipvs/libipvs.c ipvsadm-1.25.clean/libipvs/libipvs.c
--- ipvsadm-1.25.clean/libipvs/libipvs.c
+++ ipvsadm-1.25.clean/libipvs/libipvs.c
@@ -32,7 +32,7 @@
 struct ip_vs_getinfo ipvs_info;
 
 #ifdef LIBIPVS_USE_NL
-struct nl_handle *sock = NULL;
+struct nl_sock *sock = NULL;
 int family, try_nl = 1;
 #endif
 
@@ -64,7 +64,7 @@
 {
 	int err = EINVAL;
 
-	sock = nl_handle_alloc();
+	sock = nl_socket_alloc();
 	if (!sock) {
 		nlmsg_free(msg);
 		return -1;
@@ -79,7 +79,7 @@
 
 	/* To test connections and set the family */
 	if (msg == NULL) {
-		nl_handle_destroy(sock);
+		nl_socket_free(sock);
 		sock = NULL;
 		return 0;
 	}
@@ -95,12 +95,12 @@
 
 	nlmsg_free(msg);
 
-	nl_handle_destroy(sock);
+	nl_socket_free(sock);
 
 	return 0;
 
 fail_genl:
-	nl_handle_destroy(sock);
+	nl_socket_free(sock);
 	sock = NULL;
 	nlmsg_free(msg);
 	errno = err;
only in patch2:
unchanged:
--- ipvsadm-1.25.clean.orig/Makefile
+++ ipvsadm-1.25.clean/Makefile
@@ -79,7 +79,7 @@
 OBJS		= ipvsadm.o config_stream.o dynamic_array.o
 LIBS		= $(POPT_LIB)
 ifneq (0,$(HAVE_NL))
-LIBS		+= -lnl
+LIBS		+= $(shell pkg-config --libs libnl-3.0)
 endif
 DEFINES		= -DVERSION=\"$(VERSION)\" -DSCHEDULERS=\"$(SCHEDULERS)\" \
 		  $(POPT_DEFINE)

--- End Message ---
--- Begin Message ---
Source: ipvsadm
Source-Version: 1:1.26-3

We believe that the bug you reported is fixed in the latest version of
ipvsadm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 653...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Wirt <formo...@debian.org> (supplier of updated ipvsadm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 01 Mar 2014 23:36:46 +0100
Source: ipvsadm
Binary: ipvsadm
Architecture: source amd64
Version: 1:1.26-3
Distribution: unstable
Urgency: medium
Maintainer: Alexander Wirt <formo...@debian.org>
Changed-By: Alexander Wirt <formo...@debian.org>
Description: 
 ipvsadm    - Linux Virtual Server support programs
Closes: 649106 653021 685495 706680
Changes: 
 ipvsadm (1:1.26-3) unstable; urgency=medium
 .
   * [8fe73cf] Move to quilt 3.0
   * [9ae82d1] wrap-and-sort
   * [d8b7ba7] Move to debhelper compat v9
   * [450ce1d] Remove obsolete dpatch patches
   * [86caa7e] Remove obsolete templates
   * [8c6fbd7] Bump standards version
   * [6972aa0] Add deps for libnl3
   * [9a354ee] Add syncid to default file (Closes: #649106)
   * [f57062e] Build against libnl3 (Closes: #653021)
   * [ebeed1d] Fix displayed nodes (Closes: #685495, #706680)
   * [c0e7408] Imported Debian patch 1:1.26-2
   * [25fb091] Revert "Imported Debian patch 1:1.26-2"
   * [be1c118] Fix build-deps
   * [41027f9] Bump standards version (no changes)
   * [d0c8111] Add a patch to support LDFLAGS in Makefile. This adds support 
for hardening.
Checksums-Sha1: 
 34c553e1d84a1a542b4b7251c095a84ca42f98fa 1693 ipvsadm_1.26-3.dsc
 b197d2dce254941b19a6293fb77f87c43df19dbd 14808 ipvsadm_1.26-3.debian.tar.xz
 c5766657a9f77e6b7d0170709569f119c7a655ff 35426 ipvsadm_1.26-3_amd64.deb
Checksums-Sha256: 
 838adc33cb528daef6f7c4059a350ff13faf02ad600ac7c9631aa23083cfacbe 1693 
ipvsadm_1.26-3.dsc
 b768ce097ac8cfebc77d66a445dbed69f82e8adeaa4ce3ae8140e680275972ed 14808 
ipvsadm_1.26-3.debian.tar.xz
 1f7916be316af81067b30aa917768794547922c2e5afd1ef7be7b90fdb026948 35426 
ipvsadm_1.26-3_amd64.deb
Files: 
 3289068908af2172f7ab17170e12d825 1693 net extra ipvsadm_1.26-3.dsc
 e26b39187f36be556f9fea6abd08395d 14808 net extra ipvsadm_1.26-3.debian.tar.xz
 fb34104eef69e28d8e518b1aaf59927f 35426 net extra ipvsadm_1.26-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTEmFkAAoJEB5F+Mqd4jsWY5MP/3HW34K1G7NOUmq4ZW7HP5bJ
GL9QoUbhwWwQxrRvaosYWYmprsCoNnr8Y+vIgIV5A98YZyMJKcEd79m7WBiom9NO
4npu0Sz0O+JzW0oT+2KU3eC7331yLFNCFDqQ18xJqxYbcZerLtnvwG25ezsgc6SW
IPN/C1UWBD26pKtfV/azA1OoPSSm7BfvfOERlYZ/Siy4dNqlNK7FSSI9lzIq8KuJ
UdEbrMgfuLVTJQ/gGc5XvCdUjQAKWVYvkB+RIYt/d3s0eLL0ma4wFaOf7kV4jVST
bZh9rqbq27zHhXNZ/hT8gMjvTBKXrUF43kT1rfGkzaiJCgnrLmFTaqdz8HCxqmpU
F1BJYZPO/zoPUJO1NSlND0pDt0MPhkcwNS/vvDr6R4w91PlaNTEMGBYnrfu00vpT
ATw32H9r1u5gmISWbVE9Jg8vG7vmchDuiLx3WGDz9sjig3x4tWhi3KFe/BCY+MgB
cdD/4ib6l+7gZsJAwLybfjCDdFPWK74qqdhSxl/BDL6nzkBIMNNOKZogZQIM1uw2
kreziTlu+u+SpF77525MHJQ7Cn02rkkP+WApWfUyt1WOJBM0qynjkLui7gc2bmAB
VVonnllypHREZaljlOGVY4RhHnmfR6IMxtMS1IrEan1jQDf8owLLEDVA207U5lKq
E3t/vRVy9Mw0C1v4JIq2
=+dAo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to