commit: cdbb13625d891c38100cf6c0663f27b375cd7b6a Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Sun Dec 25 17:53:22 2022 +0000 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> CommitDate: Tue Dec 27 19:25:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cdbb1362
dev-python/cymem: fix flags Closes: https://bugs.gentoo.org/887653 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> dev-python/cymem/cymem-2.0.7.ebuild | 2 ++ dev-python/cymem/files/cymem-2.0.7-flags.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/dev-python/cymem/cymem-2.0.7.ebuild b/dev-python/cymem/cymem-2.0.7.ebuild index 23a43a616..99b5c9588 100644 --- a/dev-python/cymem/cymem-2.0.7.ebuild +++ b/dev-python/cymem/cymem-2.0.7.ebuild @@ -20,6 +20,8 @@ KEYWORDS="~amd64 ~x86" BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" +PATCHES=( "${FILESDIR}"/cymem-2.0.7-flags.patch ) + distutils_enable_tests pytest python_test() { diff --git a/dev-python/cymem/files/cymem-2.0.7-flags.patch b/dev-python/cymem/files/cymem-2.0.7-flags.patch new file mode 100644 index 000000000..433fe9e5c --- /dev/null +++ b/dev-python/cymem/files/cymem-2.0.7-flags.patch @@ -0,0 +1,13 @@ +Don't overwrite user optimizations + +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ MOD_NAMES = ["cymem.cymem"] + # http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used + compile_options = { + "msvc": ["/Ox", "/EHsc"], +- "other": ["-O3", "-Wno-strict-prototypes", "-Wno-unused-function"], ++ "other": ["-Wno-strict-prototypes", "-Wno-unused-function"], + } + link_options = {"msvc": [], "other": []} +
