#2782: Minor tweak to Coreutils installation
----------------------------------------+-----------------------------------
 Reporter:  ra...@…                     |       Owner:  lfs-b...@…              
     
     Type:  task                        |      Status:  new                     
     
 Priority:  normal                      |   Milestone:  6.8                     
     
Component:  Book                        |     Version:  SVN                     
     
 Severity:  normal                      |    Keywords:                          
     
----------------------------------------+-----------------------------------

Comment(by matt...@…):

 chroot isn't mentioned explicitly (from what I could see anyway) in either
 the FHS or The Open Group Base Specifications Issue 7 (IEEE Std
 1003.1-2008).  So, I guess it comes down to
 http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES which
 says that section 1 is for "User programs" and section 8 is for "System
 administration".  Given that only root can run chroot (unless a user's
 shell process has been given CAP_SYS_CHROOT privs), I'd be in agreement
 that this should be in section 8.  Note that Debian & Ubuntu also happen
 to place the chroot man page in section 8.  This is from the debian/rules
 hunk of their patch at
 
http://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_8.5-1ubuntu3.diff.gz:

 {{{
 +       # gnu thinks chroot is in bin, debian thinks it's in sbin
 +       install -d $(d)/usr/sbin $(d)/usr/share/man/man8
 +       mv $(d)/usr/bin/chroot $(d)/usr/sbin/chroot
 +       sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 >
 $(d)/usr/share/man/man8/chroot.8
 +       rm $(d)/usr/share/man/man1/chroot.1
 }}}

 The only other file that refers to this in an LFS + partial BLFS build is
 pivot_root(8).  I'll see if I can throw a patch at bug-coreutils and see
 if it sticks!

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2782#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to