From 18ec03b9bf738b475343f5550d8668f894d95131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 19 Mar 2014 22:19:29 +0100 Subject: [PATCH] Added ppc64le support Resolves: rhbz#1078464 --- graphviz-2.34.0-ppc64le-support.patch | 46 +++++++++++++++++++++++++++ graphviz.spec | 11 +++++-- 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 graphviz-2.34.0-ppc64le-support.patch diff --git a/graphviz-2.34.0-ppc64le-support.patch b/graphviz-2.34.0-ppc64le-support.patch new file mode 100644 index 0000000..0136231 --- /dev/null +++ b/graphviz-2.34.0-ppc64le-support.patch @@ -0,0 +1,46 @@ +--- graphviz-2.34.0/configure.ori ++++ graphviz-2.34.0/configure +@@ -3518,7 +3518,7 @@ if test -z "$LIBPOSTFIX"; then + case "${host_os}" in + *linux* ) + case "${host_cpu}" in +- aarch64 | powerpc64 | s390x | x86_64 | sparc64 ) ++ aarch64 | powerpc64 | powerpc64le | s390x | x86_64 | sparc64 ) + LIBPOSTFIX="64" + ;; + esac +--- graphviz-2.34.0/configure.ac.ori ++++ graphviz-2.34.0/configure.ac +@@ -102,7 +102,7 @@ if test -z "$LIBPOSTFIX"; then + case "${host_os}" in + *linux* ) + case "${host_cpu}" in +- aarch64 | powerpc64 | s390x | x86_64 | sparc64 ) ++ aarch64 | powerpc64 | powerpc64le | s390x | x86_64 | sparc64 ) + LIBPOSTFIX="64" + ;; + esac +--- graphviz-2.34.0/libltdl/config/config.guess.ori ++++ graphviz-2.34.0/libltdl/config/config.guess +@@ -972,6 +972,9 @@ EOF + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64le-unknown-linux-gnu ++ exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; +--- graphviz-2.34.0/config/config.guess.ori ++++ graphviz-2.34.0/config/config.guess +@@ -972,6 +972,9 @@ EOF + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64le-unknown-linux-gnu ++ exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; diff --git a/graphviz.spec b/graphviz.spec index bb9b6f6..d09f9d5 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -1,5 +1,5 @@ # Necessary conditionals -%ifarch ppc64 s390 s390x sparc64 %{arm} alpha aarch64 +%ifarch %{power64} s390 s390x sparc64 %{arm} alpha aarch64 %global SHARP 0 %else %global SHARP 1 @@ -52,7 +52,7 @@ Name: graphviz Summary: Graph Visualization Tools Version: 2.34.0 -Release: 8%{?dist} +Release: 9%{?dist} Group: Applications/Multimedia License: EPL URL: http://www.graphviz.org/ @@ -67,6 +67,8 @@ Patch3: graphviz-2.34.0-lefty-getaddrinfo.patch Patch4: graphviz-2.34.0-CVE-2014-0978-CVE-2014-1235.patch # Fix chknum overflow (CVE-2014-1236) Patch5: graphviz-2.34.0-CVE-2014-1236.patch +# ppc64le support +Patch6: graphviz-2.34.0-ppc64le-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig @@ -274,6 +276,7 @@ Various tcl packages (extensions) for the graphviz tools. %patch3 -p1 -b .lefty-getaddrinfo %patch4 -p1 -b .CVE-2014-0978-CVE-2014-1235 %patch5 -p1 -b .CVE-2014-1236 +%patch6 -p1 -b .ppc64le-support # Attempt to fix rpmlint warnings about executable sources find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';' @@ -562,6 +565,10 @@ rm -rf %{buildroot} %changelog +* Wed Mar 19 2014 Jaroslav Škarvada - 2.34.0-9 +- Added ppc64le support + Resolves: rhbz#1078464 + * Thu Jan 9 2014 Jaroslav Škarvada - 2.34.0-8 - Prevent possible buffer overflow in yyerror() Resolves: CVE-2014-1235