Hello community, here is the log from the commit of package libtirpc for openSUSE:Factory checked in at 2020-02-11 22:16:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libtirpc (Old) and /work/SRC/openSUSE:Factory/.libtirpc.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtirpc" Tue Feb 11 22:16:45 2020 rev:53 rq:772315 version:1.2.5 Changes: -------- --- /work/SRC/openSUSE:Factory/libtirpc/libtirpc.changes 2020-01-18 12:13:31.390990638 +0100 +++ /work/SRC/openSUSE:Factory/.libtirpc.new.26092/libtirpc.changes 2020-02-11 22:16:46.755284587 +0100 @@ -1,0 +2,15 @@ +Wed Feb 5 14:08:52 UTC 2020 - Petr Vorel <[email protected]> + +- Backport upstream fix daed7ee ("Avoid multiple-definiton with gcc -fno-common") + to fix build error with gcc flag -fno-common (bsc#1160875). + Tested on gcc-9 and gcc-10. + 0001-Avoid-multiple-definiton-with-gcc-fno-common.patch + +------------------------------------------------------------------- +Fri Jan 31 00:58:56 UTC 2020 - Stefan BrĂ¼ns <[email protected]> + +- Skip unneeded autogen.sh run (configure is up-to-date), drop + dependencies: libtool, autoconf +- Replace krb5-mini-devel/krb5-devel with pkgconfig(krb5) + +------------------------------------------------------------------- New: ---- 0001-Avoid-multiple-definiton-with-gcc-fno-common.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libtirpc.spec ++++++ --- /var/tmp/diff_new_pack.tcgSac/_old 2020-02-11 22:16:47.679285087 +0100 +++ /var/tmp/diff_new_pack.tcgSac/_new 2020-02-11 22:16:47.683285089 +0100 @@ -23,18 +23,13 @@ Summary: Transport Independent RPC Library License: BSD-3-Clause Group: Development/Libraries/C and C++ -%if 0%{suse_version} >= 1300 -BuildRequires: krb5-mini-devel -%else -BuildRequires: krb5-devel -%endif -BuildRequires: autoconf -BuildRequires: libtool BuildRequires: pkg-config +BuildRequires: pkgconfig(krb5) URL: https://sourceforge.net/projects/libtirpc/ Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf Patch0: 0001-Add-authdes_seccreate-stub.patch +Patch1: 0001-Avoid-multiple-definiton-with-gcc-fno-common.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires libtirpc3 = %{version}-%{release} @@ -80,16 +75,13 @@ %prep %setup -q -n %name-%version %patch0 -p1 +%patch1 -p1 %build sed -i -e 's|@includedir@/tirpc|@includedir@|g' libtirpc.pc.in -/bin/sh autogen.sh %configure --disable-static \ -%if 0%{suse_version} < 1200 - --disable-gssapi \ -%endif --libdir=/%{_lib} -make %{?_smp_mflags} +%make_build %{?_smp_mflags} %install # Don't strip .symtab to allow debugging ++++++ 0001-Avoid-multiple-definiton-with-gcc-fno-common.patch ++++++ >From daed7eedba73907730241c5262a5c16c7abedb6f Mon Sep 17 00:00:00 2001 From: Mike Gilbert <[email protected]> Date: Tue, 21 Jan 2020 11:49:35 -0500 Subject: [PATCH] Avoid multiple-definiton with gcc -fno-common GCC 10 enables -fno-common by default. Fixes: https://bugs.gentoo.org/705896 Signed-off-by: Steve Dickson <[email protected]> [Upstream status: daed7ee Avoid multiple-definiton with gcc -fno-common] --- src/rpc_com.h | 3 +-- src/svc.c | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rpc_com.h b/src/rpc_com.h index 10bec79..76badef 100644 --- a/src/rpc_com.h +++ b/src/rpc_com.h @@ -61,8 +61,7 @@ void __xprt_unregister_unlocked(SVCXPRT *); void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *); -SVCXPRT **__svc_xports; -int __svc_maxrec; +extern int __svc_maxrec; #ifdef __cplusplus } diff --git a/src/svc.c b/src/svc.c index b59467b..6db164b 100644 --- a/src/svc.c +++ b/src/svc.c @@ -57,6 +57,9 @@ #define max(a, b) (a > b ? a : b) +static SVCXPRT **__svc_xports; +int __svc_maxrec; + /* * The services list * Each entry represents a set of procedures (an rpc program). -- 2.24.1
