From a7da6f3fd0736b524c89fc66abc183a57c91f57b Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 27 Jun 2022 19:38:03 +0000 Subject: [PATCH] ceph.spec.in: enable toolset 11 also in install This can be surprising but we actually compile things during the `install` stage of `rpm-build`. The example is the pybind's `setup.py` which builds `rados_dummy.c`. Signed-off-by: Radoslaw Zarzynski (cherry picked from commit f05b671798a54dce0e4aa340f76b31f401061a27) --- ceph.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index e2c2b16a29ff7..88cce47062397 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1410,6 +1410,14 @@ popd %install + +%if 0%{with seastar} +%if 0%{?fedora} || 0%{?rhel} +%undefine _annotated_build +. /opt/rh/gcc-toolset-11/enable +%endif +%endif + pushd %{_vpath_builddir} %make_install # we have dropped sysvinit bits -- 2.39.5