Hello community, here is the log from the commit of package gn for openSUSE:Factory checked in at 2020-11-06 23:43:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gn (Old) and /work/SRC/openSUSE:Factory/.gn.new.11331 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gn" Fri Nov 6 23:43:26 2020 rev:10 rq:845208 version:0.1807 Changes: -------- --- /work/SRC/openSUSE:Factory/gn/gn.changes 2020-10-12 13:46:53.853911161 +0200 +++ /work/SRC/openSUSE:Factory/.gn.new.11331/gn.changes 2020-11-06 23:43:32.539443192 +0100 @@ -1,0 +2,5 @@ +Sat Oct 31 13:43:03 UTC 2020 - Callum Farmer <callumjfarme...@gmail.com> + +- Add riscv.patch to add support for RISCV + +------------------------------------------------------------------- New: ---- riscv.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gn.spec ++++++ --- /var/tmp/diff_new_pack.YUOR4C/_old 2020-11-06 23:43:33.315441700 +0100 +++ /var/tmp/diff_new_pack.YUOR4C/_new 2020-11-06 23:43:33.319441692 +0100 @@ -25,6 +25,7 @@ Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.xz Patch0: gn-flags.patch Patch1: gn-always-python3.patch +Patch2: riscv.patch BuildRequires: gcc-c++ BuildRequires: ninja BuildRequires: python3-base @@ -39,6 +40,7 @@ %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build export CC=gcc ++++++ riscv.patch ++++++ Index: gn-0.1726/src/util/build_config.h =================================================================== --- gn-0.1726.orig/src/util/build_config.h +++ gn-0.1726/src/util/build_config.h @@ -161,6 +161,16 @@ #define ARCH_CPU_32_BITS 1 #define ARCH_CPU_BIG_ENDIAN 1 #endif +#elif defined(__riscv) +#define ARCH_CPU_RISCV_FAMILY 1 +#if __riscv_xlen == 64 +#define ARCH_CPU_RISCV64 1 +#define ARCH_CPU_64_BITS 1 +#else +#define ARCH_CPU_RISCV32 1 +#define ARCH_CPU_32_BITS 1 +#endif +#define ARCH_CPU_LITTLE_ENDIAN 1 #else #error Please add support for your architecture in build_config.h #endif