diff --git a/expat-visibility.patch b/expat-visibility.patch index 026823c..5dca803 100644 --- a/expat-visibility.patch +++ b/expat-visibility.patch @@ -1,7 +1,8 @@ -diff -aurN expat-2.1.0.orig/configure.in expat-2.1.0/configure.in ---- expat-2.1.0.orig/configure.in 2012-03-03 18:45:53.000000000 -0500 -+++ expat-2.1.0/configure.in 2012-03-05 21:40:43.578897695 -0500 -@@ -53,15 +53,19 @@ +Index: expat-2.1.0/configure.in +=================================================================== +--- expat-2.1.0.orig/configure.in ++++ expat-2.1.0/configure.in +@@ -53,15 +53,19 @@ AC_CONFIG_HEADER(expat_config.h) sinclude(conftools/ac_c_bigendian_cross.m4) @@ -24,9 +25,10 @@ diff -aurN expat-2.1.0.orig/configure.in expat-2.1.0/configure.in AC_PROG_CXX AC_PROG_INSTALL -diff -aurN expat-2.1.0.orig/conftools/visibility.m4 expat-2.1.0/conftools/visibility.m4 ---- expat-2.1.0.orig/conftools/visibility.m4 1969-12-31 19:00:00.000000000 -0500 -+++ expat-2.1.0/conftools/visibility.m4 2012-03-05 21:41:48.625084505 -0500 +Index: expat-2.1.0/conftools/visibility.m4 +=================================================================== +--- /dev/null ++++ expat-2.1.0/conftools/visibility.m4 @@ -0,0 +1,77 @@ +# visibility.m4 serial 4 (gettext-0.18.2) +dnl Copyright (C) 2005, 2008, 2010-2011 Free Software Foundation, Inc. @@ -105,23 +107,26 @@ diff -aurN expat-2.1.0.orig/conftools/visibility.m4 expat-2.1.0/conftools/visibi + AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], + [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) +]) -diff -aurN expat-2.1.0.orig/lib/expat_external.h expat-2.1.0/lib/expat_external.h ---- expat-2.1.0.orig/lib/expat_external.h 2006-06-02 08:17:36.000000000 -0400 -+++ expat-2.1.0/lib/expat_external.h 2012-03-05 21:36:49.429824958 -0500 -@@ -65,6 +65,9 @@ +Index: expat-2.1.0/lib/expat_external.h +=================================================================== +--- expat-2.1.0.orig/lib/expat_external.h ++++ expat-2.1.0/lib/expat_external.h +@@ -65,6 +65,10 @@ #endif #endif /* not defined XML_STATIC */ -+#if HAVE_VISIBILTY ++#include "../expat_config.h" ++#if HAVE_VISIBILITY +#define XMLIMPORT __attribute__ ((visibility ("default"))) +#endif /* If we didn't define it above, define it away: */ #ifndef XMLIMPORT -diff -aurN expat-2.1.0.orig/Makefile.in expat-2.1.0/Makefile.in ---- expat-2.1.0.orig/Makefile.in 2012-03-03 13:35:27.000000000 -0500 -+++ expat-2.1.0/Makefile.in 2012-03-05 21:35:09.923068964 -0500 -@@ -114,11 +114,12 @@ +Index: expat-2.1.0/Makefile.in +=================================================================== +--- expat-2.1.0.orig/Makefile.in ++++ expat-2.1.0/Makefile.in +@@ -114,11 +114,12 @@ CPPFLAGS = @CPPFLAGS@ -DHAVE_EXPAT_CONFI CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@ @@ -131,7 +136,7 @@ diff -aurN expat-2.1.0.orig/Makefile.in expat-2.1.0/Makefile.in LTFLAGS = --silent -COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS) -+COMPILE = $(CC) $(CLFAG_VISIBILITY) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS) ++COMPILE = $(CC) $(CFLAG_VISIBILITY) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS) CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS) LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@ diff --git a/expat.changes b/expat.changes index 5a7bf40..eab5c41 100644 --- a/expat.changes +++ b/expat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 18 08:53:33 UTC 2013 - pgajdos@suse.com + +- really hide private Xml* symbols [bnc#798644] + * modified visibility.patch + ------------------------------------------------------------------- Tue Apr 10 19:06:34 UTC 2012 - tabraham@novell.com diff --git a/expat.spec b/expat.spec index fea2392..bb59486 100644 --- a/expat.spec +++ b/expat.spec @@ -1,7 +1,7 @@ # # spec file for package expat # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed