However, the change in that commit from:
set(cflags ${COMPILE_OPTIONS})
to:
set(PY_CFLAGS ${COMPILE_OPTIONS})
Doesn't seem a likely cause of the error.
Looking at the build of 16.2.9-0ubuntu0.21.10.1 in Impish:
[ 93%] Generating
../../../lib/cython_modules/lib.3/cephfs.cpython-39-x86_64-linux-gnu.so
cd /<<PKGBUILDDIR>>/src/pybind/cephfs && env CC="/usr/bin/cc
-iquote/<<PKGBUILDDIR>>/src/include -w -D'void0=dead_function(void)'
-D'__Pyx_check_single_interpreter(ARG)=ARG ## 0'" CXX="/usr/bin/c++"
LDSHARED="/usr/bin/cc -shared" OPT="-DNDEBUG -g -fwrapv -O2 -w"
LDFLAGS=-L/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib
CYTHON_BUILD_DIR=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/pybind/cephfs
CEPH_LIBDIR=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib /usr/bin/python3.9
/<<PKGBUILDDIR>>/src/pybind/cephfs/setup.py build --verbose --build-base
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/cython_modules --build-platlib
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/cython_modules/lib.3
We can see the hardening flags are already missing, even though it still
has the older Distutils.cmake.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078244
Title:
ceph: Does not respect compiler flags for Python extensions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2078244/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs