This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: deprecated sunrpc and rpc/netdb.h


On Wed, Mar 16, Mike Frysinger wrote:

> On 16 Mar 2016 15:33, Thorsten Kukuk wrote:
> > On Wed, Mar 16, Mike Frysinger wrote:
> > > netdb.h provides funcs to map RPC names<->ports and is only useful
> > > to rpc related code.  if we purge sunrpc code from glibc (which we
> > > want), then purging the netdb code too makes sense.
> > 
> > Correct, but how do you want to handle NSS?
> > There is a "rpc" entry in /etc/nsswitch.conf and it doesn't
> > make much sense to copy the whole NSS code into tirpc and
> > similar libraries.
> 
> drop it from glibc too and make it an ignored keyword.  whether tirpc
> wants to support that indirection is up to that project.

Sorry, but it is completly unrealistic, that an another
project duplicates the glibc NSS infrastructure to support
this. Don't forget, that another project would to closely
follow everything glibc is doing, since there is only one
NSS plugin, which has support for the glibc and tirpc part.
And I'm not sure if this will really work, if this plugins
are always loaded twice ...

> > And how do you want to solve the current problem of 
> > source code breakage with the dummy rpc/netdb.h?
> 
> i'm not familiar with the details you're referring to.  if glibc is
> built with --disable-obsolete-rpc, then it shouldn't install this
> header at all.

Correct, but this would break everything which includes netdb.h,
which is a glibc header file. I assume for this reason, the dummy
rpc/netdb.h was introduced, but it does not solve the problem.

If you don't want to touch every single piece of code there
outside (and this would be the only other option I currently
see, which would be completly incompatible to any other Unix), 
the best solution I currently see is, that glibc continues 
to ship rpc/netdb.h and the corresponding rpcent functions.
Especially, as this function don't contain any SunRPC code 
anymore, this are pure glibc macros.

  Thorsten

-- 
Thorsten Kukuk, Senior Architect SLES & Common Code Base
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]