Package: fakechroot Version: 2.9-1 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
So we (debirf maintainers) have stumbled upon a strangeness in the behavior of getcwd() under fakechroot. It appears that the path gets confused depending on if the chroot root path has been specified as a relative path or not: servo:/srv/debirf/rescue 0$ fakeroot fakechroot chroot root pwd / servo:/srv/debirf/rescue 0$ fakeroot fakechroot chroot /srv/debirf/rescue/root pwd / servo:/srv/debirf/rescue 0$ fakeroot fakechroot chroot ./root pwd /srv/debirf/rescue/root servo:/srv/debirf/rescue 0$ In the last case, where the root is specified as a relative path to the current path, getcwd() in the fakechroot (as called from 'pwd') returns a "jailbroken" path. This causes problems for some programs, most notably apt-get: servo:/srv/debirf/rescue 0$ fakeroot fakechroot chroot ./root apt-get update Get: 1 http://mirrors.kernel.org squeeze Release.gpg [835B] Ign http://mirrors.kernel.org squeeze/main Translation-en_US Get: 2 http://mirrors.kernel.org squeeze Release [96.5kB] Get: 3 http://mirrors.kernel.org squeeze/main Packages/DiffIndex [2,038B] Get: 4 http://mirrors.kernel.org squeeze/main 2009-09-28-0316.44.pdiff [11.9kB] Get: 5 http://mirrors.kernel.org squeeze/main 2009-09-28-0316.44.pdiff [11.9kB] Get: 6 http://mirrors.kernel.org squeeze/main 2009-09-28-0316.44.pdiff [11.9kB] Fetched 111kB in 16s (6,603B/s) E: Unable to change to /srv/debirf/rescue/root/ - chdir (2: No such file or directory) servo:/srv/debirf/rescue 100$ (curiously aptitude does not seem bothered). I imagine there might be an easy fix to this, but more skilled eyes can probably come up with one much quicker than I ever could. Thanks for the help, and thanks for maintaining an important tool. jamie. - -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (200, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages fakechroot depends on: ii libc6 2.9-25 GNU C Library: Shared libraries fakechroot recommends no packages. fakechroot suggests no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJKwGBLAAoJEO00zqvie6q8KtMP/25hj72cI/LlB0mwwuwocUCa 77S5t60VSLWA/hziPNrLQnMy2sMFEBVUdnpS/f+qPph80swZ5nIhbHLJG8UJ4GCx AeTND9rCyzQGngTdkSq7qb2tzFIXG7M1KCYf3KIw+mFGsrkfuL5DSSCqISGmxPfO kKwwJzJrOhIoMpunieniKzNJ3TuWIydGIBGjka1YDeC81rQyaQPkncCF+qG7l+eK mDejOfoX2uhqfTTv5Hi1umSyFIkfpO+IBEVwJqwk0WyHTkhmOPQ+bForwP9B1Y2e j59lZyOYUNo+fJ/0bswdeOr+Cs053jPcbVbjnoDc0CxS9g406OCcPCzVzPODIfMH mjSnHjnAOFZ80JvbUgbWjVug9ECKe/YmwaCvtMlNagAm91MdUyBo2bOE+OTyrxrU cf9eoJTS5+e7pVbs6mFAKiXGzfoNFRRgZkwxvhoy8cLrdNd5QCEgor0lIfy9Qjp/ YALjcwm8g/28XMPoQXBIbZmsfiOuIR+9+9FmXK4/eEu0trJkwgP/brm7RRYeOkMT zKs8za8FkZ6MBYZoIaPufJxXviu2mQlpT5cXN0/NTJaBQ6pd5KuL20i9N7u1knX/ uSpQ5rxesiZujXfPDoiVLMDD0EPyAEiuFUllD7WsS1ncmM2HOPR54cP4NV+Cs/F3 DQ1+OA1wUQb3jg+H17q5 =SdpR -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

