From facb87ee35e9985df48e4ba1b1a4cf180608a0ad1121afdc989284584eaf74ec Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Mon, 24 Aug 2020 13:32:00 +0000 Subject: [PATCH] Accepting request 828565 from openSUSE:Factory:RISCV - riscv.patch: Add support for RISC-V to libgcroots OBS-URL: https://build.opensuse.org/request/show/828565 OBS-URL: https://build.opensuse.org/package/show/M17N/uim?expand=0&rev=59 --- riscv.patch | 35 +++++++++++++++++++++++++++++++++++ uim.changes | 5 +++++ uim.spec | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 riscv.patch diff --git a/riscv.patch b/riscv.patch new file mode 100644 index 0000000..b3c2b2a --- /dev/null +++ b/riscv.patch @@ -0,0 +1,35 @@ +Index: uim-1.8.6/sigscheme/libgcroots/include/private/gcconfig.h +=================================================================== +--- uim-1.8.6.orig/sigscheme/libgcroots/include/private/gcconfig.h ++++ uim-1.8.6/sigscheme/libgcroots/include/private/gcconfig.h +@@ -479,6 +479,10 @@ + # define NONSTOP + # define mach_type_known + # endif ++# if defined(__riscv) && defined(LINUX) ++# define RISCV ++# define mach_type_known ++# endif + + /* Feel free to add more clauses here */ + +@@ -2022,6 +2026,19 @@ + # endif + # endif + ++# ifdef RISCV ++# define MACH_TYPE "RISC-V" ++# define CPP_WORDSZ __riscv_xlen /* 32 or 64 */ ++# define ALIGNMENT (CPP_WORDSZ/8) ++# ifdef LINUX ++# define OS_TYPE "LINUX" ++ extern int __data_start[]; ++# define DATASTART ((ptr_t)__data_start) ++# define LINUX_STACKBOTTOM ++# define DYNAMIC_LOADING ++# endif ++# endif /* RISCV */ ++ + #if defined(LINUX) && defined(USE_MMAP) + /* The kernel may do a somewhat better job merging mappings etc. */ + /* with anonymous mappings. */ diff --git a/uim.changes b/uim.changes index 783f4b3..d2550fe 100644 --- a/uim.changes +++ b/uim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 21 18:05:04 UTC 2020 - Andreas Schwab + +- riscv.patch: Add support for RISC-V to libgcroots + ------------------------------------------------------------------- Tue Aug 18 12:37:11 UTC 2020 - Dr. Werner Fink diff --git a/uim.spec b/uim.spec index 8743e70..277c01d 100644 --- a/uim.spec +++ b/uim.spec @@ -31,6 +31,7 @@ Source4: baselibs.conf Patch2: uim-fix-crash-in-firefox.diff Patch3: bugzilla-1175274-emacs-27.1.patch Patch4: uim-fix-multiple_declaration.diff +Patch5: riscv.patch BuildRequires: canna-devel BuildRequires: emacs-x11 BuildRequires: fdupes @@ -109,6 +110,7 @@ Contains Qt5 input module plugin for uim %patch2 -p1 %patch3 -p0 %patch4 -p0 +%patch5 -p1 cp emacs/README README.emacs iconv -f euc-jp -t utf-8 < emacs/README.ja > README.ja.emacs