Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1078464

Summary: add ppc64le support
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: graphvizAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alex, jskarvad, tremble
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-19 21:19:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    
Attachments:
Description Flags
graphviz-2.34.0-ppc64le-support.patch none

Description Menanteau Guy 2014-03-19 18:03:52 UTC
Created attachment 876531 [details]
graphviz-2.34.0-ppc64le-support.patch

add ppc64le support

Version-Release number of selected component (if applicable):
graphviz-2.34.0

Please consider following patch:

--- graphviz.spec.ori
+++ graphviz.spec
@@ -1,5 +1,5 @@
 # Necessary conditionals
-%ifarch ppc64 s390 s390x sparc64 %{arm} alpha aarch64
+%ifarch ppc64 ppc64le s390 s390x sparc64 %{arm} alpha aarch64
 %global SHARP  0
 %else
 %global SHARP  1
@@ -67,6 +67,8 @@ Patch3:                       graphviz-2.34.0-lefty-getaddri
 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 th
 %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 {} ';'

Comment 1 Jaroslav Škarvada 2014-03-19 21:05:02 UTC
Thanks for the patch. The only modification I am using is the %power64 macro instead of the enumeration of arches.