From 640a0f5f08e61a63a42aa4c3ce1af9078cd90a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 27 Mar 2018 11:41:01 +0200 Subject: [PATCH] Enable MT code as libtirpc supports it --- rpcsvc-proto-1.3.1-enable_MT_code.patch | 20 ++++++++++++++++++++ rpcsvc-proto.spec | 14 ++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 rpcsvc-proto-1.3.1-enable_MT_code.patch diff --git a/rpcsvc-proto-1.3.1-enable_MT_code.patch b/rpcsvc-proto-1.3.1-enable_MT_code.patch new file mode 100644 index 0000000..3a7b793 --- /dev/null +++ b/rpcsvc-proto-1.3.1-enable_MT_code.patch @@ -0,0 +1,20 @@ +Index: rpcsvc-proto-1.3.1/rpcgen/rpc_main.c +=================================================================== +--- rpcsvc-proto-1.3.1.orig/rpcgen/rpc_main.c ++++ rpcsvc-proto-1.3.1/rpcgen/rpc_main.c +@@ -1346,15 +1346,6 @@ parseargs (int argc, const char *argv[], + cmd->Scflag = flag['C']; + cmd->makefileflag = flag['M']; + +-#ifndef _RPC_THREAD_SAFE_ +- if (mtflag || newstyle) +- { +- /* glibc doesn't support these flags. */ +- f_print (stderr, +- _("This implementation doesn't support newstyle or MT-safe code!\n")); +- return (0); +- } +-#endif + if (tirpcflag) + { + pmflag = inetdflag ? 0 : 1; /* pmflag or inetdflag is always TRUE */ diff --git a/rpcsvc-proto.spec b/rpcsvc-proto.spec index 2fb96e1..19bcb47 100644 --- a/rpcsvc-proto.spec +++ b/rpcsvc-proto.spec @@ -18,16 +18,20 @@ Name: rpcsvc-proto Version: 1.3.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: RPC protocol definitions License: BSD and LGPLv2+ Url: https://github.com/thkukuk/rpcsvc-proto Source0: https://github.com/thkukuk/rpcsvc-proto/archive/v%{version}/%{name}-%{version}.tar.gz +# Enable MT code as libtirpc supports it. +Patch0: rpcsvc-proto-1.3.1-enable_MT_code.patch + Conflicts: glibc-headers < 2.26.9000-36 Conflicts: glibc-common < 2.26.9000-36 BuildRequires: automake, autoconf + %description The rpcsvc-proto package includes several rpcsvc header files and RPC protocol definitions from SunRPC sources (as shipped with @@ -51,10 +55,10 @@ The input to rpcgen is a language similar to C known as RPC Language (Remote Procedure Call Language). %prep -%setup -q +%autosetup -p 1 %build -./autogen.sh +./autogen.sh %configure %make_build @@ -73,6 +77,9 @@ rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx] %{_mandir}/man1/rpcgen.1* %changelog +* Tue Mar 27 2018 Björn Esser - 1.3.1-4 +- Enable MT code as libtirpc supports it + * Fri Feb 09 2018 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -81,4 +88,3 @@ rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx] * Wed Jan 17 2018 Steve Dickson 1.3.1-1 - Initial commit (bz 1532364) -