commit: d84076775b998e2b3dbc0f2b3bf1bf55219fec81 Author: Zurab Kvachadze <zurabid2016 <AT> gmail <DOT> com> AuthorDate: Tue Dec 24 14:40:35 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 5 02:19:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8407677
dev-perl/Cache-Memcached-Fast: fix build failure with LTO This removes now-unneeded patch that removes '-flto' from CFLAGS, but leaves the job specifier as-is. As of now, Cache-Memcached-Fast builds just fine with LTO enabled. For instance, if '-flto=16' is present in CFLAGS, the patch would only remove the '-flto', leaving '=16' as an argument to a compiler. '=16' not being a valid option, results in a build failure. Closes: https://bugs.gentoo.org/946880 Signed-off-by: Zurab Kvachadze <zurabid2016 <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/39837 Closes: https://github.com/gentoo/gentoo/pull/39837 Signed-off-by: Sam James <sam <AT> gentoo.org> .../Cache-Memcached-Fast-0.280.0-r1.ebuild | 2 -- .../Cache-Memcached-Fast-0.270.0-no-flto.patch | 31 ---------------------- 2 files changed, 33 deletions(-) diff --git a/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.280.0-r1.ebuild b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.280.0-r1.ebuild index 9b6ddf8c0b4d..5d3f956206a7 100644 --- a/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.280.0-r1.ebuild +++ b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.280.0-r1.ebuild @@ -33,8 +33,6 @@ BDEPEND=" PATCHES=( "${FILESDIR}/0.230.0-parallel-make.patch" - # https://github.com/JRaspass/Cache-Memcached-Fast/pull/11 - "${FILESDIR}/${PN}-0.270.0-no-flto.patch" ) PERL_RM_FILES=( diff --git a/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.270.0-no-flto.patch b/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.270.0-no-flto.patch deleted file mode 100644 index fa2aa7b8567b..000000000000 --- a/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.270.0-no-flto.patch +++ /dev/null @@ -1,31 +0,0 @@ -https://github.com/JRaspass/Cache-Memcached-Fast/pull/11 - -From 4bba22fac564a0798022197476f63fb6b481129f Mon Sep 17 00:00:00 2001 -From: Kent Fredric <[email protected]> -Date: Tue, 3 Oct 2017 20:20:14 +1300 -Subject: [PATCH] Strip -flto from CFLAGS - --flto breaks compilation of static archives and needs significant magic -to not break, including sentience about which CC you're using. ---- - Makefile.PL | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/Makefile.PL b/Makefile.PL -index 0054164..ad249b9 100644 ---- a/Makefile.PL -+++ b/Makefile.PL -@@ -24,6 +24,13 @@ - }, - ); - -+sub MY::cflags { -+ my $self = shift; -+ my $orig = $self->MM::cflags(@_); -+ $orig =~ s/-flto\b//g; -+ return $orig; -+} -+ - sub MY::postamble { <<'MAKE' } - $(MYEXTLIB): src/Makefile - cd src && $(MAKE) $(PASTHRU)
