Pass TIRPC header files location to all RPC compilation units
This commit is contained in:
parent
7ab9b9e9c6
commit
6202ce97bd
@ -0,0 +1,43 @@
|
||||
From bbb8819fc0f6ed379a05d635a61bcf9c8986079f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@gentoo.org>
|
||||
Date: Sat, 16 Sep 2017 13:09:43 +0200
|
||||
Subject: [PATCH] Add $(TIRPC_CFLAGS) globally to CFLAGS for RPC support,
|
||||
needed for libc 2.26
|
||||
|
||||
---
|
||||
Makefile.am | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 8d80bee..278290a 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -51,6 +51,8 @@ EXTRA_DIST = \
|
||||
noinst_LIBRARIES = libquota.a
|
||||
|
||||
if WITH_RPC
|
||||
+CFLAGS += $(TIRPC_CFLAGS)
|
||||
+
|
||||
rpcsvcdir = $(includedir)/rpcsvc
|
||||
rpcsvc_DATA = \
|
||||
rquota.h \
|
||||
@@ -100,8 +102,6 @@ libquota_a_SOURCES = \
|
||||
mntopt.h \
|
||||
pot.c \
|
||||
pot.h
|
||||
-libquota_a_CFLAGS = \
|
||||
- $(TIRPC_CFLAGS)
|
||||
libquota_a_LIBADD = \
|
||||
$(RPCLIBS)
|
||||
|
||||
@@ -235,7 +235,6 @@ rpc_rquotad_SOURCES = \
|
||||
rquota_server.c \
|
||||
rquota_svc.c \
|
||||
svc_socket.c
|
||||
-rpc_rquotad_CFLAGS = $(TIRPC_CFLAGS)
|
||||
rpc_rquotad_LDADD = \
|
||||
libquota.a \
|
||||
$(WRAP_LIBS) \
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@ -54,6 +54,9 @@ Patch1: quota-4.03-Validate-upper-bound-of-RPC-port.patch
|
||||
# Install rquotad(3) only if RPC is enabled,
|
||||
# <https://sourceforge.net/p/linuxquota/patches/45/>
|
||||
Patch2: quota-4.04-Install-rquota-3-only-if-RPC-is-enabled.patch
|
||||
# Pass TIRPC header files location to all RPC compilation units,
|
||||
# <https://sourceforge.net/p/linuxquota/patches/46/>
|
||||
Patch3: quota-4.04-Add-TIRPC_CFLAGS-globally-to-CFLAGS-for-RPC-support-.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bash
|
||||
@ -170,6 +173,7 @@ Linux/UNIX environment.
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
# Regenerate build scripts
|
||||
autoreconf -f -i
|
||||
|
||||
@ -316,6 +320,7 @@ make check
|
||||
%changelog
|
||||
* Mon Feb 05 2018 Petr Pisar <ppisar@redhat.com> - 1:4.04-3
|
||||
- rpcgen tool split from glibc-common package
|
||||
- Pass TIRPC header files location to all RPC compilation units
|
||||
|
||||
* Thu Nov 30 2017 Petr Pisar <ppisar@redhat.com> - 1:4.04-2
|
||||
- Disable TCP wrappers (bug #1518778)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user