[Buildroot] [PATCH 1/4] nfs-utils: add host package

Baruch Siach baruch at tkos.co.il
Mon May 21 08:28:18 UTC 2018


Hi Thomas,

On Mon, May 21, 2018 at 10:19:28AM +0200, Thomas Petazzoni wrote:
> On Mon, 21 May 2018 09:07:56 +0300, Baruch Siach wrote:
> 
> > > Do you have an idea on how to address this ? Do we need to build
> > > host-libtirpc ?  
> > 
> > I'll take a look.
> 
> Thanks!
> 
> > If we need host-libtirpc we would not be able to remove the rpcgen patch since 
> > that would create a circular dependency.
> 
> Except if we manage to convince host-libtirpc that it should just
> install the RPC headers, and not do anything that needs rpcgen.
> 
> > Why do we actually need rpcgen in libtirpc?
> 
> If I remember correctly, it's because it needs to generate the C code
> matching those RPC descriptions:
> 
> ./tirpc/rpc/rpcb_prot.x
> ./tirpc/rpcsvc/crypt.x
> ./tirpc/rpcsvc/key_prot.x

The libtirpc tarball bundles these generated files. But for some reason we 
regenerate them from C.

> But it's been a very long time I did this, and libtirpc has been
> updated multiple times since then.
> 
> Alternatively, one approach would be to bundle a pre-generated version
> of those C files instead of having to run rpcgen. Not the nicest
> solution, but that's one solution.

If we can use the bundled files, we can get rid of rpcgen in libtirpc.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list