Compare commits

...

3 Commits

Author SHA1 Message Date
David Abdurachmanov 899d05f147
Merge remote-tracking branch 'up/f29' into f29-riscv64
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-10-20 10:57:50 +02:00
David Abdurachmanov 85abe445d3 Merge remote-tracking branch 'up/master' into master-riscv64 2018-06-21 06:25:09 +02:00
David Abdurachmanov 55886a9a78
Add support for RISC-V (riscv64)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-20 10:30:11 +02:00
2 changed files with 22 additions and 1 deletions

View File

@ -46,7 +46,7 @@ BuildRequires: pkgconfig(libsystemd)
Name: qt5-qtbase
Summary: Qt5 - QtBase components
Version: 5.11.1
Release: 7%{?dist}
Release: 7.0.riscv64%{?dist}
# See LGPL_EXCEPTIONS.txt, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -118,6 +118,9 @@ Patch68: qtbase-everywhere-src-5.11.1-python3.patch
# glibc stat
Patch69: qt5-qtbase-glibc.patch
# add support for RISC-V (riscv64)
Patch80: qtbase5-double-conversion-add-riscv.patch
## upstream patches
# Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires.
@ -373,6 +376,7 @@ Qt5 libraries used for drawing widgets and OpenGL items.
%if 0%{?fedora} > 28
%patch69 -p1 -b .glibc
%endif
%patch80 -p1 -b .double_con_riscv
## upstream patches
@ -983,6 +987,9 @@ fi
%changelog
* Sat Oct 20 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 5.11.1-7.0.riscv64
- add support for RISC-V (riscv64)
* Thu Jul 26 2018 Than Ngo <than@redhat.com> - 5.11.1-7
- fixed FTBFS

View File

@ -0,0 +1,14 @@
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
index 20bfd36..fe6cb4c 100644
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
@@ -65,7 +65,8 @@
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
defined(__SH4__) || defined(__alpha__) || \
defined(_MIPS_ARCH_MIPS32R2) || \
- defined(__AARCH64EL__)
+ defined(__AARCH64EL__) || \
+ defined(__riscv)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
#if defined(_WIN32)