From 1cdb73d333da91b0634fcdd1410d87d117e4da2a Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 14 Mar 2024 03:31:48 +0000 Subject: [PATCH] dev-libs/libmcrypt: filter LTO, no-SA Dead upstream, LTO type mismatch. Closes: https://bugs.gentoo.org/924867 Signed-off-by: Sam James --- dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild | 12 ++++++++++-- dev-libs/libmcrypt/libmcrypt-2.5.8-r7.ebuild | 10 +++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild b/dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild index 040220a1d88a7..592c4a66ef6ed 100644 --- a/dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild +++ b/dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit autotools +inherit autotools flag-o-matic DESCRIPTION="Provides an uniform interface to access several encryption algorithms" HOMEPAGE="https://mcrypt.sourceforge.net" @@ -36,6 +36,14 @@ src_prepare() { eautoreconf # update stale autotools } +src_configure() { + # LTO type mismatch (bug #924867) + append-flags -fno-strict-aliasing + filter-lto + + default +} + src_install() { default find "${ED}" -type f -name '*.la' -delete || die diff --git a/dev-libs/libmcrypt/libmcrypt-2.5.8-r7.ebuild b/dev-libs/libmcrypt/libmcrypt-2.5.8-r7.ebuild index a09a112ad33be..f376df81912c4 100644 --- a/dev-libs/libmcrypt/libmcrypt-2.5.8-r7.ebuild +++ b/dev-libs/libmcrypt/libmcrypt-2.5.8-r7.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools +inherit autotools flag-o-matic DESCRIPTION="Provides an uniform interface to access several encryption algorithms" HOMEPAGE="https://mcrypt.sourceforge.net" @@ -39,6 +39,14 @@ src_prepare() { eautoreconf # update stale autotools } +src_configure() { + # LTO type mismatch (bug #924867) + append-flags -fno-strict-aliasing + filter-lto + + default +} + src_install() { default find "${ED}" -type f -name '*.la' -delete || die