summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-03 09:10:31 +0000
committerSam James <sam@gentoo.org>2022-02-03 09:33:56 +0000
commit4745d7a71e44aa6a64ce554e60b0752f6f16e244 (patch)
treeac70770a289e5da4300dc874510640f8e3ba08b2 /net-vpn
parentwww-client/vivaldi: Add version 5.0.2497.51 (diff)
downloadgentoo-4745d7a71e44aa6a64ce554e60b0752f6f16e244.tar.gz
gentoo-4745d7a71e44aa6a64ce554e60b0752f6f16e244.tar.bz2
gentoo-4745d7a71e44aa6a64ce554e60b0752f6f16e244.zip
net-vpn/libreswan: fix build on musl
- Add queue-standalone for musl - Define -DGLIBC_KERN_FLIP_HEADERS to workaround header conflict Closes: https://bugs.gentoo.org/832617 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/libreswan/libreswan-4.6.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/net-vpn/libreswan/libreswan-4.6.ebuild b/net-vpn/libreswan/libreswan-4.6.ebuild
index cd32e99023da..afc9e62858a5 100644
--- a/net-vpn/libreswan/libreswan-4.6.ebuild
+++ b/net-vpn/libreswan/libreswan-4.6.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit systemd toolchain-funcs tmpfiles
+inherit systemd flag-o-matic toolchain-funcs tmpfiles
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
HOMEPAGE="https://libreswan.org/"
@@ -46,6 +46,7 @@ RDEPEND="${DEPEND}
!net-vpn/strongswan
selinux? ( sec-policy/selinux-ipsec )
"
+DEPEND+=" elibc_musl? ( sys-libs/queue-standalone )"
usetf() {
usex "$1" true false
@@ -61,6 +62,9 @@ src_prepare() {
src_configure() {
tc-export AR CC
+
+ use elibc_musl && append-cflags -DGLIBC_KERN_FLIP_HEADERS
+
export PREFIX=/usr
export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
export FINALDOCDIR=/usr/share/doc/${PF}/html