[wpa_supplicant] Rebuild against libnl3

Daniel Williams dcbw at fedoraproject.org
Fri Mar 2 22:26:56 UTC 2012


commit 661e6b910e155014fafb59814a389800e01f80e0
Author: Dan Williams <dcbw at redhat.com>
Date:   Fri Mar 2 16:29:12 2012 -0600

    Rebuild against libnl3

 ...o-other-drivers-if-global-init-for-one-dr.patch |   43 --------------------
 build-config                                       |    1 +
 libnl3-includes.patch                              |   12 +++++
 sources                                            |    2 +-
 wpa_supplicant.spec                                |   16 +++++--
 5 files changed, 25 insertions(+), 49 deletions(-)
---
diff --git a/build-config b/build-config
index 0eba8b7..b41a741 100644
--- a/build-config
+++ b/build-config
@@ -3,6 +3,7 @@ CONFIG_CTRL_IFACE_DBUS=y
 CONFIG_CTRL_IFACE_DBUS_NEW=y
 CONFIG_CTRL_IFACE_DBUS_INTRO=y
 CONFIG_DRIVER_WEXT=y
+CONFIG_LIBNL32=y
 CONFIG_DRIVER_NL80211=y
 CONFIG_DRIVER_WIRED=y
 CONFIG_IEEE8021X_EAPOL=y
diff --git a/libnl3-includes.patch b/libnl3-includes.patch
new file mode 100644
index 0000000..5d89039
--- /dev/null
+++ b/libnl3-includes.patch
@@ -0,0 +1,12 @@
+diff -up wpa_supplicant-1.0-rc2/src/drivers/drivers.mak.foo wpa_supplicant-1.0-rc2/src/drivers/drivers.mak
+--- wpa_supplicant-1.0-rc2/src/drivers/drivers.mak.foo	2012-03-02 16:11:43.176448714 -0600
++++ wpa_supplicant-1.0-rc2/src/drivers/drivers.mak	2012-03-02 16:12:29.759866341 -0600
+@@ -48,7 +48,7 @@ NEED_RFKILL=y
+ ifdef CONFIG_LIBNL32
+   DRV_LIBS += -lnl-3
+   DRV_LIBS += -lnl-genl-3
+-  DRV_CFLAGS += -DCONFIG_LIBNL20
++  DRV_CFLAGS += -DCONFIG_LIBNL20 `pkg-config --cflags libnl-3.0`
+ else
+   ifdef CONFIG_LIBNL_TINY
+     DRV_LIBS += -lnl-tiny
diff --git a/sources b/sources
index f24b76b..bcd4d70 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f2f90dfa7341e64dc3ac6766f49b3cb4  wpa_supplicant-1.0-rc2.tar.gz
+eb3495560baa793f67c423409cc1fd5b  wpa_supplicant-1.0-rc2.git20120302.tar.gz
diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec
index 0e38fe0..f5d46fc 100644
--- a/wpa_supplicant.spec
+++ b/wpa_supplicant.spec
@@ -1,13 +1,14 @@
 %define rcver -rc2
+%define snapshot .git20120302
 
 Summary: WPA/WPA2/IEEE 802.1X Supplicant
 Name: wpa_supplicant
 Epoch: 1
 Version: 1.0
-Release: 0.2%{?dist}
+Release: 0.3%{?dist}
 License: BSD
 Group: System Environment/Base
-Source0: http://w1.fi/releases/%{name}-%{version}%{rcver}.tar.gz
+Source0: http://w1.fi/releases/%{name}-%{version}%{rcver}%{snapshot}.tar.gz
 Source1: build-config
 Source2: %{name}.conf
 Source3: %{name}.service
@@ -37,7 +38,8 @@ Patch5: wpa_supplicant-openssl-more-algs.patch
 Patch6: wpa_supplicant-gui-qt4.patch
 # Need <unistd.h> for getopt
 Patch7: wpa_supplicant-1.0-wpagui-getopt.patch
-Patch8: 0001-Fall-back-to-other-drivers-if-global-init-for-one-dr.patch
+# Fix libnl3 includes path
+Patch8: libnl3-includes.patch
 # Dirty hack for WiMAX
 # http://linuxwimax.org/Download?action=AttachFile&do=get&target=wpa-1.5-README.txt
 Patch100: wpa_supplicant-0.7.2-generate-libeap-peer.patch
@@ -50,7 +52,7 @@ BuildRequires: qt-devel >= 4.0
 BuildRequires: openssl-devel
 BuildRequires: readline-devel
 BuildRequires: dbus-devel
-BuildRequires: libnl-devel
+BuildRequires: libnl3-devel
 BuildRequires: systemd-units
 Requires(post): systemd-sysv
 Requires(post): systemd-units
@@ -102,7 +104,7 @@ Don't use this unless you know what you're doing.
 %patch5 -p1 -b .more-openssl-algs
 %patch6 -p1 -b .qt4
 %patch7 -p1 -b .getopt
-%patch8 -p1 -b .drv-fallback
+%patch8 -p1 -b .libnl3
 
 %build
 pushd wpa_supplicant
@@ -227,6 +229,10 @@ fi
 %postun -n libeap -p /sbin/ldconfig
 
 %changelog
+* Fri Mar  2 2012 Dan Williams <dcbw at redhat.com> - 1:1.0-0.3
+- Update to latest 1.0 git snapshot
+- Rebuild against libnl3
+
 * Thu Feb  2 2012 Dan Williams <dcbw at redhat.com> - 1:1.0-0.2
 - Fix driver fallback for non nl80211-based drivers (rh #783712)
 


More information about the scm-commits mailing list