* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
@ 2019-08-12 3:09 unixmania at gmail.com
2019-08-12 16:14 ` Peter Seiderer
0 siblings, 1 reply; 6+ messages in thread
From: unixmania at gmail.com @ 2019-08-12 3:09 UTC (permalink / raw)
To: buildroot
From: Carlos Santos <unixmania@gmail.com>
IPv6 support depends on libtirpc, so no not disable it if libtirpc is
selected. In practice this always enables IPv6, since nfs-utils needs
rpcbind, which in its turn always selects libtirpc.
Fixes: https://bugs.busybox.net/show_bug.cgi?id=10806
Signed-off-by: Carlos Santos <unixmania@gmail.com>
---
CC: nathan.renniewaldock at gmail.com
---
package/nfs-utils/nfs-utils.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index dc20942f71..974f2a5710 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -19,7 +19,6 @@ NFS_UTILS_CONF_OPTS = \
--disable-nfsv41 \
--disable-gss \
--disable-uuid \
- --disable-ipv6 \
--without-tcp-wrappers \
--with-statedir=/run/nfs \
--with-rpcgen=internal
@@ -55,7 +54,7 @@ ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
NFS_UTILS_CONF_OPTS += --enable-tirpc
NFS_UTILS_DEPENDENCIES += libtirpc
else
-NFS_UTILS_CONF_OPTS += --disable-tirpc
+NFS_UTILS_CONF_OPTS += --disable-ipv6 --disable-tirpc
endif
define NFS_UTILS_INSTALL_FIXUP
--
2.18.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
2019-08-12 3:09 [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected unixmania at gmail.com
@ 2019-08-12 16:14 ` Peter Seiderer
2019-08-12 16:33 ` Carlos Santos
2019-08-12 21:06 ` Thomas Petazzoni
0 siblings, 2 replies; 6+ messages in thread
From: Peter Seiderer @ 2019-08-12 16:14 UTC (permalink / raw)
To: buildroot
Hello Carlos,
On Mon, 12 Aug 2019 00:09:54 -0300, unixmania at gmail.com wrote:
> From: Carlos Santos <unixmania@gmail.com>
>
> IPv6 support depends on libtirpc, so no not disable it if libtirpc is
s/no not/do not/
> selected. In practice this always enables IPv6, since nfs-utils needs
> rpcbind, which in its turn always selects libtirpc.
Why not simple select it directly?
Regards,
Peter
>
> Fixes: https://bugs.busybox.net/show_bug.cgi?id=10806
>
> Signed-off-by: Carlos Santos <unixmania@gmail.com>
> ---
> CC: nathan.renniewaldock at gmail.com
> ---
> package/nfs-utils/nfs-utils.mk | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
> index dc20942f71..974f2a5710 100644
> --- a/package/nfs-utils/nfs-utils.mk
> +++ b/package/nfs-utils/nfs-utils.mk
> @@ -19,7 +19,6 @@ NFS_UTILS_CONF_OPTS = \
> --disable-nfsv41 \
> --disable-gss \
> --disable-uuid \
> - --disable-ipv6 \
> --without-tcp-wrappers \
> --with-statedir=/run/nfs \
> --with-rpcgen=internal
> @@ -55,7 +54,7 @@ ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
> NFS_UTILS_CONF_OPTS += --enable-tirpc
> NFS_UTILS_DEPENDENCIES += libtirpc
> else
> -NFS_UTILS_CONF_OPTS += --disable-tirpc
> +NFS_UTILS_CONF_OPTS += --disable-ipv6 --disable-tirpc
> endif
>
> define NFS_UTILS_INSTALL_FIXUP
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
2019-08-12 16:14 ` Peter Seiderer
@ 2019-08-12 16:33 ` Carlos Santos
2019-08-12 21:06 ` Thomas Petazzoni
1 sibling, 0 replies; 6+ messages in thread
From: Carlos Santos @ 2019-08-12 16:33 UTC (permalink / raw)
To: buildroot
On Mon, Aug 12, 2019 at 1:14 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> Hello Carlos,
>
> On Mon, 12 Aug 2019 00:09:54 -0300, unixmania at gmail.com wrote:
>
> > From: Carlos Santos <unixmania@gmail.com>
> >
> > IPv6 support depends on libtirpc, so no not disable it if libtirpc is
>
> s/no not/do not/
Ops! I will fix it.
> > selected. In practice this always enables IPv6, since nfs-utils needs
> > rpcbind, which in its turn always selects libtirpc.
>
> Why not simple select it directly?
I was following Arnout's suggested in
https://bugs.busybox.net/show_bug.cgi?id=10806#c1
But I agree that selecting directly is a simpler and better approach.
--
Carlos Santos <unixmania@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
2019-08-12 16:14 ` Peter Seiderer
2019-08-12 16:33 ` Carlos Santos
@ 2019-08-12 21:06 ` Thomas Petazzoni
2019-08-12 23:47 ` Carlos Santos
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2019-08-12 21:06 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 12 Aug 2019 18:14:50 +0200
Peter Seiderer <ps.report@gmx.net> wrote:
> On Mon, 12 Aug 2019 00:09:54 -0300, unixmania at gmail.com wrote:
>
> > From: Carlos Santos <unixmania@gmail.com>
> >
> > IPv6 support depends on libtirpc, so no not disable it if libtirpc is
>
> s/no not/do not/
>
> > selected. In practice this always enables IPv6, since nfs-utils needs
> > rpcbind, which in its turn always selects libtirpc.
>
> Why not simple select it directly?
Because it is an optional dependency and as such is not strictly
required, so we don't typically force such optional dependencies in
Buildroot.
I found the v1 from Carlos to be more appropriate than his v2. If you
want RPC/IPv6 support, then you must enable libtirpc, and nfs-utils.mk
properly uses libtirpc if available.
Arnout, what do you think ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
2019-08-12 21:06 ` Thomas Petazzoni
@ 2019-08-12 23:47 ` Carlos Santos
2019-08-13 12:14 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Carlos Santos @ 2019-08-12 23:47 UTC (permalink / raw)
To: buildroot
On Mon, Aug 12, 2019 at 6:06 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> On Mon, 12 Aug 2019 18:14:50 +0200
> Peter Seiderer <ps.report@gmx.net> wrote:
>
> > On Mon, 12 Aug 2019 00:09:54 -0300, unixmania at gmail.com wrote:
> >
> > > From: Carlos Santos <unixmania@gmail.com>
> > >
> > > IPv6 support depends on libtirpc, so no not disable it if libtirpc is
> >
> > s/no not/do not/
> >
> > > selected. In practice this always enables IPv6, since nfs-utils needs
> > > rpcbind, which in its turn always selects libtirpc.
> >
> > Why not simple select it directly?
>
> Because it is an optional dependency and as such is not strictly
> required, so we don't typically force such optional dependencies in
> Buildroot.
> I found the v1 from Carlos to be more appropriate than his v2. If you
> want RPC/IPv6 support, then you must enable libtirpc, and nfs-utils.mk
> properly uses libtirpc if available.
>
> Arnout, what do you think ?
It's an optional dependency only if we decide to make ipv6 optional,
which goes against the decision taken years go, according to Arnout's
comment[1]: "We decided a few years ago to no longer make ipv6 support
in packages optional, i.e. always assume it is there." That's why by
default autotools packages are configured with --enable-ipv6 (see
package/pkg-autotools.mk).
1. https://bugs.busybox.net/show_bug.cgi?id=10806#c1
--
Carlos Santos <unixmania@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected
2019-08-12 23:47 ` Carlos Santos
@ 2019-08-13 12:14 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2019-08-13 12:14 UTC (permalink / raw)
To: buildroot
On Mon, 12 Aug 2019 20:47:06 -0300
Carlos Santos <unixmania@gmail.com> wrote:
> It's an optional dependency only if we decide to make ipv6 optional,
> which goes against the decision taken years go, according to Arnout's
> comment[1]: "We decided a few years ago to no longer make ipv6 support
> in packages optional, i.e. always assume it is there." That's why by
> default autotools packages are configured with --enable-ipv6 (see
> package/pkg-autotools.mk).
>
> 1. https://bugs.busybox.net/show_bug.cgi?id=10806#c1
But then in this case, we should entirely drop the RPC support for
uClibc-ng, as it doesn't support IPv6 if I remember correctly, and
simply force libtirpc for all packages that need RPC support. This is
not just something specific to nfs-utils, we have a number of other
packages that use RPC.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-08-13 12:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-12 3:09 [Buildroot] [PATCH] package/nfs-utils: enable IPv6 if libtirpc is selected unixmania at gmail.com
2019-08-12 16:14 ` Peter Seiderer
2019-08-12 16:33 ` Carlos Santos
2019-08-12 21:06 ` Thomas Petazzoni
2019-08-12 23:47 ` Carlos Santos
2019-08-13 12:14 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox