Skip to contentSkip to conversation

libnl: bump to version 3.2.3

PATCH Superseded Daniel Mack 2 participants 8 messages Dec 3, 2011

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/5 libnl: bump to version 3.2.3

This newer version splits the library code into libnl, libnl-route, libnl-genl and libnl-nf, each individually selectable via pkgconfig.

---
 package/libnl/libnl.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/libnl/libnl.mk +1 -1
index dd0d7fb..612908b 100644
@@ -4,7 +4,7 @@
 #
 #############################################################
 
-LIBNL_VERSION = 3.0
+LIBNL_VERSION = 3.2.3
 LIBNL_SOURCE = libnl-$(LIBNL_VERSION).tar.gz
 LIBNL_SITE = http://www.infradead.org/~tgr/libnl/files/
 LIBNL_INSTALL_STAGING = YES
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH v3 2/5 hostapd: fix build with new libnl-3

The CFLAGS have to be augmented for the include dir and a small patch will make the binary link to libnl-3 and libnl-genl-3 instead of libnl and libnl-gen.

---
 package/hostapd/hostapd-0.7.3-libnl3.patch |   15 +++++++++++++++
 package/hostapd/hostapd.mk                 |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 package/hostapd/hostapd-0.7.3-libnl3.patch
package/hostapd/hostapd-0.7.3-libnl3.patch new file +15 -0
new file mode 100644
index 0000000..e47da73
@@ -0,0 +1,15 @@
+--- a/src/drivers/drivers.mak	2011-11-29 19:09:23.889942913 +0100
++++ b/src/drivers/drivers.mak	2011-11-29 19:09:40.637381428 +0100
+@@ -31,10 +31,10 @@
+ NEED_AP_MLME=y
+ NEED_NETLINK=y
+ NEED_LINUX_IOCTL=y
+-DRV_LIBS += -lnl
++DRV_LIBS += -lnl-3
+ 
+ ifdef CONFIG_LIBNL20
+-DRV_LIBS += -lnl-genl
++DRV_LIBS += -lnl-genl-3
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+ endif
+ endif
package/hostapd/hostapd.mk +1 -0
index 0d6c2c5..26ebf1d 100644
@@ -18,6 +18,7 @@ endif
 
 define HOSTAPD_LIBNL_CONFIG
 	echo "CONFIG_LIBNL20=y" >>$(HOSTAPD_CONFIG)
+	echo "CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3/" >>$(HOSTAPD_CONFIG)
 endef
 
 define HOSTAPD_CRYPTO_CONFIG
Signature · 1 line
1.7.7.3
#2 lore raw

PATCH v3 3/5 wpa_supplicant: fix build with new libnl-3

In reply to Daniel Mack

The CFLAGS have to be augmented for the include dir and a small patch will make the binary link to libnl-3 and libnl-genl-3 instead of libnl and libnl-gen.

---
 .../wpa_supplicant-0.7.3-libnl-3.patch             |   15 +++++++++++++++
 package/wpa_supplicant/wpa_supplicant.mk           |    2 +-
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 package/wpa_supplicant/wpa_supplicant-0.7.3-libnl-3.patch
package/wpa_supplicant/wpa_supplicant-0.7.3-libnl-3.patch new file +15 -0
new file mode 100644
index 0000000..a460c2a
@@ -0,0 +1,15 @@
+--- a/src/drivers/drivers.mak	2011-11-29 19:19:56.684221050 +0100
++++ b/src/drivers/drivers.mak	2011-11-29 19:20:12.199609246 +0100
+@@ -31,10 +31,10 @@
+ NEED_AP_MLME=y
+ NEED_NETLINK=y
+ NEED_LINUX_IOCTL=y
+-DRV_LIBS += -lnl
++DRV_LIBS += -lnl-3
+ 
+ ifdef CONFIG_LIBNL20
+-DRV_LIBS += -lnl-genl
++DRV_LIBS += -lnl-genl-3
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+ endif
+ endif
package/wpa_supplicant/wpa_supplicant.mk +1 -1
index b2e7be3..96f64ca 100644
@@ -56,7 +56,7 @@ endif
 
 define WPA_SUPPLICANT_CONFIGURE_CMDS
 	cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
-	echo "CFLAGS += $(TARGET_CFLAGS)" >>$(WPA_SUPPLICANT_CONFIG)
+	echo "CFLAGS += $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(WPA_SUPPLICANT_CONFIG)
 	echo "LDFLAGS += $(TARGET_LDFLAGS)" >>$(WPA_SUPPLICANT_CONFIG)
 	echo "CC = $(TARGET_CC)" >>$(WPA_SUPPLICANT_CONFIG)
 	$(SED) "s/^#CONFIG_IEEE80211R/CONFIG_IEEE80211R/" $(WPA_SUPPLICANT_CONFIG)
Signature · 1 line
1.7.7.3
#3 lore raw

PATCH v3 4/5 iw: fix build with new libnl-3

In reply to Daniel Mack

The CFLAGS have to be augmented for the include dir and the patch needs to be tweaked to make the binary link to libnl-3 instead of libnl-gen.

---
 package/iw/iw-libnl-30-support.patch |    2 +-
 package/iw/iw.mk                     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/iw/iw-libnl-30-support.patch +1 -1
index 48a179f..02e818c 100644
@@ -20,7 +20,7 @@ Index: b/Makefile
 
 +ifeq ($(NL3FOUND),Y)
 +CFLAGS += -DCONFIG_LIBNL20
-+LIBS += -lnl-genl
++LIBS += -lnl-genl-3
 +NLLIBNAME = libnl-3.0
 +endif
 +
package/iw/iw.mk +1 -1
index 9f1d65f..65326b7 100644
@@ -15,7 +15,7 @@ IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
 
 define IW_CONFIGURE_CMDS
 	echo "CC = $(TARGET_CC)" >$(IW_CONFIG)
-	echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG)
+	echo "CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(IW_CONFIG)
 	echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG)
 endef
 
Signature · 1 line
1.7.7.3
#4 lore raw

PATCH v3 4/5 iw: fix build with new libnl-3

Quoted 29 lines · Daniel Mack

The CFLAGS have to be augmented for the include dir and the patch needs to be tweaked to make the binary link to libnl-3 instead of libnl-gen.

---
?package/iw/iw-libnl-30-support.patch | ? ?2 +-
?package/iw/iw.mk ? ? ? ? ? ? ? ? ? ? | ? ?2 +-
?2 files changed, 2 insertions(+), 2 deletions(-)

package/iw/iw-libnl-30-support.patch +0 -0
index 48a179f..02e818c 100644
@@ -20,7 +20,7 @@ Index: b/Makefile
 
 ?+ifeq ($(NL3FOUND),Y)

?+CFLAGS += -DCONFIG_LIBNL20
-+LIBS += -lnl-genl
++LIBS += -lnl-genl-3
?+NLLIBNAME = libnl-3.0
?+endif
?+

package/iw/iw.mk +0 -0
index 9f1d65f..65326b7 100644
@@ -15,7 +15,7 @@ IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
 
Quoted 6 lines

?define IW_CONFIGURE_CMDS
? ? ? ?echo "CC = $(TARGET_CC)" >$(IW_CONFIG)
- ? ? ? echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG)
+ ? ? ? echo "CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(IW_CONFIG) ? ? ? ?echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG)
?endef

This patch won't apply. This an old version (v1). What is the reason for v3?

Yegor

#5 lore raw

PATCH v3 4/5 iw: fix build with new libnl-3

Quoted 30 lines · Yegor Yefremov
Quoted 29 lines · Daniel Mack

The CFLAGS have to be augmented for the include dir and the patch needs to be tweaked to make the binary link to libnl-3 instead of libnl-gen.

---
 package/iw/iw-libnl-30-support.patch |    2 +-
 package/iw/iw.mk                     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/iw/iw-libnl-30-support.patch +1 -1
index 48a179f..02e818c 100644
@@ -20,7 +20,7 @@ Index: b/Makefile
 
 +ifeq ($(NL3FOUND),Y)
 +CFLAGS += -DCONFIG_LIBNL20
-+LIBS += -lnl-genl
++LIBS += -lnl-genl-3
 +NLLIBNAME = libnl-3.0
 +endif
 +
package/iw/iw.mk +0 -0
index 9f1d65f..65326b7 100644
@@ -15,7 +15,7 @@ IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
 
Quoted 8 lines

package/iw/iw.mk IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ · line 20

Quoted 6 lines
package/iw/iw.mk +1 -1
 define IW_CONFIGURE_CMDS
       echo "CC = $(TARGET_CC)" >$(IW_CONFIG)
-       echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG)
+       echo "CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(IW_CONFIG)
       echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG)
 endef

This patch won't apply. This an old version (v1).

Sorry, branch confusion on my side. Thanks for noticing.

Quoted 1 line

What is the reason for v3?

TARGET_DIR vs. STAGING_DIR confusion. I'll post a v4 against -next then.

Thanks,
Daniel

#6 lore raw

PATCH v3 4/5 iw: fix build with new libnl-3

Quoted 40 lines · Daniel Mack
Quoted 30 lines · Yegor Yefremov
Quoted 29 lines · Daniel Mack

The CFLAGS have to be augmented for the include dir and the patch needs to be tweaked to make the binary link to libnl-3 instead of libnl-gen.

---
?package/iw/iw-libnl-30-support.patch | ? ?2 +-
?package/iw/iw.mk ? ? ? ? ? ? ? ? ? ? | ? ?2 +-
?2 files changed, 2 insertions(+), 2 deletions(-)

package/iw/iw-libnl-30-support.patch +0 -0
index 48a179f..02e818c 100644
@@ -20,7 +20,7 @@ Index: b/Makefile
 
 ?+ifeq ($(NL3FOUND),Y)

?+CFLAGS += -DCONFIG_LIBNL20
-+LIBS += -lnl-genl
++LIBS += -lnl-genl-3
?+NLLIBNAME = libnl-3.0
?+endif
?+

package/iw/iw.mk +0 -0
index 9f1d65f..65326b7 100644
@@ -15,7 +15,7 @@ IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
 
Quoted 8 lines
Quoted 6 lines

?define IW_CONFIGURE_CMDS
? ? ? ?echo "CC = $(TARGET_CC)" >$(IW_CONFIG)
- ? ? ? echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG)
+ ? ? ? echo "CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(IW_CONFIG) ? ? ? ?echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG)
?endef

This patch won't apply. This an old version (v1).

Quoted 5 lines

Sorry, branch confusion on my side. Thanks for noticing.

Quoted 1 line

What is the reason for v3?

TARGET_DIR vs. STAGING_DIR confusion. I'll post a v4 against -next then.

AFAIK both branches should be in sync now. The next is there to cover the time between the first rc and a final release.

Yegor

#7 lore raw

PATCH v3 5/5 kismet: fix build with new libnl-3

In reply to Daniel Mack

The CFLAGS have to be augmented, so configure finds the correct include dir, and the patch needs to be tweaked to make the binary link to libnl-3 instead of libnl-gen.

---
 package/kismet/kismet-libnl-30-support.patch |   10 +++++++---
 package/kismet/kismet.mk                     |    1 +
 2 files changed, 8 insertions(+), 3 deletions(-)
package/kismet/kismet-libnl-30-support.patch +7 -3
index cf3c845..5100a69 100644
@@ -111,13 +111,17 @@ Index: b/configure
  pkg_failed=no
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl20" >&5
  $as_echo_n "checking for libnl20... " >&6; }
-@@ -6897,7 +6974,7 @@
+@@ -6897,7 +6974,11 @@
  $as_echo "yes" >&6; }
  	libnl1=yes
  fi
 -	if test "$libnl20" = "yes"; then
-+	if test "$libnl20" = "yes" -o "$libnl30" = "yes"; then
-
++	if test "$libnl30" = "yes"; then
++$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
++$as_echo "#define HAVE_LIBNL20 1" >>confdefs.h
++               NLLIBS="-lnl-genl-3 -lnl-3"
++	elif test "$libnl20" = "yes"; then
+ 
  $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
 
 
package/kismet/kismet.mk +1 -0
index 4c7d6e2..854c9dd 100644
@@ -10,6 +10,7 @@ KISMET_DEPENDENCIES = libpcap ncurses
 
 ifeq ($(BR2_PACKAGE_LIBNL),y)
 	KISMET_DEPENDENCIES += libnl
+	KISMET_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/"
 endif
 ifeq ($(BR2_PACKAGE_PCRE),y)
 	KISMET_DEPENDENCIES += pcre
Signature · 1 line
1.7.7.3