- fix compilation of yast2-qt-graph

OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=35
This commit is contained in:
Stephan Kulow 2011-10-03 13:56:13 +00:00 committed by Git OBS Bridge
parent ffa1f11af6
commit be906b1647
3 changed files with 31 additions and 0 deletions

24
fix-headers.diff Normal file
View File

@ -0,0 +1,24 @@
Index: graphviz-2.28.0/lib/cdt/cdt.h
===================================================================
--- graphviz-2.28.0.orig/lib/cdt/cdt.h 2010-04-26 20:35:08.000000000 +0200
+++ graphviz-2.28.0/lib/cdt/cdt.h 2011-10-03 15:47:24.632084472 +0200
@@ -17,6 +17,7 @@
#endif
#include <stddef.h> /* size_t */
+#include <string.h>
#ifndef _BEGIN_EXTERNS_
#define _BEGIN_EXTERNS_
@@ -238,11 +239,6 @@ extern int dtsize _ARG_((Dt_t*));
extern int dtstat _ARG_((Dt_t*, Dtstat_t*, int));
extern unsigned int dtstrhash _ARG_((unsigned int, Void_t*, int));
-#if !_PACKAGE_ast
-extern int memcmp _ARG_((const Void_t*, const Void_t*, size_t));
-extern int strcmp _ARG_((const char*, const char*));
-#endif
-
#undef extern
_END_EXTERNS_

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 3 13:55:01 UTC 2011 - coolo@suse.com
- fix compilation of yast2-qt-graph
-------------------------------------------------------------------
Mon Oct 3 11:53:27 UTC 2011 - coolo@suse.com

View File

@ -30,6 +30,7 @@ Source: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.
Source2: graphviz-rpmlintrc
Patch1: graphviz-gd_png_check_sig.patch
Patch2: graphviz-fix-pkgIndex.patch
Patch3: fix-headers.diff
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@ -89,6 +90,7 @@ Note: If you need output in png format you also need to install
%setup -q
%patch1
%patch2
%patch3 -p1
# Fix path in generated man pages
sed -e 's$@LIB_DIR@$%{_libdir}$g' tclpkg/gv/gv_doc_langs.tcl >tclpkg/gv/gv_doc_langs.tcl.new && mv tclpkg/gv/gv_doc_langs.tcl.new tclpkg/gv/gv_doc_langs.tcl