From 91dd73494d1f1c85bcd4bcf8bd12268ed30b4f49a4894ee4260750a7a01cbccf Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Mon, 27 May 2024 17:40:53 +0000 Subject: [PATCH] Accepting request 1177177 from openSUSE:Factory:RISCV - cxx-flags.patch: Remove unsupported compiler flag OBS-URL: https://build.opensuse.org/request/show/1177177 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=3 --- cxx-flags.patch | 13 +++++++++++++ xtensor-python.changes | 5 +++++ xtensor-python.spec | 1 + 3 files changed, 19 insertions(+) create mode 100644 cxx-flags.patch diff --git a/cxx-flags.patch b/cxx-flags.patch new file mode 100644 index 0000000..c9fcc27 --- /dev/null +++ b/cxx-flags.patch @@ -0,0 +1,13 @@ +Index: xtensor-python-0.27.0/test/CMakeLists.txt +=================================================================== +--- xtensor-python-0.27.0.orig/test/CMakeLists.txt ++++ xtensor-python-0.27.0/test/CMakeLists.txt +@@ -30,7 +30,7 @@ include(CheckCXXCompilerFlag) + string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) + + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden") + CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG) + + if (HAS_CPP14_FLAG) diff --git a/xtensor-python.changes b/xtensor-python.changes index 6ce78ec..8fba6e1 100644 --- a/xtensor-python.changes +++ b/xtensor-python.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 27 17:29:38 UTC 2024 - Andreas Schwab + +- cxx-flags.patch: Remove unsupported compiler flag + ------------------------------------------------------------------- Mon May 6 13:29:15 UTC 2024 - Matwey Kornilov diff --git a/xtensor-python.spec b/xtensor-python.spec index 820287c..262d71b 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -24,6 +24,7 @@ License: BSD-3-Clause URL: https://github.com/xtensor-stack/xtensor-python Source0: https://github.com/xtensor-stack/xtensor-python/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz Patch0: 0001-Install-as-arch-independent.patch +Patch1: cxx-flags.patch BuildRequires: cmake BuildRequires: doctest-devel BuildRequires: doxygen