commit:     d7d3bc2228304026aff7fa34d196d9995c9b2d31
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 17 20:12:38 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 05:29:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7d3bc22

app-pda/pilot-link: mark as LTO-unsafe

Only for the (absence of) the USE flag that causes the internal code to
be used. It's set by default for desktop/make.defaults anyway so
probably most users go through libusb instead.

Closes: https://bugs.gentoo.org/924480
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-pda/pilot-link/pilot-link-0.12.5-r4.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/app-pda/pilot-link/pilot-link-0.12.5-r4.ebuild 
b/app-pda/pilot-link/pilot-link-0.12.5-r4.ebuild
index 893b7b45b835..b8ad1bf67898 100644
--- a/app-pda/pilot-link/pilot-link-0.12.5-r4.ebuild
+++ b/app-pda/pilot-link/pilot-link-0.12.5-r4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools perl-module
+inherit autotools flag-o-matic perl-module
 
 DESCRIPTION="Suite of tools for moving data between a Palm device and a 
desktop"
 # this is a new mirror; the distfile has the same content inside the tarball,
@@ -42,6 +42,15 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/924480
+       #
+       # Upstream is abandoned since 2016, existing issue offering 
gentoo-patchset
+       # has been ignored. No bug filed.
+       #
+       # The issue is in the internal compat code for *not* using libusb.
+       use usb || filter-lto
+
        # tcl/tk support is disabled as per upstream request.
        # readline is not really optional, bug #626504
        # Does not build with Java 8

Reply via email to