Proposed debdiff for hardy-proposed. Tested on i386 and amd64,
debootstrapping hardy now works fine.

** Description changed:

  Binary package hint: fakechroot
  
  Using fakechroot to debootstrap and work with Ubuntu had worked fine
  until Gutsy. With Hardy it breaks completely, scripts fail with all
  sorts of weird errors, such as rm claiming that /etc/shells.tmp does not
  exist (although it does).
  
  The reason is that Hardy's glibc and coreutils started to use the new
  *at() family of system calls, such as fxstatat(), openat(), etc., but
  fakechroot does not handle them at all. Thus paths are not converted to
  the fakechroot environment.
  
  TEST CASE:
    sudo apt-get install fakechroot fakeroot
    mkdir /tmp/c
    cd /tmp/c
    mkdir bin lib
    cp /lib/*.so lib
    cp /bin/{bash,cp,rm,mkdir,echo,ls} bin
    fakeroot fakechroot chroot /tmp/c
  
  Now try some commands in the chroot and see how many break with absolute path 
names:
    $ mkdir /test
    $ echo hello > /test/foo
    $ ls /test/foo
    /test/foo
    $ rm /test/foo
    rm: cannot remove `/test/foo': No such file or directory
    $ rm -r /test
    rm: cannot remove `/test': No such file or directory
  
  They do work with relative paths:
    $ rm test/foo
    $ rm -r test
  
  With the updated version of fakechroot, the ones with absolute path
  names work.
  
  If you do not mind downloading some MB from the net, you can/should test
  debootstrapping:
  
     sudo apt-get install debootstrap
-    fakeroot fakechroot debootstrap hardy /tmp/hardy 
http://de.archive.ubuntu.com/ubuntu
+    fakeroot fakechroot debootstrap --variant=fakechroot hardy /tmp/hardy 
http://de.archive.ubuntu.com/ubuntu
  
  (use your local mirror). This fails horribly with the fakechroot in
  hardy final, but should work with the hardy-proposed version.

** Attachment added: "hardy debdiff"
   http://launchpadlibrarian.net/14384073/fakechroot.228534.debdiff

-- 
Does not wrap *at() functions which makes fakechroot fail badly with Hardy
https://bugs.launchpad.net/bugs/228534
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to