rpms/graphviz/devel graphviz-black.patch, NONE, 1.1 graphviz.spec, 1.35, 1.36

Patrick Laughton (jima) fedora-extras-commits at redhat.com
Thu Jul 12 19:43:50 UTC 2007


Author: jima

Update of /cvs/pkgs/rpms/graphviz/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv721

Modified Files:
	graphviz.spec 
Added Files:
	graphviz-black.patch 
Log Message:

* Thu Jul 12 2007 Patrick "Jima" Laughton <jima at beer.tclug.org> 2.12-8
- Patch to fix BZ#241790 (thanks John!)


graphviz-black.patch:

--- NEW FILE graphviz-black.patch ---
--- graphviz-2.12/lib/common/colxlate.c.orig	2006-07-26 22:44:05.000000000 -0500
+++ graphviz-2.12/lib/common/colxlate.c	2007-07-12 14:07:13.000000000 -0500
@@ -1,4 +1,4 @@
-/* $Id: colxlate.c,v 1.11 2006/07/27 03:44:05 erg Exp $ $Revision: 1.11 $ */
+/* $Id: colxlate.c,v 1.13 2007/07/12 16:47:57 erg Exp $ $Revision: 1.13 $ */
 /* vim:set shiftwidth=4 ts=8: */
 
 /**********************************************************
@@ -180,6 +180,10 @@
 
 /* resolveColor:
  * Resolve input color str allowing color scheme namespaces.
+ *  0) "black" => "black" 
+ *    NB: This is something of a hack due to the remaining codegen.
+ *        Once these are gone, this case could be removed and all references
+ *        to "black" could be replaced by "/X11/black".
  *  1) No initial / => 
  *          if colorscheme is defined and no "X11", return /colorscheme/str
  *          else return str
@@ -214,7 +218,8 @@
     char* ss;   /* second slash */
     char* c2;   /* second char */
 
-    if (*str == '/') {   /* if begins with '/' */
+    if ((*str == 'b') || !strncmp(str+1,"lack",4)) return str;
+    else if (*str == '/') {   /* if begins with '/' */
 	c2 = str+1;
         if ((ss = strchr(c2, '/'))) {  /* if has second '/' */
 	    if (*c2 == '/') {    /* if second '/' is second character */


Index: graphviz.spec
===================================================================
RCS file: /cvs/pkgs/rpms/graphviz/devel/graphviz.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- graphviz.spec	5 May 2007 17:44:37 -0000	1.35
+++ graphviz.spec	12 Jul 2007 19:43:18 -0000	1.36
@@ -7,13 +7,14 @@
 #-- graphviz src.rpm --------------------------------------------------------
 Name:		graphviz
 Version:	2.12
-Release:	7%{?dist}
+Release:	8%{?dist}
 
 License:	CPL
 URL:		http://www.graphviz.org/
 Source:		http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.12.tar.gz
 Patch0:		%{name}-php5.patch
 Patch1:		%{name}-libcdt.patch
+Patch2:		%{name}-black.patch
 
 # graphviz is relocatable
 #Prefix: /usr
@@ -403,6 +404,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # XXX ix86 only used to have -ffast-math, let's use everywhere
@@ -439,6 +441,9 @@
 #-- changelog --------------------------------------------------
 
 %changelog
+* Thu Jul 12 2007 Patrick "Jima" Laughton <jima at beer.tclug.org> 2.12-8
+- Patch to fix BZ#241790 (thanks John!)
+
 * Sat May 05 2007 Patrick "Jima" Laughton <jima at beer.tclug.org> 2.12-7
 - Patch to fix BZ#237496
 - Disabling relocatability to work around BZ#237082




More information about the scm-commits mailing list