summaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/tirpc.patch
blob: 203c3201cdc19521f3cd532c85b7876ad91c8c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
--- open-vm-tools-9.4.6-1770165.orig/configure.ac
+++ open-vm-tools-9.4.6-1770165/configure.ac
@@ -367,6 +367,20 @@
                   AC_MSG_WARN([Fuse is missing, vmblock-fuse will be disabled.])])
 
 #
+# Check for libtirpc
+#
+AC_VMW_CHECK_LIB([libtirpc],
+                 [LIBTIRPC],
+                 [libtirpc],
+                 [],
+                 [],
+                 [rpc/xdr.h],
+                 [xdr_void],
+                 [have_libtirpc=yes],
+                 [have_libtitirpc=no;
+                  AC_MSG_WARN([libtirpc is missing.])])
+
+#
 # Check for PAM.
 #
 AC_ARG_WITH([pam],
--- open-vm-tools-9.4.6-1770165.orig/lib/dynxdr/Makefile.am
+++ open-vm-tools-9.4.6-1770165/lib/dynxdr/Makefile.am
@@ -21,3 +21,9 @@
 libDynxdr_la_SOURCES += dynxdr.c
 libDynxdr_la_SOURCES += xdrutil.c
 
+libDynxdr_la_CPPFLAGS = 
+libDynxdr_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
+
+libDynxdr_la_LIBADD =
+libDynxdr_la_LIBADD += @LIBTIRPC_LIBS@
+
--- open-vm-tools-9.4.6-1770165.orig/lib/guestRpc/Makefile.am
+++ open-vm-tools-9.4.6-1770165/lib/guestRpc/Makefile.am
@@ -20,6 +20,12 @@
 libGuestRpc_la_SOURCES =
 libGuestRpc_la_SOURCES += nicinfo_xdr.c
 
+libGuestRpc_la_CPPFLAGS =
+libGuestRpc_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
+
+libGuestRpc_la_LIBADD =
+libGuestRpc_la_LIBADD += @LIBTIRPC_LIBS@
+
 # XXX: Autoreconf complains about this and recommends using AM_CFLAGS instead.
 # Problem is, $(CFLAGS) is appended to the compiler command line after AM_CFLAGS
 # and after libGuestRpc_la_CFLAGS, so "-Wall -Werror" will override this flag.
--- open-vm-tools-9.4.6-1770165.orig/lib/netUtil/Makefile.am
+++ open-vm-tools-9.4.6-1770165/lib/netUtil/Makefile.am
@@ -20,3 +20,7 @@
 libNetUtil_la_SOURCES =
 libNetUtil_la_SOURCES += netUtilLinux.c
 
+libNetUtil_la_CPPFLAGS =
+libNetUtil_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
+
+libNetUtil_la_LIBADD = @LIBTIRPC_LIBS@
--- open-vm-tools-9.4.6-1770165.orig/lib/rpcChannel/Makefile.am
+++ open-vm-tools-9.4.6-1770165/lib/rpcChannel/Makefile.am
@@ -23,3 +23,7 @@
 
 libRpcChannel_la_CPPFLAGS =
 libRpcChannel_la_CPPFLAGS += @VMTOOLS_CPPFLAGS@
+libRpcChannel_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
+
+libRpcChannel_la_LIBADD =
+libRpcChannel_la_LIBADD += @LIBTIRPC_LIBS@
--- open-vm-tools-9.4.6-1770165.orig/libguestlib/Makefile.am
+++ open-vm-tools-9.4.6-1770165/libguestlib/Makefile.am
@@ -22,11 +22,15 @@
 
 libguestlib_la_LIBADD =
 libguestlib_la_LIBADD += @VMTOOLS_LIBS@
+libguestlib_la_LIBADD += @LIBTIRPC_LIBS@
 
 libguestlib_la_SOURCES =
 libguestlib_la_SOURCES += guestlibV3_xdr.c
 libguestlib_la_SOURCES += guestlibIoctl_xdr.c
 libguestlib_la_SOURCES += vmGuestLib.c
+
+libguestlib_la_CPPFLAGS =
+libguestlib_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 
 libguestlib_la_LDFLAGS =
 # We require GCC, so we're fine passing compiler-specific flags.
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/dndcp/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/dndcp/Makefile.am
@@ -24,6 +24,7 @@
 libdndcp_la_CPPFLAGS += @GTK_CPPFLAGS@
 libdndcp_la_CPPFLAGS += @GTKMM_CPPFLAGS@
 libdndcp_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
+libdndcp_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 libdndcp_la_CPPFLAGS += -I$(top_srcdir)/services/plugins/dndcp/dnd
 libdndcp_la_CPPFLAGS += -I$(top_srcdir)/services/plugins/dndcp/dndGuest
 libdndcp_la_CPPFLAGS += -I$(top_srcdir)/services/plugins/dndcp/stringxx
@@ -38,6 +39,7 @@
 libdndcp_la_LIBADD += @GTKMM_LIBS@
 libdndcp_la_LIBADD += @VMTOOLS_LIBS@
 libdndcp_la_LIBADD += @HGFS_LIBS@
+libdndcp_la_LIBADD += @LIBTIRPC_LIBS@
 
 libdndcp_la_SOURCES =
 
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/guestInfo/getlib/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/guestInfo/getlib/Makefile.am
@@ -25,7 +25,11 @@
 
 libGuestInfo_la_CPPFLAGS =
 libGuestInfo_la_CPPFLAGS += @GLIB2_CPPFLAGS@
+libGuestInfo_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 libGuestInfo_la_CPPFLAGS += -I$(srcdir)/..
+
+libGuestInfo_la_LIBADD =
+libGuestInfo_la_LIBADD += @LIBTIRPC_LIBS@
 
 AM_CFLAGS = $(DNET_CPPFLAGS)
 
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/guestInfo/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/guestInfo/Makefile.am
@@ -23,6 +23,7 @@
 
 libguestInfo_la_CPPFLAGS =
 libguestInfo_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
+libguestInfo_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 
 libguestInfo_la_LDFLAGS =
 libguestInfo_la_LDFLAGS += @PLUGIN_LDFLAGS@
@@ -31,6 +32,7 @@
 libguestInfo_la_LIBADD += @VMTOOLS_LIBS@
 libguestInfo_la_LIBADD += @PROCPS_LIBS@
 libguestInfo_la_LIBADD += @XDR_LIBS@
+libguestInfo_la_LIBADD += @LIBTIRPC_LIBS@
 libguestInfo_la_LIBADD += getlib/libGuestInfo.la
 
 if HAVE_DNET
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/resolutionSet/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/resolutionSet/Makefile.am
@@ -21,6 +21,7 @@
 libresolutionSet_la_CPPFLAGS =
 libresolutionSet_la_CPPFLAGS += @GTK_CPPFLAGS@
 libresolutionSet_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
+libresolutionSet_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 libresolutionSet_la_CPPFLAGS += -DRESOLUTION_X11
 
 libresolutionSet_la_LDFLAGS =
@@ -30,6 +31,7 @@
 libresolutionSet_la_LIBADD += @COMMON_XLIBS@
 libresolutionSet_la_LIBADD += @GTK_LIBS@
 libresolutionSet_la_LIBADD += @VMTOOLS_LIBS@
+libresolutionSet_la_LIBADD += @LIBTIRPC_LIBS@
 
 libresolutionSet_la_SOURCES =
 libresolutionSet_la_SOURCES += libvmwarectrl.c
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/vix/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/vix/Makefile.am
@@ -20,6 +20,7 @@
 
 libvix_la_CPPFLAGS =
 libvix_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
+libvix_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 
 libvix_la_LDFLAGS =
 libvix_la_LDFLAGS += @PLUGIN_LDFLAGS@
@@ -28,6 +29,7 @@
 libvix_la_LIBADD += @VIX_LIBADD@
 libvix_la_LIBADD += @VMTOOLS_LIBS@
 libvix_la_LIBADD += @HGFS_LIBS@
+libvix_la_LIBADD += @LIBTIRPC_LIBS@
 libvix_la_LIBADD += $(top_builddir)/lib/auth/libAuth.la
 libvix_la_LIBADD += $(top_builddir)/lib/foundryMsg/libFoundryMsg.la
 libvix_la_LIBADD += $(top_builddir)/lib/impersonate/libImpersonate.la
--- open-vm-tools-9.4.6-1770165.orig/services/plugins/vmbackup/Makefile.am
+++ open-vm-tools-9.4.6-1770165/services/plugins/vmbackup/Makefile.am
@@ -20,6 +20,7 @@
 
 libvmbackup_la_CPPFLAGS =
 libvmbackup_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
+libvmbackup_la_CPPFLAGS += @LIBTIRPC_CPPFLAGS@
 
 libvmbackup_la_LDFLAGS =
 libvmbackup_la_LDFLAGS += @PLUGIN_LDFLAGS@
@@ -27,6 +28,7 @@
 libvmbackup_la_LIBADD =
 libvmbackup_la_LIBADD += @GOBJECT_LIBS@
 libvmbackup_la_LIBADD += @VMTOOLS_LIBS@
+libvmbackup_la_LIBADD += @LIBTIRPC_LIBS@
 
 libvmbackup_la_SOURCES =
 libvmbackup_la_SOURCES += nullProvider.c