From 17012b0c6e5b4ccc884da3bca16fdbbaae91f46c Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Thu, 4 Feb 2021 13:55:14 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/pybind11.git#69ba4e866e76f0774dba8553c42e6fb6f9b19751 --- pybind11.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pybind11.spec b/pybind11.spec index 2599419..d60551b 100644 --- a/pybind11.spec +++ b/pybind11.spec @@ -119,7 +119,11 @@ pys="$pys python3" %endif for py in $pys; do mkdir $py - %cmake -B $py -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF} + # When -DCMAKE_BUILD_TYPE is set to Release, the tests in %%check might segfault. + # However, we do not ship any binaries, and therefore Debug + # build type does not affect the results. + # https://bugzilla.redhat.com/show_bug.cgi?id=1921199 + %cmake -B $py -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF} %make_build -C $py done