Add small fix for RISC-V support.

This commit is contained in:
Richard W.M. Jones 2017-12-30 07:19:00 +00:00
parent 0f3e93bcc7
commit 0953dfa2a7
2 changed files with 18 additions and 1 deletions

View File

@ -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 */

View File

@ -66,7 +66,7 @@
Name: %{orig_name}%{?name_suffix} Name: %{orig_name}%{?name_suffix}
Version: %{major_version}.%{minor_version}.1 Version: %{major_version}.%{minor_version}.1
Release: 6%{?relsuf}%{?dist} Release: 7%{?relsuf}%{?dist}
Summary: Cross-platform make system Summary: Cross-platform make system
# most sources are BSD # most sources are BSD
@ -95,6 +95,9 @@ Patch100: %{name}-findruby.patch
# replace release flag -O3 with -O2 for fedora # replace release flag -O3 with -O2 for fedora
Patch101: %{name}-fedora-flag_release.patch 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 # Patch for renaming on EPEL
%if 0%{?name_suffix:1} %if 0%{?name_suffix:1}
Patch1: %{name}-rename.patch Patch1: %{name}-rename.patch
@ -508,6 +511,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%changelog %changelog
* Sat Dec 30 2017 Richard W.M. Jones <rjones@redhat.com> - 3.10.1-7
- Add small fix for RISC-V support.
* Tue Dec 26 2017 Björn Esser <besser82@fedoraproject.org> - 3.10.1-6 * Tue Dec 26 2017 Björn Esser <besser82@fedoraproject.org> - 3.10.1-6
- Rebuilt for jsoncpp.so.20 - Rebuilt for jsoncpp.so.20