Fixes for RPC support
Hello,
Here is a set of fixes that should hopefully fix most RPC related build failures. At least, I have now tested all packages that use RPC support, and built all of them on:
* uClibc with RPC support + libtirpc
* uClibc without RPC support + libtirpc
* glibc with RPC support + libtirpc
* glibc without RPC support + libtirpc
* uClibc without RPC without IPv6 + libtirpc
Some of the patches against libtirpc are really big, and I currently am working with upstream to get a solution for these.
Thomas
The following changes since commit 234fe4433489bca81b79311239569525cc008d9d:
perl: build with perlcross instead of qemu (2012-11-09 10:04:31 +0100)
are available in the git repository at:
git://git.free-electrons.com/users/thomas-petazzoni/buildroot.git fixes
for you to fetch changes up to e5c6caff3ca4c3d97249a23a5a3b062ffb48af61:
rpcbind: fix build on toolchains without IPv6 support (2012-11-10 22:34:53 +0100)
----------------------------------------------------------------
Thomas Petazzoni (11):
conntrack-tools: do not depend on BR2_INET_RPC and use libtirpc when available
libtirpc: remove patch numbers from patch titles
libtirpc: add patches to fix a number of issues
libtirpc: handle the case where uClibc may have RPC support
nfs-utils: reformat patch set as git patches
nfs-utils: add patches to allow compilation against libtirpc
quota: allow usage of getrpcbynumber() instead of getrpcbynumber_r()
rpcbind: convert to git patch
rpcbind: allow build without NSS support
libnetfilter_queue: does not build without IPv6 support
rpcbind: fix build on toolchains without IPv6 support
package/conntrack-tools/Config.in | 6 +-
package/conntrack-tools/conntrack-tools.mk | 6 +
package/libnetfilter_queue/Config.in | 5 +-
...able-parts-of-TIRPC-requiring-NIS-support.patch | 4 +-
...out-RPC-support-does-not-install-rpcent.h.patch | 19 +-
...btirpc-0003-Add-missing-INET6-conditional.patch | 4 +-
.../libtirpc-0004-Make-IPv6-support-optional.patch | 4 +-
...-getrpcbyname-name-argument-as-const-char.patch | 43 +
...t-remove-prototypes-of-reentrant-variants.patch | 33 +
...-Makefile.am-fix-out-of-tree-installation.patch | 24 +
...Add-rpcgen-program-from-nfs-utils-sources.patch | 6504 ++++++++++++++++++++
...ly-generate-XDR-header-files-from-.x-sour.patch | 999 +++
...R-files-needed-to-build-rpcbind-on-top-of.patch | 1649 +++++
...-AM_CONDITIONAL-in-conditional-execution.patch} | 9 +-
...> nfs-utils-0002-Patch-taken-from-Gentoo.patch} | 22 +-
...-Switch-legacy-index-in-favour-of-strchr.patch} | 44 +-
... => nfs-utils-0004-fix-build-with-uClibc.patch} | 16 +-
...-of-getrpcbynumber-when-getrpcbynumber_r-.patch | 70 +
...figure-script-find-getrpcbynumber-in-libt.patch | 38 +
package/nfs-utils/nfs-utils-dont-mix-flags.patch | 288 -
package/quota/quota-tools-getrpcbynumber.patch | 42 +
package/quota/quota.mk | 4 +
...rpcbind-0001-Remove-yellow-pages-support.patch} | 18 +-
...to-use-NSS-support-when-not-available-in-.patch | 60 +
.../rpcbind-0003-Make-IPv6-configurable.patch | 42 +
package/rpcbind/rpcbind.mk | 1 +
26 files changed, 9615 insertions(+), 339 deletions(-)
create mode 100644 package/libtirpc/libtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch
create mode 100644 package/libtirpc/libtirpc-0006-rpcent-remove-prototypes-of-reentrant-variants.patch
create mode 100644 package/libtirpc/libtirpc-0007-doc-Makefile.am-fix-out-of-tree-installation.patch
create mode 100644 package/libtirpc/libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch
create mode 100644 package/libtirpc/libtirpc-0009-Automatically-generate-XDR-header-files-from-.x-sour.patch
create mode 100644 package/libtirpc/libtirpc-0010-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch
rename package/nfs-utils/{nfs-utils-conditionals.patch => nfs-utils-0001-build-avoid-AM_CONDITIONAL-in-conditional-execution.patch} (89%)
rename package/nfs-utils/{nfs-utils-cross-build.patch => nfs-utils-0002-Patch-taken-from-Gentoo.patch} (69%)
rename package/nfs-utils/{nfs-utils-susv3-legacy.patch => nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch} (50%)
rename package/nfs-utils/{nfs-utils-uclibc-libio.h.patch => nfs-utils-0004-fix-build-with-uClibc.patch} (56%)
create mode 100644 package/nfs-utils/nfs-utils-0005-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch
create mode 100644 package/nfs-utils/nfs-utils-0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch
delete mode 100644 package/nfs-utils/nfs-utils-dont-mix-flags.patch
create mode 100644 package/quota/quota-tools-getrpcbynumber.patch
rename package/rpcbind/{rpcbind-01-no-yp-support.patch => rpcbind-0001-Remove-yellow-pages-support.patch} (65%)
create mode 100644 package/rpcbind/rpcbind-0002-Do-not-try-to-use-NSS-support-when-not-available-in-.patch
create mode 100644 package/rpcbind/rpcbind-0003-Make-IPv6-configurable.patchThanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/11 conntrack-tools: do not depend on BR2_INET_RPC and use libtirpc when available
--- package/conntrack-tools/Config.in | 6 +++--- package/conntrack-tools/conntrack-tools.mk | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-)
package/conntrack-tools/Config.in +3 -3
@@ -1,12 +1,12 @@ config BR2_PACKAGE_CONNTRACK_TOOLS bool "conntrack-tools" depends on BR2_INET_IPV6 - depends on BR2_INET_RPC depends on BR2_LARGEFILE select BR2_PACKAGE_LIBNETFILTER_CONNTRACK select BR2_PACKAGE_LIBNETFILTER_CTHELPER select BR2_PACKAGE_LIBNETFILTER_CTTIMEOUT select BR2_PACKAGE_LIBNETFILTER_QUEUE + select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC help The conntrack-tools are a set of tools targeted at system administrators.
@@ -15,5 +15,5 @@ config BR2_PACKAGE_CONNTRACK_TOOLS http://www.netfilter.org/projects/conntrack-tools/ -comment "conntrack-tools requires a toolchain with IPV6, LARGEFILE and RPC support" - depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !BR2_INET_RPC +comment "conntrack-tools requires a toolchain with IPV6 and LARGEFILE support" + depends on !BR2_INET_IPV6 || !BR2_LARGEFILE
package/conntrack-tools/conntrack-tools.mk +6 -0
@@ -13,4 +13,10 @@ CONNTRACK_TOOLS_DEPENDENCIES = host-pkgconf \ CONNTRACK_TOOLS_LICENSE = GPLv2 CONNTRACK_TOOLS_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LIBTIRPC),y) +CONNTRACK_TOOLS_CONF_ENV += \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/" +CONNTRACK_TOOLS_DEPENDENCIES += libtirpc +endif + $(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH 2/11 libtirpc: remove patch numbers from patch titles
In reply to Thomas PetazzoniThe patch numbers in [PATCH x/y] are quite useless within the context of Buildroot, and generate noise when patches are re-ordered.
--- ...able-parts-of-TIRPC-requiring-NIS-support.patch | 4 ++-- ...out-RPC-support-does-not-install-rpcent.h.patch | 4 ++-- ...btirpc-0003-Add-missing-INET6-conditional.patch | 4 ++-- .../libtirpc-0004-Make-IPv6-support-optional.patch | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
package/libtirpc/libtirpc-0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch +2 -2
@@ -1,7 +1,7 @@ -From f4c022c526ce061dfdd3c46f544a9495a3a3a97e Mon Sep 17 00:00:00 2001 +From cc4ec3294cb06724c83d4c4e1ea9fc2e38923c98 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Sat, 23 Jun 2012 21:57:39 +0200 -Subject: [PATCH 1/4] Disable parts of TIRPC requiring NIS support +Subject: [PATCH] Disable parts of TIRPC requiring NIS support Signed-off-by: Thomas Petazzoni <[email protected]> ---
package/libtirpc/libtirpc-0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch +2 -2
@@ -1,7 +1,7 @@ -From c91721dc289397dfe38fdae175f4ee37e824667c Mon Sep 17 00:00:00 2001 +From c2e96bdc453334f10faf8db0eb06e41ab3ca4fe9 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Sat, 23 Jun 2012 21:58:07 +0200 -Subject: [PATCH 2/4] uClibc without RPC support does not install rpcent.h +Subject: [PATCH] uClibc without RPC support does not install rpcent.h Signed-off-by: Thomas Petazzoni <[email protected]> ---
package/libtirpc/libtirpc-0003-Add-missing-INET6-conditional.patch +2 -2
@@ -1,7 +1,7 @@ -From a4852bd653ac917165de1d41b60168cd88dc6672 Mon Sep 17 00:00:00 2001 +From a40e00a16cf43245953ad6d43a4f260a47e6d198 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Sat, 23 Jun 2012 21:58:36 +0200 -Subject: [PATCH 3/4] Add missing INET6 conditional +Subject: [PATCH] Add missing INET6 conditional Signed-off-by: Thomas Petazzoni <[email protected]> ---
package/libtirpc/libtirpc-0004-Make-IPv6-support-optional.patch +2 -2
@@ -1,7 +1,7 @@ -From 1f36736733eac5080f3a4f3abd1c3a04ac42f1dd Mon Sep 17 00:00:00 2001 +From 5ce585bed328fafc99800effb5e9d1b07dbac2b7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Sun, 24 Jun 2012 21:40:21 +0200 -Subject: [PATCH 4/4] Make IPv6 support optional +Subject: [PATCH] Make IPv6 support optional Signed-off-by: Thomas Petazzoni <[email protected]> ---
Signature · 1 line
1.7.9.5
PATCH 3/11 libtirpc: add patches to fix a number of issues
In reply to Thomas Petazzonilibtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch fixes build failures like
http://autobuild.buildroot.org/results/7a3a751fe02c639ca75c575ca7fe20a72372b8d6/build-end.log.
libtirpc-0006-rpcent-remove-prototypes-of-reentrant-variants.patch ensures that functions not implemented by libtirpc are not described in a header file. It also allows to remove those prototypes that were not matching the functions available in glibc or uClibc, causing mismatch in prototypes.
libtirpc-0007-doc-Makefile.am-fix-out-of-tree-installation.patch is a minor fix.
The following patches (8 to 9) allow libtirpc to provide sufficient things to be able to build rpcbind on top of it.
All these patches have been submitted upstream on the libtirpc-devel@ mailing list.
--- ...-getrpcbyname-name-argument-as-const-char.patch | 43 + ...t-remove-prototypes-of-reentrant-variants.patch | 33 + ...-Makefile.am-fix-out-of-tree-installation.patch | 24 + ...Add-rpcgen-program-from-nfs-utils-sources.patch | 6504 ++++++++++++++++++++ ...ly-generate-XDR-header-files-from-.x-sour.patch | 999 +++ ...R-files-needed-to-build-rpcbind-on-top-of.patch | 1649 +++++ 6 files changed, 9252 insertions(+) create mode 100644 package/libtirpc/libtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch create mode 100644 package/libtirpc/libtirpc-0006-rpcent-remove-prototypes-of-reentrant-variants.patch create mode 100644 package/libtirpc/libtirpc-0007-doc-Makefile.am-fix-out-of-tree-installation.patch create mode 100644 package/libtirpc/libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch create mode 100644 package/libtirpc/libtirpc-0009-Automatically-generate-XDR-header-files-from-.x-sour.patch create mode 100644 package/libtirpc/libtirpc-0010-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch
package/libtirpc/libtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch new file +43 -0
@@ -0,0 +1,43 @@ +From 88147b753b86df7e7505ef8150f1329f7c6951cc Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Fri, 9 Nov 2012 19:37:24 +0100 +Subject: [PATCH] rpcent: mark getrpcbyname name argument as const char * + +This allows to match the glibc prototype and avoid compiling error +when building libtirpc against a C library that has RPC support. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + src/getrpcent.c | 2 +- + tirpc/rpc/rpcent.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/getrpcent.c b/src/getrpcent.c +index 645f18f..1b54b6d 100644 +--- a/src/getrpcent.c ++++ b/src/getrpcent.c +@@ -138,7 +138,7 @@ no_yp: + + struct rpcent * + getrpcbyname(name) +- char *name; ++ const char *name; + { + struct rpcent *rpc = NULL; + char **rp; +diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h +index 8ce05ed..120801d 100644 +--- a/tirpc/rpc/rpcent.h ++++ b/tirpc/rpc/rpcent.h +@@ -61,7 +61,7 @@ extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int); + extern struct rpcent *getrpcent_r(struct rpcent *, char *, int); + + /* Old interfaces that return a pointer to a static area; MT-unsafe */ +-extern struct rpcent *getrpcbyname(char *); ++extern struct rpcent *getrpcbyname(const char *); + extern struct rpcent *getrpcbynumber(int); + extern struct rpcent *getrpcent(void); + #endif +-- +1.7.9.5 +
package/libtirpc/libtirpc-0006-rpcent-remove-prototypes-of-reentrant-variants.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 8e02780905a3e13405a5a1b9f5b2e77655d5c7fb Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 00:05:23 +0100 +Subject: [PATCH] rpcent: remove prototypes of reentrant variants + +The reentrant variants of getrpcbynumber() and al. are not implemented +by libtirpc, so there is no point in advertising them in this header +file. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + tirpc/rpc/rpcent.h | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h +index 120801d..45775ed 100644 +--- a/tirpc/rpc/rpcent.h ++++ b/tirpc/rpc/rpcent.h +@@ -55,11 +55,6 @@ struct rpcent { + int r_number; /* rpc program number */ + }; + +-extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *, +- char *, int); +-extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int); +-extern struct rpcent *getrpcent_r(struct rpcent *, char *, int); +- + /* Old interfaces that return a pointer to a static area; MT-unsafe */ + extern struct rpcent *getrpcbyname(const char *); + extern struct rpcent *getrpcbynumber(int); +-- +1.7.9.5 +
package/libtirpc/libtirpc-0007-doc-Makefile.am-fix-out-of-tree-installation.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 4cf0371c96abf83483835daf50d3fc3bf793bdc4 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 17:29:12 +0100 +Subject: [PATCH] doc/Makefile.am: fix out-of-tree installation + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + doc/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index cc4fa76..bac7c0f 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -1,5 +1,5 @@ + + install: install-am + $(mkinstalldirs) $(DESTDIR)/etc +- cp -p ./etc_netconfig $(DESTDIR)/etc/netconfig ++ cp -p $(srcdir)/etc_netconfig $(DESTDIR)/etc/netconfig + chmod 0644 $(DESTDIR)/etc/netconfig +-- +1.7.9.5 +
package/libtirpc/libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch new file +6504 -0
2,900 lines not on this page · raw message
package/libtirpc/libtirpc-0009-Automatically-generate-XDR-header-files-from-.x-sour.patch new file +999 -0
999 lines not on this page · raw message
package/libtirpc/libtirpc-0010-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch new file +1649 -0
1,649 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
PATCH 3/11 libtirpc: add patches to fix a number of issues
Quoted 13 lines · Thomas Petazzoni
libtirpc-0005-rpcent-mark-getrpcbyname-name-argument-as-const-char.patch fixes build failures like
http://autobuild.buildroot.org/results/7a3a751fe02c639ca75c575ca7fe20a72372b8d6/build-end.log.libtirpc-0006-rpcent-remove-prototypes-of-reentrant-variants.patch ensures that functions not implemented by libtirpc are not described in a header file. It also allows to remove those prototypes that were not matching the functions available in glibc or uClibc, causing mismatch in prototypes.
libtirpc-0007-doc-Makefile.am-fix-out-of-tree-installation.patch is a minor fix.
Quoted 7 lines
The following patches (8 to 9) allow libtirpc to provide sufficient things to be able to build rpcbind on top of it.
All these patches have been submitted upstream on the libtirpc-devel@ mailing list.
Signed-off-by Thomas Petazzoni<[email protected]>
After a quick browse:
(untested)
I would have split up the rpcbind things as a separate commit, but that's
a minor detail.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 4/11 libtirpc: handle the case where uClibc may have RPC support
In reply to Thomas PetazzoniWhen uClibc has RPC support, it is not needed to define the 'struct rpcent' structure.
--- ...out-RPC-support-does-not-install-rpcent.h.patch | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
package/libtirpc/libtirpc-0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch +9 -6
@@ -5,19 +5,22 @@ Subject: [PATCH] uClibc without RPC support does not install rpcent.h Signed-off-by: Thomas Petazzoni <[email protected]> --- - tirpc/rpc/rpcent.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + tirpc/rpc/rpcent.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h -index 7fd93d9..df1f5ed 100644 +index 7fd93d9..8ce05ed 100644 --- a/tirpc/rpc/rpcent.h +++ b/tirpc/rpc/rpcent.h -@@ -47,7 +47,7 @@ +@@ -46,8 +46,9 @@ + __BEGIN_DECLS - /* These are defined in /usr/include/rpc/netdb.h */ +-/* These are defined in /usr/include/rpc/netdb.h */ -#if 0 -+#if __UCLIBC__ ++/* These are defined in /usr/include/rpc/netdb.h, unless we are using ++ the C library without RPC support. */ ++#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) struct rpcent { char *r_name; /* name of server for this rpc program */ char **r_aliases; /* alias list */
Signature · 1 line
1.7.9.5
PATCH 5/11 nfs-utils: reformat patch set as git patches
In reply to Thomas PetazzoniAs we will need to add more patches to nfs-utils, we need a correct ordering when applying patches. Therefore, reformat the patches to use a git format and git naming.
The nfs-utils-dont-mix-flags.patch is no longer needed as it was patching Makefile.in files that were being regenerated due to the package having _AUTORECONF = YES. The Makefile.in are properly regenerated thanks to the nfs-utils-0002-Patch-taken-from-Gentoo.patch patch.
---
...-AM_CONDITIONAL-in-conditional-execution.patch} | 9 +-
...> nfs-utils-0002-Patch-taken-from-Gentoo.patch} | 22 +-
...-Switch-legacy-index-in-favour-of-strchr.patch} | 44 ++-
... => nfs-utils-0004-fix-build-with-uClibc.patch} | 16 +-
package/nfs-utils/nfs-utils-dont-mix-flags.patch | 288 --------------------
5 files changed, 63 insertions(+), 316 deletions(-)
rename package/nfs-utils/{nfs-utils-conditionals.patch => nfs-utils-0001-build-avoid-AM_CONDITIONAL-in-conditional-execution.patch} (89%)
rename package/nfs-utils/{nfs-utils-cross-build.patch => nfs-utils-0002-Patch-taken-from-Gentoo.patch} (69%)
rename package/nfs-utils/{nfs-utils-susv3-legacy.patch => nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch} (50%)
rename package/nfs-utils/{nfs-utils-uclibc-libio.h.patch => nfs-utils-0004-fix-build-with-uClibc.patch} (56%)
delete mode 100644 package/nfs-utils/nfs-utils-dont-mix-flags.patchpackage/nfs-utils/nfs-utils-0001-build-avoid-AM_CONDITIONAL-in-conditional-execution.patch renamed from package/nfs-utils/nfs-utils-conditionals.patch +4 -5
@@ -1,8 +1,7 @@ -From 869d37a16d1e409cedd95b03cea29a6db65f9276 Mon Sep 17 00:00:00 2001 +From 2a44ed7558f981e15db58dcda799ff7cd3827a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <[email protected]> Date: Thu, 17 May 2012 16:26:44 -0700 -Subject: [nfs-utils PATCH] build: avoid AM_CONDITIONAL in conditional - execution. +Subject: [PATCH] build: avoid AM_CONDITIONAL in conditional execution. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
@@ -20,7 +19,7 @@ Signed-off-by: Diego Elio Petten? <[email protected]> --- aclocal/libsqlite3.m4 | 1 - configure.ac | 3 +-- - 2 files changed, 1 insertions(+), 3 deletions(-) + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/aclocal/libsqlite3.m4 b/aclocal/libsqlite3.m4 index 73d1e46..8c38993 100644
@@ -54,5 +53,5 @@ index 9ba53e2..b408f1b 100644 -- -1.7.8.6 +1.7.9.5
package/nfs-utils/nfs-utils-0002-Patch-taken-from-Gentoo.patch renamed from package/nfs-utils/nfs-utils-cross-build.patch +19 -3
@@ -1,7 +1,17 @@ -Patch taken from Gentoo. +From 971389625c9602085d399d8ae7fc42b75efcfb7c Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <[email protected]> +Date: Sat, 10 Nov 2012 18:56:12 +0100 +Subject: [PATCH] Patch taken from Gentoo Signed-off-by: Gustavo Zacarias <[email protected]> +--- + tools/locktest/Makefile.am | 7 +++---- + tools/rpcdebug/Makefile.am | 7 +++---- + tools/rpcgen/Makefile.am | 8 +++----- + 3 files changed, 9 insertions(+), 13 deletions(-) +diff --git a/tools/locktest/Makefile.am b/tools/locktest/Makefile.am +index 3156815..efe6fcd 100644 --- a/tools/locktest/Makefile.am +++ b/tools/locktest/Makefile.am @@ -1,12 +1,11 @@
@@ -20,6 +30,8 @@ Signed-off-by: Gustavo Zacarias <[email protected]> -testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD) MAINTAINERCLEANFILES = Makefile.in +diff --git a/tools/rpcdebug/Makefile.am b/tools/rpcdebug/Makefile.am +index 39b70c9..0056597 100644 --- a/tools/rpcdebug/Makefile.am +++ b/tools/rpcdebug/Makefile.am @@ -1,15 +1,14 @@
@@ -41,6 +53,8 @@ Signed-off-by: Gustavo Zacarias <[email protected]> -rpcdebug_LDFLAGS=$(LDFLAGS_FOR_BUILD) MAINTAINERCLEANFILES = Makefile.in +diff --git a/tools/rpcgen/Makefile.am b/tools/rpcgen/Makefile.am +index 8a9ec89..5a5b4d3 100644 --- a/tools/rpcgen/Makefile.am +++ b/tools/rpcgen/Makefile.am @@ -1,7 +1,9 @@
@@ -54,7 +68,7 @@ Signed-off-by: Gustavo Zacarias <[email protected]> noinst_PROGRAMS = rpcgen rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \ -@@ -9,10 +11,6 @@ +@@ -9,10 +11,6 @@ rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \ rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \ rpc_scan.h rpc_util.h
@@ -65,4 +79,6 @@ Signed-off-by: Gustavo Zacarias <[email protected]> MAINTAINERCLEANFILES = Makefile.in - EXTRA_DIST = rpcgen.new.1 +-- +1.7.9.5 +
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch renamed from package/nfs-utils/nfs-utils-susv3-legacy.patch +29 -15
77 lines not on this page · raw message
package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch renamed from package/nfs-utils/nfs-utils-uclibc-libio.h.patch +11 -5
@@ -1,4 +1,7 @@ -[PATCH] fix build with uClibc +From ff82d4c89d6ca771dea06bbaa06ddf3fed760402 Mon Sep 17 00:00:00 2001 +From: Peter Korsgaard <[email protected]> +Date: Sat, 10 Nov 2012 18:58:48 +0100 +Subject: [PATCH] fix build with uClibc uClibc doesn't have/need libio.h, so don't include it from sockaddr.h
@@ -7,10 +10,10 @@ Signed-off-by: Peter Korsgaard <[email protected]> support/include/sockaddr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -Index: nfs-utils-1.2.3/support/include/sockaddr.h -=================================================================== ---- nfs-utils-1.2.3.orig/support/include/sockaddr.h -+++ nfs-utils-1.2.3/support/include/sockaddr.h +diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h +index 9af2543..5eef2ec 100644 +--- a/support/include/sockaddr.h ++++ b/support/include/sockaddr.h @@ -20,7 +20,10 @@ #ifndef NFS_UTILS_SOCKADDR_H #define NFS_UTILS_SOCKADDR_H
@@ -23,3 +26,6 @@ Index: nfs-utils-1.2.3/support/include/sockaddr.h #include <stdbool.h> #include <sys/socket.h> #include <netinet/in.h> +-- +1.7.9.5 +
package/nfs-utils/nfs-utils-dont-mix-flags.patch deleted +0 -288
288 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 5/11 nfs-utils: reformat patch set as git patches
Quoted 11 lines · Thomas Petazzoni
As we will need to add more patches to nfs-utils, we need a correct ordering when applying patches. Therefore, reformat the patches to use a git format and git naming.
The nfs-utils-dont-mix-flags.patch is no longer needed as it was patching Makefile.in files that were being regenerated due to the package having
_AUTORECONF= YES. The Makefile.in are properly regenerated thanks to the nfs-utils-0002-Patch-taken-from-Gentoo.patch patch.Signed-off-by Thomas Petazzoni<[email protected]>
[snip]
package/nfs-utils/nfs-utils-0002-Patch-taken-from-Gentoo.patch line 4
Quoted 13 lines
package/nfs-utils/nfs-utils-0002-Patch-taken-from-Gentoo.patch renamed from package/nfs-utils/nfs-utils-cross-build.patch +4
-1@@ -1,7 +1,17 @@ -Patch taken from Gentoo. +From 971389625c9602085d399d8ae7fc42b75efcfb7c Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias<[email protected]> +Date: Sat, 10 Nov 2012 18:56:12 +0100 +Subject: [PATCH] Patch taken from Gentoo
Could you take the opportunity to improve the patch description a bit?
[snip]
Quoted 8 lines
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch renamed from package/nfs-utils/nfs-utils-susv3-legacy.patch +0
-0
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch line 5
Quoted 7 lines
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch renamed from package/nfs-utils/nfs-utils-susv3-legacy.patch +5
-2@@ -1,11 +1,20 @@ -Switch legacy index() in favour of strchr() -Updated for 1.2.6 from the previous patch by Frederik Pasch. +From 636e78e4c9bc8be174805bde2f3ae7f940dc3d0e Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias<[email protected]> +Date: Sat, 10 Nov 2012 18:58:15 +0100 +Subject: [PATCH] Switch legacy index() in favour of strchr() Updated for + 1.2.6 from the previous patch by Frederik Pasch.
There should be an extra newline here.
[snip]
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch line 8
Quoted 3 lines
package/nfs-utils/nfs-utils-0003-Switch-legacy-index-in-favour-of-strchr.patch renamed from package/nfs-utils/nfs-utils-susv3-legacy.patch +3
-0+-- +1.7.9.5 +
Minor nit: this git version number is also something that is in the way for
refreshing patches. I posted a script a while ago to generate patches from git, and it strips those lines from the patches.
[snip]
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 6/11 nfs-utils: add patches to allow compilation against libtirpc
In reply to Thomas Petazzonilibtirpc does not implement the reentrant function getrpcbynumber_r(), so allow nfs-utils to use the non-reentrant version getrpcbynumber(). This should not be a problem as nfs-utils tools are not multi-threaded.
--- ...-of-getrpcbynumber-when-getrpcbynumber_r-.patch | 70 ++++++++++++++++++++ ...figure-script-find-getrpcbynumber-in-libt.patch | 38 +++++++++++ 2 files changed, 108 insertions(+) create mode 100644 package/nfs-utils/nfs-utils-0005-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch create mode 100644 package/nfs-utils/nfs-utils-0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch
package/nfs-utils/nfs-utils-0005-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch new file +70 -0
@@ -0,0 +1,70 @@ +From a4c15a4f9f49fd2ae5eee7eef54c67f4842952b2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 18:42:28 +0100 +Subject: [PATCH] Allow usage of getrpcbynumber() when getrpcbynumber_r() is + not available + +getrpcbynumber_r() is not implemented by libtirpc at the moment, only +the non-reentrant getrpcbynumber() is available. Since nfs-utils seems +to only be using getrpcbynumber_r() is a non multithreaded context, +using getrpcbynumber() should work just as well. + +We also take this opportunity to adjust the autoconf checks to verify +whether any of getrpcbynumber() or getrpcbynumber_r() is available, +and error out if none of them is available. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 8 ++++---- + support/nfs/svc_socket.c | 6 ++++++ + 2 files changed, 10 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index b408f1b..41216c9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -246,9 +246,6 @@ AC_CHECK_FUNC([connect], , + AC_CHECK_FUNC([getaddrinfo], , + [AC_MSG_ERROR([Function 'getaddrinfo' not found.])]) + +-AC_CHECK_FUNC([getrpcbynumber], , +- [AC_MSG_ERROR([Function 'getrpcbynumber' not found.])]) +- + AC_CHECK_FUNC([getservbyname], , + [AC_MSG_ERROR([Function 'getservbyname' not found.])]) + +@@ -393,8 +390,11 @@ AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \ + getnameinfo getrpcbyname getifaddrs \ + gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \ + realpath rmdir select socket strcasecmp strchr strdup \ +- strerror strrchr strtol strtoul sigprocmask]) ++ strerror strrchr strtol strtoul sigprocmask getrpcbynumber getrpcbynumber_r]) + ++if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then ++ AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available]) ++fi + + dnl ************************************************************* + dnl Check for data sizes +diff --git a/support/nfs/svc_socket.c b/support/nfs/svc_socket.c +index f56f310..61ccf5b 100644 +--- a/support/nfs/svc_socket.c ++++ b/support/nfs/svc_socket.c +@@ -42,8 +42,14 @@ int getservport(u_long number, const char *proto) + struct servent servbuf, *servp = NULL; + int ret; + ++#if HAVE_GETRPCBYNUMBER_R + ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof rpcdata, + &rpcp); ++#else ++ rpcp = getrpcbynumber(number); ++ ret = 0; ++#endif ++ + if (ret == 0 && rpcp != NULL) { + /* First try name. */ + ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata, +-- +1.7.9.5 +
package/nfs-utils/nfs-utils-0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 7ea7814a8b87a0faa50fb9f4a486bfd7a376f3fc Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 18:53:03 +0100 +Subject: [PATCH] Let the configure script find getrpcbynumber in libtirpc + +The getrpcbynumber() function may not be available in the C library, +but only in the libtirpc library. Take this into account when checking +for the existence of getrpcbynumber() and getrpcbynumber_r(). + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 41216c9..1bbecfa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -390,7 +390,15 @@ AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \ + getnameinfo getrpcbyname getifaddrs \ + gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \ + realpath rmdir select socket strcasecmp strchr strdup \ +- strerror strrchr strtol strtoul sigprocmask getrpcbynumber getrpcbynumber_r]) ++ strerror strrchr strtol strtoul sigprocmask]) ++ ++save_CFLAGS=$CFLAGS ++save_LIBS=$LIBS ++CFLAGS="$CFLAGS $AM_CPPFLAGS" ++LIBS="$LIBS $LIBTIRPC" ++AC_CHECK_FUNCS([getrpcbynumber getrpcbynumber_r]) ++CFLAGS=$save_CFLAGS ++LIBS=$save_LIBS + + if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then + AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available]) +-- +1.7.9.5 +
Signature · 1 line
1.7.9.5
PATCH 7/11 quota: allow usage of getrpcbynumber() instead of getrpcbynumber_r()
In reply to Thomas Petazzonilibtirpc does not implement the reentrant function getrpcbynumber_r(), so allow quota to use the non-reentrant version getrpcbynumber(). This should not be a problem as quota tools are not multi-threaded.
--- package/quota/quota-tools-getrpcbynumber.patch | 42 ++++++++++++++++++++++++ package/quota/quota.mk | 4 +++ 2 files changed, 46 insertions(+) create mode 100644 package/quota/quota-tools-getrpcbynumber.patch
package/quota/quota-tools-getrpcbynumber.patch new file +42 -0
@@ -0,0 +1,42 @@ +allow usage of getrpcbynumber() instead of getrpcbynumber_r() + +libtirpc does not implement the reentrant function getrpcbynumber_r(), +so allow quota to use the non-reentrant version getrpcbynumber(). This +should not be a problem as quota tools are not multi-threaded. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: b/configure.in +=================================================================== +--- a/configure.in ++++ b/configure.in +@@ -182,6 +182,12 @@ + AC_C_CONST + AC_C_INLINE + ++AC_CHECK_FUNCS([getrpcbynumber getrpcbynumber_r]) ++ ++if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then ++ AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available]) ++fi ++ + AC_ARG_ENABLE(altformat, + [ --enable-altformat=[yes/no] Enable alternative format used by edquota [default=yes].], + , +Index: b/svc_socket.c +=================================================================== +--- a/svc_socket.c ++++ b/svc_socket.c +@@ -55,7 +55,12 @@ + addr.sin_family = AF_INET; + + if (!port) { ++#if HAVE_GETRPCBYNUMBER_R + ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof(rpcdata), &rpcp); ++#else ++ rpcp = getrpcbynumber(number); ++ ret = 0; ++#endif + if (ret == 0 && rpcp != NULL) { + /* First try name */ + ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata,
package/quota/quota.mk +4 -0
@@ -8,6 +8,8 @@ QUOTA_VERSION = 4.00 QUOTA_SOURCE = quota-$(QUOTA_VERSION).tar.gz QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION) +QUOTA_AUTORECONF = YES + QUOTA_CFLAGS = $(TARGET_CFLAGS) QUOTA_LDFLAGS = $(TARGET_LDFLAGS)
@@ -23,6 +25,8 @@ QUOTA_LDFLAGS += -ltirpc endif QUOTA_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LDFLAGS="$(QUOTA_LDFLAGS)" +QUOTA_CONF_ENV = \ + CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LDFLAGS="$(QUOTA_LDFLAGS)" # Package uses autoconf but not automake. QUOTA_INSTALL_TARGET_OPT = \
Signature · 1 line
1.7.9.5
PATCH 8/11 rpcbind: convert to git patch
In reply to Thomas Petazzoni---
...rpcbind-0001-Remove-yellow-pages-support.patch} | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
rename package/rpcbind/{rpcbind-01-no-yp-support.patch => rpcbind-0001-Remove-yellow-pages-support.patch} (65%)package/rpcbind/rpcbind-0001-Remove-yellow-pages-support.patch renamed from package/rpcbind/rpcbind-01-no-yp-support.patch +14 -4
@@ -1,12 +1,19 @@ -Remove yellow pages support +From 6b5db966ae01c0bdaa7b3b90d9332394af6ea0be Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 22:03:43 +0100 +Subject: [PATCH] Remove yellow pages support This support requires yellow pages support in libtirpc, which isn't available. As most Buildroot users are most likely never going to need such feature, get rid of it. Signed-off-by: Thomas Petazzoni <[email protected]> -Index: b/src/security.c -=================================================================== +--- + src/security.c | 18 ------------------ + 1 file changed, 18 deletions(-) + +diff --git a/src/security.c b/src/security.c +index 0edeac6..c6c977f 100644 --- a/src/security.c +++ b/src/security.c @@ -23,9 +23,6 @@
@@ -19,7 +26,7 @@ Index: b/src/security.c #include "rpcbind.h" -@@ -322,24 +319,9 @@ +@@ -322,24 +319,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused* args->rmt_proc != MOUNTPROC_UMNT) break; goto deny;
@@ -44,3 +51,6 @@ Index: b/src/security.c default: break; } +-- +1.7.9.5 +
Signature · 1 line
1.7.9.5
PATCH 9/11 rpcbind: allow build without NSS support
In reply to Thomas PetazzoniuClibc doesn't provide NSS support, so we shouldn't try to include nss related headers or call nss related functions.
--- ...to-use-NSS-support-when-not-available-in-.patch | 60 ++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 package/rpcbind/rpcbind-0002-Do-not-try-to-use-NSS-support-when-not-available-in-.patch
package/rpcbind/rpcbind-0002-Do-not-try-to-use-NSS-support-when-not-available-in-.patch new file +60 -0
@@ -0,0 +1,60 @@ +From cfc70fb4c54e044f724516e9352f974187adb448 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 22:04:12 +0100 +Subject: [PATCH] Do not try to use NSS support when not available in the C + library + +uClibc does not have NSS support, so it is unnecessary to tell the C +library to use the "files" as the source for "services", since it is +the only possible choice. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + src/rpcbind.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/rpcbind.c b/src/rpcbind.c +index 525ffba..cde8685 100644 +--- a/src/rpcbind.c ++++ b/src/rpcbind.c +@@ -67,7 +67,9 @@ + #include <pwd.h> + #include <string.h> + #include <errno.h> ++#ifdef HAVE_NSS_H + #include <nss.h> ++#endif + #include "config.h" + #include "rpcbind.h" + +@@ -156,11 +158,13 @@ main(int argc, char *argv[]) + exit(1); + } + ++#ifdef HAVE_NSS_H + /* + * Make sure we use the local service file + * for service lookkups + */ + __nss_configure_lookup("services", "files"); ++#endif + + nc_handle = setnetconfig(); /* open netconfig file */ + if (nc_handle == NULL) { +@@ -222,11 +226,13 @@ main(int argc, char *argv[]) + struct passwd *p; + char *id = runasdaemon ? RUN_AS : rpcbinduser; + ++#ifdef HAVE_NSS_H + /* + * Make sure we use the local password file + * for these lookups. + */ + __nss_configure_lookup("passwd", "files"); ++#endif + + if((p = getpwnam(id)) == NULL) { + syslog(LOG_ERR, "cannot get uid of '%s': %m", id); +-- +1.7.9.5 +
Signature · 1 line
1.7.9.5
PATCH 10/11 libnetfilter_queue: does not build without IPv6 support
In reply to Thomas PetazzoniFixes the following build failure:
extra/checksum.c:16:25: fatal error: netinet/ip6.h: No such file or directory compilation terminated.
--- package/libnetfilter_queue/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/libnetfilter_queue/Config.in +3 -2
@@ -1,6 +1,7 @@ config BR2_PACKAGE_LIBNETFILTER_QUEUE bool "libnetfilter_queue" depends on BR2_LARGEFILE + depends on BR2_INET_IPV6 select BR2_PACKAGE_LIBNFNETLINK select BR2_PACKAGE_LIBMNL help
@@ -10,5 +11,5 @@ config BR2_PACKAGE_LIBNETFILTER_QUEUE http://www.netfilter.org/projects/libnetfilter_queue/ -comment "libnetfilter_queue requires a toolchain with LARGEFILE support" - depends on !BR2_LARGEFILE +comment "libnetfilter_queue requires a toolchain with LARGEFILE and IPv6 support" + depends on !BR2_LARGEFILE && !BR2_INET_IPV6
Signature · 1 line
1.7.9.5
PATCH 11/11 rpcbind: fix build on toolchains without IPv6 support
In reply to Thomas Petazzoni--- .../rpcbind-0003-Make-IPv6-configurable.patch | 42 ++++++++++++++++++++ package/rpcbind/rpcbind.mk | 1 + 2 files changed, 43 insertions(+) create mode 100644 package/rpcbind/rpcbind-0003-Make-IPv6-configurable.patch
package/rpcbind/rpcbind-0003-Make-IPv6-configurable.patch new file +42 -0
@@ -0,0 +1,42 @@ +From ab7769e4b57741c654f1a815b006d6548104ba95 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sat, 10 Nov 2012 22:24:56 +0100 +Subject: [PATCH] Make IPv6 configurable + +Add an autoconf check that verifies whether IPv6 is available or not, +and define the INET6 macro if available, instead of hardcoding it in +src/Makefile.am. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.in | 3 +++ + src/Makefile.am | 2 +- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index de1c730..57f0bf0 100644 +--- a/configure.in ++++ b/configure.in +@@ -61,6 +61,9 @@ AC_ARG_ENABLE(libwrap,[ --enable-libwrap Enables host name checking], + esac],[libwarp=false]) + AM_CONDITIONAL(LIBWRAP, test x$libwarp = xtrue) + ++AC_CHECK_HEADER(netinet/ip6.h, ++ AC_DEFINE(INET6, 1, [Define to 1 if IPv6 is available])) ++ + AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) + AC_OUTPUT() + +diff --git a/src/Makefile.am b/src/Makefile.am +index cc0a85b..3826eca 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,4 +1,4 @@ +-INCLUDES = -I$(srcdir)/tirpc -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \ ++INCLUDES = -I$(srcdir)/tirpc -DPORTMAP -DVERSION="\"$(VERSION)\"" \ + -D_GNU_SOURCE -Wall -pipe + if DEBUG + INCLUDES += -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL +-- +1.7.9.5 +
package/rpcbind/rpcbind.mk +1 -0
@@ -9,6 +9,7 @@ RPCBIND_SITE = http://downloads.sourceforge.net/project/rpcbind/rpcbind/$(RPC RPCBIND_SOURCE = rpcbind-$(RPCBIND_VERSION).tar.bz2 RPCBIND_LICENSE = BSD-3c RPCBIND_LICENSE_FILES = COPYING +RPCBIND_AUTORECONF = YES RPCBIND_CONF_ENV += \ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/"
Signature · 1 line
1.7.9.5
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Hello,
Thomas> Here is a set of fixes that should hopefully fix most RPC related Thomas> build failures. At least, I have now tested all packages that use RPC Thomas> support, and built all of them on:
Thomas> * uClibc with RPC support + libtirpc
Thomas> * uClibc without RPC support + libtirpc
Thomas> * glibc with RPC support + libtirpc
Thomas> * glibc without RPC support + libtirpc
Thomas> * uClibc without RPC without IPv6 + libtirpc
Thomas> Some of the patches against libtirpc are really big, and I currently Thomas> am working with upstream to get a solution for these.
Committed series, thanks.
Signature · 1 line
Bye, Peter Korsgaard