* [Buildroot] [PATCH] package/wpa_supplicant: use correct include path for libnl-3.0
@ 2014-12-16 23:07 Romain Naour
2014-12-20 15:11 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2014-12-16 23:07 UTC (permalink / raw)
To: buildroot
Fixes:
ERROR: unsafe header/library path used in cross-compilation: '/usr/include/libnl3'
Add a dependancy on host-pkgconf when BR2_PACKAGE_LIBNL is enabled.
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Reported-by: J?rg Krause <jkrause@posteo.de>
Cc: J?rg Krause <jkrause@posteo.de>
---
...02-use-correct-include-path-for-libnl-3.0.patch | 26 ++++++++++++++++++++++
package/wpa_supplicant/wpa_supplicant.mk | 2 +-
2 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch
diff --git a/package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch b/package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch
new file mode 100644
index 0000000..6ed0eed
--- /dev/null
+++ b/package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch
@@ -0,0 +1,26 @@
+From 4426de35f0e5dd5b0152474ce6a885b73de60656 Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@openwide.fr>
+Date: Tue, 16 Dec 2014 23:50:33 +0100
+Subject: [PATCH 2/2] use correct include path for libnl-3.0
+
+Signed-off-by: Romain Naour <romain.naour@openwide.fr>
+---
+ src/drivers/drivers.mak | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
+index cdb913e..e9fc83c 100644
+--- a/src/drivers/drivers.mak
++++ b/src/drivers/drivers.mak
+@@ -35,7 +35,7 @@ NEED_RFKILL=y
+ ifdef CONFIG_LIBNL32
+ DRV_LIBS += -lnl-3
+ DRV_LIBS += -lnl-genl-3
+- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
++ DRV_CFLAGS += -DCONFIG_LIBNL20 `pkg-config --cflags libnl-3.0`
+ ifdef CONFIG_LIBNL3_ROUTE
+ DRV_LIBS += -lnl-route-3
+ DRV_CFLAGS += -DCONFIG_LIBNL3_ROUTE
+--
+1.9.3
+
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 0c4abb5..10b2c0a 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -35,7 +35,7 @@ ifeq ($(BR2_PACKAGE_LIBNL),y)
ifeq ($(BR2_STATIC_LIBS),y)
WPA_SUPPLICANT_LIBS += -lnl-3 -lm -lpthread
endif
- WPA_SUPPLICANT_DEPENDENCIES += libnl
+ WPA_SUPPLICANT_DEPENDENCIES += host-pkgconf libnl
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_LIBNL32
else
WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_DRIVER_NL80211
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/wpa_supplicant: use correct include path for libnl-3.0
2014-12-16 23:07 [Buildroot] [PATCH] package/wpa_supplicant: use correct include path for libnl-3.0 Romain Naour
@ 2014-12-20 15:11 ` Thomas Petazzoni
2014-12-21 21:08 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-20 15:11 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Wed, 17 Dec 2014 00:07:27 +0100, Romain Naour wrote:
> Fixes:
> ERROR: unsafe header/library path used in cross-compilation: '/usr/include/libnl3'
>
> Add a dependancy on host-pkgconf when BR2_PACKAGE_LIBNL is enabled.
>
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> Reported-by: J?rg Krause <jkrause@posteo.de>
> Cc: J?rg Krause <jkrause@posteo.de>
> ---
> ...02-use-correct-include-path-for-libnl-3.0.patch | 26 ++++++++++++++++++++++
> package/wpa_supplicant/wpa_supplicant.mk | 2 +-
> 2 files changed, 27 insertions(+), 1 deletion(-)
> create mode 100644 package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch
Thanks, applied. Please submit the patch to upstream wpa_supplicant.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/wpa_supplicant: use correct include path for libnl-3.0
2014-12-20 15:11 ` Thomas Petazzoni
@ 2014-12-21 21:08 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2014-12-21 21:08 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Le 20/12/2014 16:11, Thomas Petazzoni a ?crit :
> Dear Romain Naour,
>
> On Wed, 17 Dec 2014 00:07:27 +0100, Romain Naour wrote:
>> Fixes:
>> ERROR: unsafe header/library path used in cross-compilation: '/usr/include/libnl3'
>>
>> Add a dependancy on host-pkgconf when BR2_PACKAGE_LIBNL is enabled.
>>
>> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>> Reported-by: J?rg Krause <jkrause@posteo.de>
>> Cc: J?rg Krause <jkrause@posteo.de>
>> ---
>> ...02-use-correct-include-path-for-libnl-3.0.patch | 26 ++++++++++++++++++++++
>> package/wpa_supplicant/wpa_supplicant.mk | 2 +-
>> 2 files changed, 27 insertions(+), 1 deletion(-)
>> create mode 100644 package/wpa_supplicant/0002-use-correct-include-path-for-libnl-3.0.patch
> Thanks, applied. Please submit the patch to upstream wpa_supplicant.
>
> Best regards,
>
> Thomas
Patch sent to the wpa_supplicant mailing list, but it's waiting for moderation.
This is the same patch as for hostapd.
Best regards,
Romain Naour
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-21 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 23:07 [Buildroot] [PATCH] package/wpa_supplicant: use correct include path for libnl-3.0 Romain Naour
2014-12-20 15:11 ` Thomas Petazzoni
2014-12-21 21:08 ` Romain Naour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox