commit: 96de8f81d7b7ff64bf39798f8790913e2759080f Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Jan 4 09:08:22 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jan 4 09:45:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96de8f81
dev-python/matplotlib: Remove -flto Closes: https://bugs.gentoo.org/736122 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../files/matplotlib-3.3.3-disable-lto.patch | 25 ++++++++++++++++++++++ ...lib-3.3.3.ebuild => matplotlib-3.3.3-r1.ebuild} | 1 + 2 files changed, 26 insertions(+) diff --git a/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch b/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch new file mode 100644 index 00000000000..ab377e7f19b --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch @@ -0,0 +1,25 @@ +From 7382d6205bfdc647a8e47c8e417c991d3822eace Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> +Date: Mon, 4 Jan 2021 10:03:32 +0100 +Subject: [PATCH] Disable -flto + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 6e1d19d..ed85d14 100644 +--- a/setup.py ++++ b/setup.py +@@ -147,7 +147,7 @@ class BuildExtraLibraries(BuildExtCommand): + ranlib = True + else: + ranlib = shutil.which('llvm-ranlib') +- if ranlib and has_flag(self.compiler, '-flto'): ++ if False and ranlib and has_flag(self.compiler, '-flto'): + for ext in self.extensions: + ext.extra_compile_args.append('-flto') + cppflags.append('-flto') +-- +2.30.0 + diff --git a/dev-python/matplotlib/matplotlib-3.3.3.ebuild b/dev-python/matplotlib/matplotlib-3.3.3-r1.ebuild similarity index 99% rename from dev-python/matplotlib/matplotlib-3.3.3.ebuild rename to dev-python/matplotlib/matplotlib-3.3.3-r1.ebuild index 1f794c15026..f8757316477 100644 --- a/dev-python/matplotlib/matplotlib-3.3.3.ebuild +++ b/dev-python/matplotlib/matplotlib-3.3.3-r1.ebuild @@ -150,6 +150,7 @@ python_prepare_all() { local PATCHES=( "${FILESDIR}"/matplotlib-3.3.0-test.patch "${FILESDIR}"/matplotlib-3.3.2-test-extra.patch + "${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch ) # requires jupyter-nbconvert
