]> git.pld-linux.org Git - packages/fortune-mod.git/commitdiff
fix infinite loop during build on aarch64
authorJan Palus <atler@pld-linux.org>
Sat, 2 May 2020 17:15:01 +0000 (19:15 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 2 May 2020 17:15:01 +0000 (19:15 +0200)
fortune-mod-rot.patch [new file with mode: 0644]
fortune-mod.spec

diff --git a/fortune-mod-rot.patch b/fortune-mod-rot.patch
new file mode 100644 (file)
index 0000000..e5f96b4
--- /dev/null
@@ -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)
+     {
index 0954fd0434c80d36f899d57e2a0426c9f607f34d..27d2843c89170d4fb89d7ee4df30bd03ddc50ffa 100644 (file)
@@ -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} \
This page took 0.043323 seconds and 4 git commands to generate.