aboutsummaryrefslogtreecommitdiff
path: root/package/libtirpc
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-05-23 20:44:45 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-05-27 23:23:38 +0200
commit4f50274e38946616eab41288ee037d9f565aeb9f (patch)
treeafc8564a7edb6ab4b12f6f495b7cf957c4d04a96 /package/libtirpc
parent4149aca2b360973925d571465f34e4a8d5653e3b (diff)
downloadbuildroot-4f50274e38946616eab41288ee037d9f565aeb9f.tar.gz
buildroot-4f50274e38946616eab41288ee037d9f565aeb9f.tar.bz2
libtirpc: add host package
The libtirpc host package is only for two headers that the host rpcgen utility from the nfs-utils package needs to build. glibc used to provide these headers. In version 2.26 glibc deprecated them with its bundled Sun RPC. Recently Fedora stopped enabling Sun RPC in glibc. So we can no longer rely on these headers being present on the host. Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libtirpc')
-rw-r--r--package/libtirpc/libtirpc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libtirpc/libtirpc.mk b/package/libtirpc/libtirpc.mk
index d9bf22b83e..7bc361dc69 100644
--- a/package/libtirpc/libtirpc.mk
+++ b/package/libtirpc/libtirpc.mk
@@ -18,4 +18,11 @@ LIBTIRPC_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DGQ"
LIBTIRPC_CONF_OPTS = --disable-gssapi
+define HOST_LIBTIRPC_INSTALL_CMDS
+ $(INSTALL) -D -m 0644 $(@D)/tirpc/rpc/types.h $(HOST_DIR)/include/rpc/types.h
+ $(INSTALL) -D -m 0644 $(@D)/tirpc/netconfig.h $(HOST_DIR)/include/netconfig.h
+endef
+
$(eval $(autotools-package))
+# We are only copying headers; no need for the autotools infrastructure
+$(eval $(host-generic-package))