On Thu, Nov 24, 2011 at 04:23:21AM +0000, Ken Moffat wrote:
>  I've got it working!  Unfortunately, I've been through a lot of
> revisions without any obvious change to the results, so I'll need to
> rip the nfs stack out and start again so that I can see which parts
> are needed.

 Summary of what fixed it after my initial success without hosts.deny:

1. hosts.allow : 'rpcbind: 127.' i.e. NOT 192.168.X. or whatever your
network is on

2. /etc/services - changing this to allow rpcbind IS required.
Remind me to revisit the past discussion on lfs-dev about iana-etc,
there might be other changes that affect people.  Meanwhile, when
building rpcbind I use the following:

  grep ' 111/' /etc/services | grep rpcbind || \
   sed -i 's%\(.* 111/... \)\( *#.*\)%\1rpcbind\2%' /etc/services

3. The version of libtirpc in the book, with Bruce's patch, *does*
work, at least for nfsv3.

4. rpcbind replaces portmap, and I've added a bootscript on the same
K/S numbers: you don't want both, but portmap was perfectly adequate
so long as rpc was included in glibc.  Perhaps portmap should stay in
the book for a transitional period, while people are still building
on old versions of LFS, with a link to the OLD bootscripts ?

 Those are the minimum changes, but at some point during my testing
and reviewing, I noticed that /sbin/mount.nfs was linked to /usr/lib
libraries.  I don't mount /usr separately, but I don't particularly
want to break that. So, I've made the following additional changes:

tcp_wrappers-7.6 - I anyway use the -shared_lib_plus_plus patch and
remove the static libwrap.a.  I've added the following to my script,
based on debian:

  mv -v /usr/lib/libwrap.so* /lib
  ln -sfv /lib/libwrap.so.0 /usr/lib/libwrap.so


libtirpc-0.2.2 - I changed the install to:

  make libdir=/lib pkgconfigdir=/usr/lib/pkgconfig install

(that is based on fedora, not sure if specifying pkgconfigdir is
necessary, but it does no harm) and then, because the pkgconfig
file points to /usr/lib

  ln -sfv /lib/libtirpc.so /usr/lib


rpcbind-0.2.2 -

 When rpcinfo was provided by glibc, it went into /usr/sbin.
The rpcbind program replaces portmap which has always been in /sbin
and has a manpage that says only root can run it.  So, after the
install

  mv -v /usr/bin/rpcbind /sbin
  mv -v /usr/bin/rpcinfo /usr/sbin


libnfsidmap-0.24 -

  ./configure --prefix=/usr --libdir=/lib --enable-static=no

 This is because there is a plugin directory containing nsswitch.so
and static.so, therefore moving the libraries after installing them
is likely to break things.

 A side effect is that the pkgconfig file goes into /lib/pkgconfig
(there is no option for --pkgconfigdir here), so after the install

  mv -v /lib/pkgconfig/libnfsidmap.pc /usr/lib/pkgconfig
  rmdir -v /lib/pkgconfig


 Obviously, I rebuilt all affected packages after each set of
changes, so I'm fairly confident the build is ok.

 Now, I need to set up a separate partition for a 7.0 server test
system where I can test nfs-server and dhcp-server - the longest
part will be sorting out my scripts to do only what is desirable!

 Meanwhile, I've also got some current, and older, systems running
freetype < 2.4.8 to update.

ĸen
> -- 
> http://linuxfromscratch.org/mailman/listinfo/blfs-dev
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page


-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to