]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: patch boost source to support python 3.10 47027/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 9 Jul 2022 01:58:32 +0000 (21:58 -0400)
committerKefu Chai <tchaikov@gmail.com>
Sat, 16 Jul 2022 03:57:17 +0000 (11:57 +0800)
commitdc14e97d63d47ccb56873b7d1bee6f5e50f1c185
tree189c9bcdc5d41b63dbe0b7a46b3c45e9cad4989c
parente27cc18f0c47a7cec9f2094f64c1bdcaf8825f06
cmake: patch boost source to support python 3.10

Python 3.10 doesn't include the _Py_fopen() function.  Boost
1.75.0 includes a patch which switches to using fopen() for
python versions >= 3.1, but Pacific is using boost 1.73.0,
which still uses _Py_fopen().  This commit adds the boost
1.75.0 patch to `make-dist`, so it's applied to our copy of
the boost source which is then used when building RPM packages.

the included patch comes from
https://github.com/boostorg/python/commit/d9f06052e28873037db7f98629bce72182a42410

Fixes: https://tracker.ceph.com/issues/56466
please note, this change is not cherry-picked from the
"main" branch. as we use boost 1.75 already in that branch,
but to minimize the risk of switching boost from 1.73 to
1.75 in a LTS branch like pacific, we just add a fix to
address this particular issue in boost 1.73.

Signed-off-by: Tim Serong <tserong@suse.com>
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/BuildBoost.cmake
cmake/modules/boost-python-use-public-api-for-filename.patch [new file with mode: 0644]