From 4d399c7b4f59f0ec81a0249585ce1a1ab008ef8f Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz93@gmail.com>
Date: Thu, 4 Apr 2024 00:57:24 -0400
Subject: net-vpn/tinc: mark as LTO-unsafe

It is fixed upstream in git but not released.

Closes: https://bugs.gentoo.org/877743
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
---
 net-vpn/tinc/tinc-1.1_pre18.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'net-vpn/tinc')

diff --git a/net-vpn/tinc/tinc-1.1_pre18.ebuild b/net-vpn/tinc/tinc-1.1_pre18.ebuild
index a1f6b4969f72..e5e8aca62cfa 100644
--- a/net-vpn/tinc/tinc-1.1_pre18.ebuild
+++ b/net-vpn/tinc/tinc-1.1_pre18.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,7 +6,7 @@ EAPI=7
 MY_PV=${PV/_/}
 MY_P=${PN}-${MY_PV}
 
-inherit autotools systemd
+inherit autotools flag-o-matic systemd
 
 DESCRIPTION="tinc is an easy to configure VPN implementation"
 HOMEPAGE="https://www.tinc-vpn.org/"
@@ -49,6 +49,13 @@ src_prepare() {
 }
 
 src_configure() {
+	# -Werror=lto-type-mismatch
+	# https://bugs.gentoo.org/877743
+	#
+	# Fixed upstream:
+	# https://github.com/gsliepen/tinc/commit/28b7a53b693f6b4e70218a926e68a36ece54cda1
+	filter-lto
+
 	econf \
 		--enable-jumbograms \
 		--enable-legacy-protocol \
-- 
cgit v1.2.3-65-gdbad