diff --git a/aarch64-lib64-support.diff b/graphviz-aarch64_lib64_support.patch similarity index 100% rename from aarch64-lib64-support.diff rename to graphviz-aarch64_lib64_support.patch diff --git a/graphviz-plugins.changes b/graphviz-plugins.changes index f279051..af1735b 100644 --- a/graphviz-plugins.changes +++ b/graphviz-plugins.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 28 11:51:09 CET 2013 - pth@suse.de + +- Rename aarch64-lib64-support.diff to graphviz-aarch64_lib64_support.patch. +- Compile the code in lib/vmalloc with -fno-strict-aliasing + as it does type punning. + ------------------------------------------------------------------- Sat Mar 16 22:27:10 UTC 2013 - dmueller@suse.com diff --git a/graphviz-plugins.spec b/graphviz-plugins.spec index e2b8039..27d5982 100644 --- a/graphviz-plugins.spec +++ b/graphviz-plugins.spec @@ -91,7 +91,8 @@ Group: Productivity/Graphics/Visualization/Graph Url: http://www.graphviz.org/ Source: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{mname}-%{version}.tar.gz Patch1: graphviz-gd_png_check_sig.patch -Patch4: aarch64-lib64-support.diff +Patch4: graphviz-aarch64_lib64_support.patch +Patch5: graphviz-type_punning.patch Patch100: graphviz-plugins-fix_install_dirs.patch Patch101: graphviz-python_version.patch Patch102: graphviz-plugins-tcl_install_dir.patch @@ -263,6 +264,7 @@ Provides some additional PDF and HTML documentation for graphviz. %setup -q -n %{mname}-%{version} %patch1 %patch4 +%patch5 %patch100 %patch101 %patch102 @@ -338,8 +340,6 @@ done %if 0%{?suse_version} > 1020 %fdupes -s %{buildroot}%{_defaultdocdir}/%{mname} %endif -#%clean -#rm -rf %{buildroot} rm -rf %{buildroot}/%{_libdir}/%{mname}/%{_lib} %files -n graphviz-gd diff --git a/graphviz-type_punning.patch b/graphviz-type_punning.patch new file mode 100644 index 0000000..6270f2a --- /dev/null +++ b/graphviz-type_punning.patch @@ -0,0 +1,24 @@ +From: Philipp Thomas +Date: 2013-03-28 11:43:28+01:00 +Subject: Switch of strict aliasing + +The vmalloc code uses type-punning in a macro so switch off strict aliasing +for this code. + +--- + lib/vmalloc/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +Index: lib/vmalloc/Makefile.am +=================================================================== +--- lib/vmalloc/Makefile.am.orig 2009-09-16 20:49:46.000000000 +0200 ++++ lib/vmalloc/Makefile.am 2013-03-28 11:42:12.948760295 +0100 +@@ -9,6 +9,8 @@ libvmalloc_C_la_SOURCES = malloc.c vmbes + vmprofile.c vmregion.c vmsegment.c vmset.c vmstat.c vmstrdup.c \ + vmtrace.c vmwalk.c + ++AM_CFLAGS = -fno-strict-aliasing ++ + ${top_builddir}/FEATURE/vmalloc: ${top_srcdir}/lib/vmalloc/features/vmalloc + mkdir -p ${top_builddir}/FEATURE + ${top_srcdir}/iffe - set cc $(CC) $(CCMODE) $(CXFLAGS) : run ${top_srcdir}/lib/vmalloc/features/vmalloc > $@ diff --git a/graphviz.changes b/graphviz.changes index 3ca9091..431101e 100644 --- a/graphviz.changes +++ b/graphviz.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 28 11:51:09 CET 2013 - pth@suse.de + +- Rename aarch64-lib64-support.diff to graphviz-aarch64_lib64_support.patch. +- Add graphviz-type_punning.patch to compile the code in lib/vmalloc + with -fno-strict-aliasing as it does type punning. + ------------------------------------------------------------------- Sat Mar 16 22:26:37 UTC 2013 - dmueller@suse.com diff --git a/graphviz.spec b/graphviz.spec index 3b8d34d..6646e82 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -31,7 +31,8 @@ Source2: graphviz-rpmlintrc Patch1: graphviz-gd_png_check_sig.patch Patch2: graphviz-fix-pkgIndex.patch Patch3: graphviz-missing_headers.patch -Patch4: aarch64-lib64-support.diff +Patch4: graphviz-aarch64_lib64_support.patch +Patch5: graphviz-type_punning.patch BuildRequires: bison BuildRequires: fdupes BuildRequires: flex @@ -90,6 +91,7 @@ Note: If you need output in png format you also need to install %patch2 %patch3 -p1 %patch4 +%patch5 # 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