commit:     84f2bdae597f394425b96329fc8305d9b729f782
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Fri Apr  5 01:45:22 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Apr  5 01:47:56 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84f2bdae

sys-cluster/ceph: revbumps, fix build with cython-29 (bug 682482)

Closes: https://bugs.gentoo.org/682482
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../{ceph-13.2.5-r1.ebuild => ceph-13.2.5-r2.ebuild}    |  1 +
 .../{ceph-14.2.0-r3.ebuild => ceph-14.2.0-r4.ebuild}    |  1 +
 sys-cluster/ceph/files/ceph-14.2.0-cython-0.29.patch    | 17 +++++++++++++++++
 3 files changed, 19 insertions(+)

diff --git a/sys-cluster/ceph/ceph-13.2.5-r1.ebuild 
b/sys-cluster/ceph/ceph-13.2.5-r2.ebuild
similarity index 99%
rename from sys-cluster/ceph/ceph-13.2.5-r1.ebuild
rename to sys-cluster/ceph/ceph-13.2.5-r2.ebuild
index 7d088a08ac6..2ef0f19a401 100644
--- a/sys-cluster/ceph/ceph-13.2.5-r1.ebuild
+++ b/sys-cluster/ceph/ceph-13.2.5-r2.ebuild
@@ -147,6 +147,7 @@ PATCHES=(
        "${FILESDIR}/ceph-13.2.0-no-virtualenvs.patch"
        "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch"
        "${FILESDIR}/ceph-13.2.5-no-automagic-deps.patch"
+       "${FILESDIR}/ceph-14.2.0-cython-0.29.patch"
 )
 
 check-reqs_export_vars() {

diff --git a/sys-cluster/ceph/ceph-14.2.0-r3.ebuild 
b/sys-cluster/ceph/ceph-14.2.0-r4.ebuild
similarity index 99%
rename from sys-cluster/ceph/ceph-14.2.0-r3.ebuild
rename to sys-cluster/ceph/ceph-14.2.0-r4.ebuild
index 01499ef0ffe..61c4b21e9f8 100644
--- a/sys-cluster/ceph/ceph-14.2.0-r3.ebuild
+++ b/sys-cluster/ceph/ceph-14.2.0-r4.ebuild
@@ -150,6 +150,7 @@ PATCHES=(
        "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch"
        "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch"
        "${FILESDIR}/ceph-14.2.0-link-crc32-statically.patch"
+       "${FILESDIR}/ceph-14.2.0-cython-0.29.patch"
 )
 
 # dpdk and ninja don't get along

diff --git a/sys-cluster/ceph/files/ceph-14.2.0-cython-0.29.patch 
b/sys-cluster/ceph/files/ceph-14.2.0-cython-0.29.patch
new file mode 100644
index 00000000000..be133c121d0
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph-14.2.0-cython-0.29.patch
@@ -0,0 +1,17 @@
+--- ceph-13.2.1/cmake/modules/Distutils.cmake.old      2018-07-26 
17:39:56.000000000 -0000
++++ ceph-13.2.1/cmake/modules/Distutils.cmake  2018-12-24 05:43:51.566174070 
-0000
+@@ -58,8 +62,13 @@
+ function(distutils_install_cython_module name)
+   get_property(compiler_launcher GLOBAL PROPERTY RULE_LAUNCH_COMPILE)
+   get_property(link_launcher GLOBAL PROPERTY RULE_LAUNCH_LINK)
+-  set(PY_CC "${compiler_launcher} ${CMAKE_C_COMPILER}")
++  string(REPLACE " " ";" cflags ${CMAKE_C_FLAGS})
++  list(APPEND cflags -iquote${CMAKE_SOURCE_DIR}/src/include -w)
++  list(APPEND cflags -D'void0=dead_function\(void\)')
++  list(APPEND cflags -D'__Pyx_check_single_interpreter\(ARG\)=ARG \#\# 0')
++  string(REPLACE ";" " " cflags "${cflags}")
++  set(PY_CC "${compiler_launcher} ${CMAKE_C_COMPILER} ${cflags}")
+   set(PY_LDSHARED "${link_launcher} ${CMAKE_C_COMPILER} -shared")
+   install(CODE "
+     set(ENV{CC} \"${PY_CC}\")
+     set(ENV{LDSHARED} \"${PY_LDSHARED}\")

Reply via email to