graphviz/graphviz-type_punning.patch
Philipp Thomas da0ecc79a3 lib/common/shapes.c(round_corners) by increasing the number of
elements in the array.
- Add graphviz-proper_prototypes.patch that changes dthdr.h to
  include ast_common.h to get __STD_C defined, which in turn
  enables proper prototypes.
- Remove graphviz-2.18-do_not_use_ocamlopt.patch as it's not needed
  anymore.
- Adapt graphviz-guile.patch, graphviz-plugins-fix_install_dirs.patch
  and graphviz-python_version.patch to the new sources.
- Add graphviz-java_in_lib64.patch to search in /usr/lib64/jvm for
  the java headers on platforms using lib64.
- Add graphviz-proper_use_of_qw.patch to put the use of qw in
  config/config_perl.pl in brackets.
- Add graphviz-useless_warnings.patch to make gcc not warn about
  harmless issues that arise from code generated by swig.
- Add patch tags in the spec files
- Upstreamed all patches that aren't SUSE specific.
  lib/common/shapes.c(round_corners) by increasing the number of
  elements in the array.
- Add graphviz-proper_prototypes.patch that changes dthdr.h to
  include ast_common.h to get __STD_C defined, which in turn
  enables proper prototypes.
- Add patch tags in the spec files
- Upstreamed all patches that aren't SUSE specific.

OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=60
2013-09-05 17:54:08 +00:00

38 lines
1.5 KiB
Diff

From: Philipp Thomas <pth@suse.de>
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 ++
tclpkg/gv/Makefile.am | 1 +
2 files changed, 3 insertions(+)
Index: lib/vmalloc/Makefile.am
===================================================================
--- lib/vmalloc/Makefile.am.orig 2013-08-01 19:35:15.000000000 +0200
+++ lib/vmalloc/Makefile.am 2013-09-04 13:53:20.113966325 +0200
@@ -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 > $@
Index: tclpkg/gv/Makefile.am
===================================================================
--- tclpkg/gv/Makefile.am.orig 2013-08-01 19:35:15.000000000 +0200
+++ tclpkg/gv/Makefile.am 2013-09-05 14:21:57.670757739 +0200
@@ -80,6 +80,7 @@ nodist_libgv_java_la_SOURCES = gv_java.c
libgv_java_la_SOURCES = $(BASESOURCES) gv_dummy_init.c
libgv_java_la_LIBADD = $(BASELIBS) $(JAVA_LIBS)
libgv_java_la_LDFLAGS = -module -avoid-version
+libgv_java_la_CXXFLAGS = -fno-strict-aliasing
libgv_java_la_CPPFLAGS = $(BASECPPFLAGS) $(JAVA_INCLUDES)
$(JAVA_data): gv_java.cpp
gv_java.cpp: gv.i