From 0953dfa2a795e86458e4f430c79c68b4ad7b8364 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 30 Dec 2017 07:19:00 +0000 Subject: [PATCH] Add small fix for RISC-V support. --- cmake-3.10.1-fix-riscv.patch | 11 +++++++++++ cmake.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 cmake-3.10.1-fix-riscv.patch diff --git a/cmake-3.10.1-fix-riscv.patch b/cmake-3.10.1-fix-riscv.patch new file mode 100644 index 0000000..5a02567 --- /dev/null +++ b/cmake-3.10.1-fix-riscv.patch @@ -0,0 +1,11 @@ +--- cmake-3.10.1/Utilities/KWIML/include/kwiml/abi.h.old 2017-12-30 06:41:48.775310791 +0000 ++++ cmake-3.10.1/Utilities/KWIML/include/kwiml/abi.h 2017-12-30 06:41:56.332310127 +0000 +@@ -468,7 +468,7 @@ + # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE + + /* RISC-V */ +-#elif defined(__riscv__) ++#elif defined(__riscv) + # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE + + /* Unknown CPU */ diff --git a/cmake.spec b/cmake.spec index 7e57128..d629c90 100644 --- a/cmake.spec +++ b/cmake.spec @@ -66,7 +66,7 @@ Name: %{orig_name}%{?name_suffix} Version: %{major_version}.%{minor_version}.1 -Release: 6%{?relsuf}%{?dist} +Release: 7%{?relsuf}%{?dist} Summary: Cross-platform make system # most sources are BSD @@ -95,6 +95,9 @@ Patch100: %{name}-findruby.patch # replace release flag -O3 with -O2 for fedora Patch101: %{name}-fedora-flag_release.patch +# Patch to fix RISC-V support. Sent upstream 2017-12-30. +Patch102: cmake-3.10.1-fix-riscv.patch + # Patch for renaming on EPEL %if 0%{?name_suffix:1} Patch1: %{name}-rename.patch @@ -508,6 +511,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %changelog +* Sat Dec 30 2017 Richard W.M. Jones - 3.10.1-7 +- Add small fix for RISC-V support. + * Tue Dec 26 2017 Björn Esser - 3.10.1-6 - Rebuilt for jsoncpp.so.20