summarylogtreecommitdiffstats
path: root/ceph-17.2.4-pybind-unmock-cythonize.patch
AgeCommit message (Collapse)Author
2022-10-26pkgbuild: pybind-unmock-cythonize.patchBazaah
This is a strange one. Each of pybind/{rados,rbd,cephfs,rgw}/setup.py has a clause which potentially mocks cythonize(): ``` if (len(sys.argv) >= 2 and any(i in sys.argv[1:] for i in ('--help', 'clean', 'egg_info', '--version') )): def cythonize(x, **kwargs): return x ``` The important thing here is 'egg_info', which is _always_ invoked by the cmake functions the upstream uses in cmake/modules/Distutils... leading to failures that look like this: ``` IF BUILD_DOC: ^ ------------------------------------------------------------ rados.pxd:7:3: Compile-time name 'BUILD_DOC' not defined Error compiling Cython file: ------------------------------------------------------------ ``` This commit patches the setup.py(s), removing this clause which then allows the cython builds to work just fine. I have no idea how or even if the upstream gets clean builds as the parts that make up this bug haven't been touched in six years.