Hello community, here is the log from the commit of package libcares2 for openSUSE:Factory checked in at 2013-05-07 07:24:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcares2 (Old) and /work/SRC/openSUSE:Factory/.libcares2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libcares2" Changes: -------- --- /work/SRC/openSUSE:Factory/libcares2/libcares2.changes 2012-02-08 15:35:37.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libcares2.new/libcares2.changes 2013-05-07 07:24:03.000000000 +0200 @@ -1,0 +2,24 @@ +Fri May 3 07:12:14 UTC 2013 - mvyskocil@suse.com + +- Use the genuine upstream tarball +- Verify tarball using gpg-offline + +------------------------------------------------------------------- +Thu May 2 13:24:49 UTC 2013 - jengelh@inai.de + +- Get rid of outdated autotools construct to fix build with + new automake-1.13 + +------------------------------------------------------------------- +Sun Jan 6 21:14:16 UTC 2013 - p.drouand@gmail.com + +- Update to 1.9.1 version: + * include the ares_parse_soa_reply.* files in the tarball +- Removed patches (fixed and merged on upstream release) + * 0001-ares_destroy.c-fix-segfault-in-ares_destroy_options.patch + * 0002-ares_getnameinfo-fix-random-results-with-c-ares-1.7..patch + * 0003-ares_init.c-fix-segfault-triggered-in-ares_init_opti.patch +- Updated and versionned patchs for upstream release: + * 0001-add-symbol-versioning-support.patch + * cares-ocloexec.patch +------------------------------------------------------------------- Old: ---- 0001-add-symbol-versioning-support.patch 0001-ares_destroy.c-fix-segfault-in-ares_destroy_options.patch 0002-ares_getnameinfo-fix-random-results-with-c-ares-1.7..patch 0003-ares_init.c-fix-segfault-triggered-in-ares_init_opti.patch c-ares-1.7.5.tar.bz2 cares-ocloexec.patch New: ---- 0001-cares-1.9.1-add-symbol-versioning-support.patch c-ares-1.9.1.tar.gz c-ares-1.9.1.tar.gz.asc cares-1.9.1-ocloexec.patch cares-autotools.diff libcares2.keyring ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcares2.spec ++++++ --- /var/tmp/diff_new_pack.MRJXsT/_old 2013-05-07 07:24:05.000000000 +0200 +++ /var/tmp/diff_new_pack.MRJXsT/_new 2013-05-07 07:24:05.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcares2 # -# 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 @@ -16,25 +16,29 @@ # -Url: http://daniel.haxx.se/projects/c-ares %define pkg_name c-ares Name: libcares2 -Version: 1.7.5 -Release: 1 -License: MIT +Version: 1.9.1 +Release: 0 Summary: Library for asynchronous name resolves +License: MIT Group: Development/Libraries/C and C++ -Source: http://daniel.haxx.se/projects/c-ares/%{pkg_name}-%{version}.tar.bz2 -Source2: baselibs.conf -BuildRequires: pkg-config +Url: http://c-ares.haxx.se/ + +Source0: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz +Source1: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz.asc +Source3: libcares2.keyring +Source4: baselibs.conf +Patch4: cares-1.9.1-ocloexec.patch +Patch5: 0001-cares-1.9.1-add-symbol-versioning-support.patch +Patch6: cares-autotools.diff BuildRequires: libtool +BuildRequires: pkg-config +%if 0%{?suse_version} >= 1230 +BuildRequires: gpg-offline +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build -Patch1: 0001-ares_destroy.c-fix-segfault-in-ares_destroy_options.patch -Patch2: 0002-ares_getnameinfo-fix-random-results-with-c-ares-1.7..patch -Patch3: 0003-ares_init.c-fix-segfault-triggered-in-ares_init_opti.patch -Patch4: cares-ocloexec.patch -Patch5: 0001-add-symbol-versioning-support.patch %description c-ares is a C library that performs DNS requests and name resolves @@ -53,12 +57,14 @@ by Greg Hudson at MIT. %prep +%if 0%{?suse_version} >= 1230 +%gpg_verify %{SOURCE1} +%endif + %setup -q -n %{pkg_name}-%{version} -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch -P 6 -p1 %build autoreconf -fiv ++++++ 0001-cares-1.9.1-add-symbol-versioning-support.patch ++++++
From f2f268450d2aff0c7bcbb848b8a1c7b1e1d38291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?=
Date: Fri, 3 Feb 2012 16:01:16 -0300 Subject: [PATCH] add symbol versioning support
---
Makefile.am | 11 ++++---
c-ares.map | 72 +++++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 9 +----
m4/ld-version-script.m4 | 53 ++++++++++++++++++++++++++++++++++
4 files changed, 133 insertions(+), 12 deletions(-)
create mode 100644 c-ares.map
create mode 100644 m4/ld-version-script.m4
--- c-ares-1.7.5.orig/Makefile.am
+++ c-ares-1.7.5/Makefile.am
@@ -93,12 +93,13 @@
# set age to 0. (c:r:a=0)
#
-if NO_UNDEFINED
-# The -no-undefined flag is crucial for this to build fine on some platforms
-UNDEF = -no-undefined
-endif
+libcares_la_LDFLAGS = -no-undefined $(UNDEF) $(VER)
-libcares_la_LDFLAGS = $(UNDEF) $(VER)
+if HAVE_LD_VERSION_SCRIPT
+libcares_la_LDFLAGS += -Wl,--version-script=$(srcdir)/c-ares.map
+else
+libcares_la_LDFLAGS += -export-symbols-regex '^ares_.*'
+endif
# Add -Werror if defined
CFLAGS += @CARES_CFLAG_EXTRAS@
--- /dev/null
+++ c-ares-1.7.5/c-ares.map
@@ -0,0 +1,72 @@
+CARES_1.2.0 {
+global:
+ ares_cancel;
+ ares_destroy;
+ ares_expand_name;
+ ares_expand_string;
+ ares_fds;
+ ares_free_data;
+ ares_free_hostent;
+ ares_free_string;
+ ares_get_servers;
+ ares_gethostbyaddr;
+ ares_gethostbyname;
+ ares_init;
+ ares_init_options;
+ ares_mkquery;
+ ares_parse_a_reply;
+ ares_parse_ptr_reply;
+ ares_process;
+ ares_query;
+ ares_search;
+ ares_send;
+ ares_set_local_dev;
+ ares_set_local_ip4;
+ ares_set_local_ip6;
+ ares_set_servers;
+ ares_set_servers_csv;
+ ares_strerror;
+ ares_timeout;
+ ares_version;
+local: *;
+};
+
+CARES_1.3.1 {
+global:
+ ares_parse_aaaa_reply;
+ ares_getnameinfo;
+ ares_getsock;
+} CARES_1.2.0;
+
+CARES_1.4.0 {
+global:
+ ares_save_options;
+ ares_destroy_options;
+ ares_parse_ns_reply;
+ ares_process_fd;
+} CARES_1.3.1;
+
+CARES_1.6.0 {
+global:
+ ares_dup;
+ ares_gethostbyname_file;
+} CARES_1.4.0;
+
+CARES_1.7.0 {
+global:
+ ares_set_socket_callback;
+ ares_parse_txt_reply;
+ ares_parse_srv_reply;
+ ares_library_init;
+ ares_library_cleanup;
+} CARES_1.6.0;
+
+CARES_1.7.1 {
+global:
+ ares_reinit;
+} CARES_1.7.0;
+
+CARES_1.7.2 {
+global:
+ ares_parse_mx_reply;
+} CARES_1.7.1;
--- c-ares-1.7.5.orig/configure.ac
+++ c-ares-1.7.5/configure.ac
@@ -98,9 +98,6 @@
;;
esac
-dnl support building of Windows DLLs
-AC_LIBTOOL_WIN32_DLL
-
dnl force libtool to build static libraries with PIC on AMD64-Linux & FreeBSD
AC_MSG_CHECKING([if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)])
case $host in
@@ -125,7 +122,8 @@
esac
dnl libtool setup
-AC_PROG_LIBTOOL
+LT_INIT([win32-dll pic-only disable-static])
+gl_LD_VERSION_SCRIPT
AC_MSG_CHECKING([if we need CARES_BUILDING_LIBRARY])
use_cppflag_cares_building_library="no"
@@ -179,9 +177,6 @@
CARES_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
CARES_CHECK_COMPILER_SYMBOL_HIDING
-CARES_CHECK_NO_UNDEFINED
-AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
-
CARES_CHECK_CURLDEBUG
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
--- /dev/null
+++ c-ares-1.7.5/m4/ld-version-script.m4
@@ -0,0 +1,53 @@
+# ld-version-script.m4 serial 3
+dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Simon Josefsson
+
+# FIXME: The test below returns a false positive for mingw
+# cross-compiles, 'local:' statements does not reduce number of
+# exported symbols in a DLL. Use --disable-ld-version-script to work
+# around the problem.
+
+# gl_LD_VERSION_SCRIPT
+# --------------------
+# Check if LD supports linker scripts, and define automake conditional
+# HAVE_LD_VERSION_SCRIPT if so.
+AC_DEFUN([gl_LD_VERSION_SCRIPT],
+[
+ AC_ARG_ENABLE([ld-version-script],
+ AS_HELP_STRING([--enable-ld-version-script],
+ [enable linker version script (default is enabled when possible)]),
+ [have_ld_version_script=$enableval], [])
+ if test -z "$have_ld_version_script"; then
+ AC_MSG_CHECKING([if LD -Wl,--version-script works])
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
+ cat > conftest.map <