commit:     1cd1ff662fd84f3f45d9bb238ede6d29ff83a75d
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 20:49:28 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 20:51:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cd1ff66

net-vpn/ovpn-dco: build fix

We need to filter out the -fomit-frame-pointer cflag since this builds
with -pg.

Closes: https://bugs.gentoo.org/907744
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild 
b/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild
index 6f65a6aff59c..fb761cca9d7c 100644
--- a/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild
+++ b/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit linux-mod
+inherit flag-o-matic linux-mod
 
 DESCRIPTION="OpenVPN Data Channel Offload in the linux kernel"
 HOMEPAGE="https://github.com/OpenVPN/ovpn-dco";
@@ -37,6 +37,13 @@ pkg_setup() {
        linux-mod_pkg_setup
 }
 
+src_configure() {
+       # Causes build failures because it builds with -pg,
+       # bug #907744
+       filter-flags -fomit-frame-pointer
+       default
+}
+
 src_compile() {
        BUILD_PARAMS+=" KERNEL_SRC='${KERNEL_DIR}'"
        [[ ${PV} != 9999 ]] && BUILD_PARAMS+=" REVISION='${PV}'"

Reply via email to