• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libtirpc/libtirpc-0009-Automatically-generate-XDR-header-files-from-.x-sour.patch
Thomas PetazzoniThomas Petazzoni committed 18828103cdc10 Nov 2012
Raw file
Source viewDiff to previous
-extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
 
1
From 30fac06891c59a7fb784f6faa4e92921a84c73db Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Sat, 10 Nov 2012 17:29:53 +0100
4
Subject: [PATCH] Automatically generate XDR header files from .x sources
5
 using rpcgen
6
​
7
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
---
9
 Makefile.am           |   23 +-
10
 src/Makefile.am       |    2 +-
11
 tirpc/rpc/rpcb_prot.h |  797 -------------------------------------------------
12
 tirpc/rpcsvc/crypt.h  |  109 -------
13
 4 files changed, 21 insertions(+), 910 deletions(-)
14
 delete mode 100644 tirpc/rpc/rpcb_prot.h
15
 delete mode 100644 tirpc/rpcsvc/crypt.h
16
​
17
diff --git a/Makefile.am b/Makefile.am
18
index afb4e38..7e63f78 100644
19
--- a/Makefile.am
20
+++ b/Makefile.am
21
@@ -1,9 +1,12 @@
22
 SUBDIRS = src man doc rpcgen
23
 ACLOCAL_AMFLAGS = -I m4
24
 
25
+GENFILES = \
26
+            tirpc/rpcsvc/crypt.h \
27
+            tirpc/rpc/rpcb_prot.h
28
+
29
 nobase_include_HEADERS = tirpc/netconfig.h \
30
             tirpc/rpcsvc/crypt.x \
31
-            tirpc/rpcsvc/crypt.h \
32
             tirpc/rpc/xdr.h \
33
             tirpc/rpc/types.h \
34
             tirpc/rpc/svc_soc.h \
35
@@ -15,7 +18,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
36
             tirpc/rpc/rpcent.h \
37
             tirpc/rpc/rpc_com.h \
38
             tirpc/rpc/rpcb_prot.x \
39
-            tirpc/rpc/rpcb_prot.h \
40
             tirpc/rpc/rpcb_clnt.h \
41
             tirpc/rpc/raw.h \
42
             tirpc/rpc/pmap_rmt.h \
43
@@ -32,6 +34,21 @@ nobase_include_HEADERS = tirpc/netconfig.h \
44
             tirpc/rpc/auth.h \
45
             tirpc/rpc/auth_gss.h \
46
             tirpc/rpc/auth_des.h
47
-    
48
+
49
+nobase_nodist_include_HEADERS = $(GENFILES)
50
+
51
+BUILT_SOURCES = $(GENFILES)
52
+
53
 pkgconfigdir=$(libdir)/pkgconfig
54
 pkgconfig_DATA = libtirpc.pc
55
+
56
+$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
57
+   mkdir -p $(dir $@)
58
+   $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
59
+
60
+$(top_builddir)/rpcgen/rpcgen: force
61
+   cd rpcgen && $(MAKE)
62
+
63
+force:
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.