SHA256
1
0
forked from pool/expat

- really hide private Xml* symbols [bnc#798644]

* modified visibility.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/expat?expand=0&rev=28
This commit is contained in:
Petr Gajdos 2013-01-18 08:55:13 +00:00 committed by Git OBS Bridge
parent c309b37078
commit 3275e54984
3 changed files with 29 additions and 18 deletions

View File

@ -1,7 +1,8 @@
diff -aurN expat-2.1.0.orig/configure.in expat-2.1.0/configure.in Index: 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 --- expat-2.1.0.orig/configure.in
@@ -53,15 +53,19 @@ +++ expat-2.1.0/configure.in
@@ -53,15 +53,19 @@ AC_CONFIG_HEADER(expat_config.h)
sinclude(conftools/ac_c_bigendian_cross.m4) 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_CXX
AC_PROG_INSTALL AC_PROG_INSTALL
diff -aurN expat-2.1.0.orig/conftools/visibility.m4 expat-2.1.0/conftools/visibility.m4 Index: 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 --- /dev/null
+++ expat-2.1.0/conftools/visibility.m4
@@ -0,0 +1,77 @@ @@ -0,0 +1,77 @@
+# visibility.m4 serial 4 (gettext-0.18.2) +# visibility.m4 serial 4 (gettext-0.18.2)
+dnl Copyright (C) 2005, 2008, 2010-2011 Free Software Foundation, Inc. +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], + AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
+ [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) + [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 Index: 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 --- expat-2.1.0.orig/lib/expat_external.h
@@ -65,6 +65,9 @@ +++ expat-2.1.0/lib/expat_external.h
@@ -65,6 +65,10 @@
#endif #endif
#endif /* not defined XML_STATIC */ #endif /* not defined XML_STATIC */
+#if HAVE_VISIBILTY +#include "../expat_config.h"
+#if HAVE_VISIBILITY
+#define XMLIMPORT __attribute__ ((visibility ("default"))) +#define XMLIMPORT __attribute__ ((visibility ("default")))
+#endif +#endif
/* If we didn't define it above, define it away: */ /* If we didn't define it above, define it away: */
#ifndef XMLIMPORT #ifndef XMLIMPORT
diff -aurN expat-2.1.0.orig/Makefile.in expat-2.1.0/Makefile.in Index: 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 --- expat-2.1.0.orig/Makefile.in
@@ -114,11 +114,12 @@ +++ expat-2.1.0/Makefile.in
@@ -114,11 +114,12 @@ CPPFLAGS = @CPPFLAGS@ -DHAVE_EXPAT_CONFI
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@ CXXFLAGS = @CXXFLAGS@
VSNFLAG = -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@ 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 LTFLAGS = --silent
-COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(DEFS) $(CPPFLAGS) -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) CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) $(DEFS) $(CPPFLAGS)
LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) LTCOMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@ LINK_LIB = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -no-undefined $(VSNFLAG) -rpath $(libdir) $(LDFLAGS) -o $@

View File

@ -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 Tue Apr 10 19:06:34 UTC 2012 - tabraham@novell.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package expat # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed