aboutsummaryrefslogtreecommitdiffstats
path: root/community/evince/evince-lzmasdk-s390x.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-08-10 10:10:41 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-08-10 10:10:45 +0200
commitb1384db7d2e4614c9a99b980e9f781786edcb87b (patch)
treea522ff3fa0d1eaebc4acc67b5a5c7295c02e0c21 /community/evince/evince-lzmasdk-s390x.patch
parent37b042ddf4e8bc69536d6e42fb1f09e091823b9b (diff)
downloadaports-b1384db7d2e4614c9a99b980e9f781786edcb87b.tar.gz
aports-b1384db7d2e4614c9a99b980e9f781786edcb87b.tar.bz2
aports-b1384db7d2e4614c9a99b980e9f781786edcb87b.tar.xz
community/evince: fix build on s390x
Diffstat (limited to 'community/evince/evince-lzmasdk-s390x.patch')
-rw-r--r--community/evince/evince-lzmasdk-s390x.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/evince/evince-lzmasdk-s390x.patch b/community/evince/evince-lzmasdk-s390x.patch
new file mode 100644
index 0000000000..618d1d0d5f
--- /dev/null
+++ b/community/evince/evince-lzmasdk-s390x.patch
@@ -0,0 +1,17 @@
+MY_CPU_BE expands to an empty token sequence, so defined (MY_CPU_BE)
+has to be used in this context. This code is only reachable for
+s390x, ppc64 sets MY_CPU_NAME earlier.
+
+diff -ur evince-3.25.4.orig/cut-n-paste/unarr/lzmasdk/CpuArch.h evince-3.25.4/cut-n-paste/unarr/lzmasdk/CpuArch.h
+--- evince-3.25.4.orig/cut-n-paste/unarr/lzmasdk/CpuArch.h 2017-07-22 07:58:23.000000000 +0200
++++ evince-3.25.4/cut-n-paste/unarr/lzmasdk/CpuArch.h 2017-07-31 13:32:33.893245858 +0200
+@@ -174,7 +174,7 @@
+ #ifndef MY_CPU_NAME
+ #ifdef MY_CPU_LE
+ #define MY_CPU_NAME "LE"
+- #elif MY_CPU_BE
++ #elif defined (MY_CPU_BE)
+ #define MY_CPU_NAME "BE"
+ #else
+ /*
+Only in evince-3.25.4/cut-n-paste/unarr/lzmasdk: CpuArch.h~