From 03595f362da60b11623ba50420a3050bd3f0acdbc1c439b281dd4fb7641a42d3 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Mon, 8 Nov 2010 13:41:34 +0000 Subject: [PATCH] Accepting request 52268 from devel:libraries:c_c++ Accepted submit request 52268 from user elvigia OBS-URL: https://build.opensuse.org/request/show/52268 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adns?expand=0&rev=11 --- adns-visibility.patch | 49 +++++++++++++++++++++++++++++++++++++++++++ adns.changes | 5 +++++ adns.spec | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 adns-visibility.patch diff --git a/adns-visibility.patch b/adns-visibility.patch new file mode 100644 index 0000000..baf58de --- /dev/null +++ b/adns-visibility.patch @@ -0,0 +1,49 @@ +--- configure.in.orig ++++ configure.in +@@ -252,7 +252,7 @@ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' + SHLIBFILE='$(SHLIBSONAME).$(MINOR)' + + SHLIBCC='$(CC) $(CFLAGS) -fpic' +-MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o' ++MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME),-version-script=$(srcdir)/../adns.sym -o' + MKSHLIB_2='' + MKSHLIB_3='-lc' + +--- /dev/null ++++ adns.sym +@@ -0,0 +1,35 @@ ++{ ++ global: ++adns_afterselect; ++adns_beforepoll; ++adns_beforeselect; ++adns_cancel; ++adns_check; ++adns_checkconsistency; ++adns_errabbrev; ++adns_errtypeabbrev; ++adns_finish; ++adns_firsttimeout; ++adns_forallqueries_begin; ++adns_forallqueries_next; ++adns_getaddrinfo; ++adns_globalsystemfailure; ++adns_init; ++adns_init_logfn; ++adns_init_strcfg; ++adns_processany; ++adns_processexceptional; ++adns_processreadable; ++adns_processtimeouts; ++adns_processwriteable; ++adns_rr_info; ++adns_strerror; ++adns_submit; ++adns_submit_reverse; ++adns_submit_reverse_any; ++adns_synchronous; ++adns_wait; ++adns_wait_poll; ++ ++local: *; ++}; diff --git a/adns.changes b/adns.changes index 3bc24b7..d1ade58 100644 --- a/adns.changes +++ b/adns.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 5 20:35:16 UTC 2010 - cristian.rodriguez@opensuse.org + +- export only public symbols + ------------------------------------------------------------------- Fri Jan 16 23:00:59 CET 2009 - crrodriguez@suse.de diff --git a/adns.spec b/adns.spec index 694bec5..08da965 100644 --- a/adns.spec +++ b/adns.spec @@ -31,6 +31,7 @@ Source1: README.SUSE Patch0: %{name}-%{version}-destdir.patch Patch1: %{name}-%{version}-configure.patch Patch2: %{name}-%{version}-ipv6.patch +Patch3: adns-visibility.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -81,6 +82,7 @@ Authors: %patch0 %patch1 %patch2 +%patch3 cp %{S:1} . %build