Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC v1] Rework of RPC support to handle glibc >= 2.14 and libtirpc
Date: Wed, 29 Aug 2012 00:34:54 +0200	[thread overview]
Message-ID: <503D478E.4030400@mind.be> (raw)
In-Reply-To: <cover.1344706801.git.thomas.petazzoni@free-electrons.com>

On 08/11/12 19:40, Thomas Petazzoni wrote:
> Hello,
>
> This set of patches reworks the RPC support to take into account newer
> glibc versions that do not provide RPC support. This is still a work
> in progress and this version is a RFC only.

  It looks pretty good though.

[snip]
>   * Patch 3 makes a naive rename BR2_INET_RPC to
>     BR2_TOOLCHAIN_HAS_NATIVE_RPC. This name better describes what it
>     means: whether the toolchain has or does not have RPC support (the
>     RPC support will later have the capability of being provided by
>     libtirpc, outside of the toolchain).

  This is probably done with an automatically with a script, right?  Then
I think you should include the script in the commit message.  That way,
it can easily be reproduced even if some new package started using
BR2_INET_RPC.


[snip]
>   * Patch 5 adds a package for libtirpc, with a bunch of patches to
>     make its compilation work properly on top of uClibc.

  Anything upstreamable?


>   * Patch 12 makes it possible to link nfs-utils against libtirpc. The
>     only thing worth mentionning is that I removed the select on
>     BR2_PACKAGE_PORTMAP. This select was not a build-time dependency,
>     but a run-time dependency, and nowadays, nfs-utils can work
>     together with rpcbind rather than portmap (which is deprecated).

  Maybe keep the select if LIBTIRPC is not selected, and select rpcbind
if it is.


>   * Patch 13 adds a package for rpcbind, the modern replacement for
>     portmap. This package directly selects libtirpc. Question: how
>     should it behave with toolchains having internal RPC support?

  Is it possible to compile rpcbind with internal RPC support?  In that case
I definitely think that case should be supported (and then portmap can be
deprecated).  I think you can use
	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC

  Maybe the same pattern can be applied to the other RPC users (excluding
busybox, of course).  And in that case the BR2_RPC_SUPPORT_AVAILABLE
symbol isn't needed...

[snip]
>   * Patch 14 adds a small comment in portmap saying that rpcbind is the
>     newer replacement. Portmap doesn't link properly against libtirpc,
>     and it probably isn't worth fixing it. Question: should I mark
>     portmap as deprecated?

  Unless rpcbind works for native rpc, it shouldn't be deprecated.

[snip]
>   * Patches 18-20 add the latest Sourcery CodeBench toolchain for ARM,
>     x86 and SH4. Those glibc toolchains use glibc 2.15 and therefore do
>     not have RPC support.

  The help text about RPC should be the same for all three.  Actually there's
probably no need to mention RPC, the comments in the packages requiring RPC
are sufficient.

  Regards,
  Arnout

-- 
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

      parent reply	other threads:[~2012-08-28 22:34 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11 17:40 [Buildroot] [RFC v1] Rework of RPC support to handle glibc >= 2.14 and libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 01/20] uClibc: use the Buildroot toolchain options instead of the hidden common options Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 02/20] toolchain-crosstool-ng: use the Crosstool-ng config options instead of the common hidden ones Thomas Petazzoni
2012-08-12 15:05   ` Yann E. MORIN
2012-08-12 15:26     ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 03/20] Rename BR2_INET_RPC to BR2_TOOLCHAIN_HAS_NATIVE_RPC Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 04/20] toolchain-external: improve glibc support to test availability of RPC Thomas Petazzoni
2012-08-12 15:18   ` Yann E. MORIN
2012-08-22  8:20   ` Fabio Porcedda
2012-08-22 14:00     ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 05/20] libtirpc: new package Thomas Petazzoni
2012-08-12 15:43   ` Yann E. MORIN
2012-08-28 17:34     ` Arnout Vandecappelle
2012-08-28 17:39   ` Arnout Vandecappelle
2012-08-11 17:40 ` [Buildroot] [PATCH 06/20] busybox: add support to link against libtirpc when available Thomas Petazzoni
2012-08-12 15:51   ` Yann E. MORIN
2012-08-28 17:51     ` Arnout Vandecappelle
2012-08-11 17:40 ` [Buildroot] [PATCH 07/20] netkitbase: convert to the generic-package infrastructure Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 08/20] netkitbase: mark as deprecated Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 09/20] netkittelnet: convert to generic-package infrastructure Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 10/20] netkittelnet: mark as deprecated Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 11/20] lmbench: add support to use libtirpc when available Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 12/20] nfs-utils: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 13/20] rpcbind: new package Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 14/20] portmap: mention that rpcbind is the project that superseds portmap Thomas Petazzoni
2012-08-12 15:55   ` Yann E. MORIN
2012-08-13 17:35     ` Thomas Petazzoni
2012-08-13 18:26       ` Gustavo Zacarias
2012-08-11 17:40 ` [Buildroot] [PATCH 15/20] quota: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 16/20] samba: unconditionally enable --with-sys-quotas Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 17/20] xinetd: add support to use RPC support from libtirpc Thomas Petazzoni
2012-08-12 15:58   ` Yann E. MORIN
2012-08-14 13:07     ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 18/20] toolchain-external: add Sourcery CodeBench SuperH 2012.03 Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 19/20] toolchain-external: add Sourcery CodeBench x86 2012.03 Thomas Petazzoni
2012-08-28 18:15   ` Arnout Vandecappelle
2012-08-28 20:55     ` Thomas Petazzoni
2012-08-11 17:40 ` [Buildroot] [PATCH 20/20] external-toolchain: add Sourcery CodeBench ARM 2012.03 Thomas Petazzoni
2012-08-22  8:46   ` Fabio Porcedda
2012-08-22 13:51     ` Thomas Petazzoni
2012-08-22 14:36       ` Yann E. MORIN
2012-08-28 22:45         ` Arnout Vandecappelle
2012-08-29  9:37           ` Yann E. MORIN
2012-08-28 22:34 ` Arnout Vandecappelle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=503D478E.4030400@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox