[packages/fortune-mod] fix infinite loop during build on aarch64
atler
atler at pld-linux.org
Sat May 2 19:15:34 CEST 2020
commit b5bc5d8ef2cf9d69d60da1c8d8c1f557d5049594
Author: Jan Palus <atler at pld-linux.org>
Date: Sat May 2 19:15:01 2020 +0200
fix infinite loop during build on aarch64
fortune-mod-rot.patch | 11 +++++++++++
fortune-mod.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/fortune-mod.spec b/fortune-mod.spec
index 0954fd0..27d2843 100644
--- a/fortune-mod.spec
+++ b/fortune-mod.spec
@@ -24,6 +24,7 @@ Source0: http://www.redellipse.net/code/downloads/%{name}-%{version}.tar.gz
Source1: %{name}.sh
Source2: %{name}.csh
Patch0: %{name}-usage.patch
+Patch1: %{name}-rot.patch
BuildRequires: recode-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -153,6 +154,7 @@ pakiet jest tym, czego potrzebujesz.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__make} \
diff --git a/fortune-mod-rot.patch b/fortune-mod-rot.patch
new file mode 100644
index 0000000..e5f96b4
--- /dev/null
+++ b/fortune-mod-rot.patch
@@ -0,0 +1,11 @@
+--- fortune-mod-1.99.1/util/rot.c.orig 2020-05-02 19:13:22.567488950 +0200
++++ fortune-mod-1.99.1/util/rot.c 2020-05-02 19:13:36.327405143 +0200
+@@ -8,7 +8,7 @@
+
+ int main(void)
+ {
+- char a, b;
++ int a, b;
+
+ while ((a = getchar()) != EOF)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fortune-mod.git/commitdiff/b5bc5d8ef2cf9d69d60da1c8d8c1f557d5049594
More information about the pld-cvs-commit
mailing list