summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-08-16 16:54:59 +0200
committerSam James <sam@gentoo.org>2021-08-16 17:17:39 +0100
commit51baf1a63c646e68217f5dfd81c09999fb07a87c (patch)
tree4924208e8845cb05d8e1d7f9f828c5819830dfdf /net-wireless/hostapd
parentnet-wireless/hostapd: Remove vulnerable 2.9-r5 (diff)
downloadgentoo-51baf1a63c646e68217f5dfd81c09999fb07a87c.tar.gz
gentoo-51baf1a63c646e68217f5dfd81c09999fb07a87c.tar.bz2
gentoo-51baf1a63c646e68217f5dfd81c09999fb07a87c.zip
net-wireless/hostapd: Correctly detect libnl when cross-compiling
* Build system tries to find libnl only on the host system, which breaks cross-compilation as it cannot find it: ``` Package libnl-3.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libnl-3.0.pc' to the PKG_CONFIG_PATH environment variable Package 'libnl-3.0', required by 'virtual:world', not found ``` * We can solve this using pkg-config to pass additional include for the cross-compilation libnl to the CFLAGS Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Closes: https://github.com/gentoo/gentoo/pull/22005 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-wireless/hostapd')
-rw-r--r--net-wireless/hostapd/hostapd-2.9-r6.ebuild4
-rw-r--r--net-wireless/hostapd/hostapd-9999.ebuild4
2 files changed, 6 insertions, 2 deletions
diff --git a/net-wireless/hostapd/hostapd-2.9-r6.ebuild b/net-wireless/hostapd/hostapd-2.9-r6.ebuild
index 8878538c8860..1b8727055c94 100644
--- a/net-wireless/hostapd/hostapd-2.9-r6.ebuild
+++ b/net-wireless/hostapd/hostapd-2.9-r6.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit toolchain-funcs systemd savedconfig
+inherit flag-o-matic systemd savedconfig toolchain-funcs
DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
HOMEPAGE="https://w1.fi/ https://w1.fi/cgit/hostap/"
@@ -40,6 +40,7 @@ DEPEND="
netlink? ( net-libs/libnfnetlink )
sqlite? ( >=dev-db/sqlite-3 )"
RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
pkg_pretend() {
if use internal-tls; then
@@ -194,6 +195,7 @@ src_configure() {
# support it.
if has_version ">=dev-libs/libnl-3.2"; then
echo "CONFIG_LIBNL32=y" >> ${CONFIG} || die
+ append-cflags $($(tc-getPKG_CONFIG) --cflags libnl-3.0)
fi
# TODO: Add support for BSD drivers
diff --git a/net-wireless/hostapd/hostapd-9999.ebuild b/net-wireless/hostapd/hostapd-9999.ebuild
index b9116b4cb252..dacd094e49ee 100644
--- a/net-wireless/hostapd/hostapd-9999.ebuild
+++ b/net-wireless/hostapd/hostapd-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit toolchain-funcs systemd savedconfig
+inherit flag-o-matic systemd savedconfig toolchain-funcs
DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
HOMEPAGE="https://w1.fi/ https://w1.fi/cgit/hostap/"
@@ -40,6 +40,7 @@ DEPEND="
netlink? ( net-libs/libnfnetlink )
sqlite? ( >=dev-db/sqlite-3 )"
RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
pkg_pretend() {
if use internal-tls; then
@@ -184,6 +185,7 @@ src_configure() {
# support it.
if has_version ">=dev-libs/libnl-3.2"; then
echo "CONFIG_LIBNL32=y" >> ${CONFIG} || die
+ append-cflags $($(tc-getPKG_CONFIG) --cflags libnl-3.0)
fi
# TODO: Add support for BSD drivers