From 50fd6862b1daf93b6cc10fb683e037dbf084e9c3 Mon Sep 17 00:00:00 2001 From: wxiat Date: Thu, 27 Jul 2023 10:01:45 +0800 Subject: [PATCH] add sw --- groff-1.22.3-sw.patch | 13 +++++++++++++ groff.spec | 10 ++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 groff-1.22.3-sw.patch diff --git a/groff-1.22.3-sw.patch b/groff-1.22.3-sw.patch new file mode 100644 index 0000000..d8f0089 --- /dev/null +++ b/groff-1.22.3-sw.patch @@ -0,0 +1,13 @@ +diff -Naur groff-1.22.3.org/src/libs/snprintf/snprintf.c groff-1.22.3.sw/src/libs/snprintf/snprintf.c +--- groff-1.22.3.org/src/libs/snprintf/snprintf.c 2023-07-27 09:44:25.338960405 +0800 ++++ groff-1.22.3.sw/src/libs/snprintf/snprintf.c 2023-07-27 09:45:07.465449489 +0800 +@@ -370,6 +370,9 @@ + * Small values favour memcpy & memset (extra procedure call, less code), + * large values favour inline code (saves procedure call, more code). + */ ++#if defined(__sw_64__) || defined(__sw_64) ++# define breakeven_point 2 /* AXP (DEC Alpha) - gcc or cc */ ++#endif + #if defined(__alpha__) || defined(__alpha) + # define breakeven_point 2 /* AXP (DEC Alpha) - gcc or cc */ + #endif diff --git a/groff.spec b/groff.spec index 36377fb..8229b5c 100644 --- a/groff.spec +++ b/groff.spec @@ -1,11 +1,11 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %{!?with_x:%global with_x 1} Summary: A document formatting system Name: groff Version: 1.22.3 Release: 18%{anolis_release}%{?dist} -License: GPLv3+ and GFDL and BSD and MIT +License: GPLv3+ and GFDL and BSD and MIT: Group: Applications/Publishing URL: http://www.gnu.org/software/groff/ Source: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz @@ -21,6 +21,7 @@ Patch3: 0004-don-t-use-usr-bin-env-in-shebang.patch Patch4: 0005-Add-missing-rule-for-gropdf.patch # resolves: #1602530 Patch5: groff-1.22.3-coverity.patch +Patch6: groff-1.22.3-sw.patch Requires: coreutils, /sbin/install-info, groff-base = %{version}-%{release} Requires(post): info @@ -99,6 +100,7 @@ language and documentation for creating PDF files. %prep %setup -q +%patch6 -p1 git init git config user.email groff-owner@fedoraproject.org git config user.name "groff owner" @@ -431,6 +433,10 @@ fi %doc %{_pkgdocdir}/pdf/ %changelog +* Thu Jul 27 2023 wxiat - 1.22.3-18.0.2 +- add sw arch + + * Wed Feb 3 2021 Liwei Ge - 1.22.3-18.0.1 - Build in single thread -- Gitee