Debian Bug report logs - #204652
debootstrap: fakechroot support

version graph

Package: debootstrap; Maintainer for debootstrap is Debian Install System Team <debian-boot@lists.debian.org>; Source for debootstrap is src:debootstrap (PTS, buildd, popcon).

Reported by: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>

Date: Sat, 9 Aug 2003 01:33:01 UTC

Severity: wishlist

Tags: fixed, patch

Found in version 0.2.2-0.1

Fixed in version debootstrap/0.3.3

Done: Anthony Towns <aj@azure.humbug.org.au>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
New Bug report received and forwarded. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Debian Bug Tracking System - Submit <submit@bugs.debian.org>
Subject: debootstrap: fakechroot support
Date: Sat, 9 Aug 2003 03:18:42 +0200 (CEST)
[Message part 1 (text/plain, inline)]
Package: debootstrap
Version: 0.2.2-0.1
Severity: wishlist
Tags: patch

Hi,

There is support for fakechroot(1). It is possible to build new
environment on standard user account.

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-
[a.diff (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Anthony Towns <ajt@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #10 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <ajt@debian.org>
To: "J.H.M. Dassen (Ray)" <jdassen@debian.org>
Cc: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>, 204652@bugs.debian.org
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 14:40:59 +1000
[Message part 1 (text/plain, inline)]
[bug report added to cc's]

On Tue, Aug 19, 2003 at 08:27:39PM +0200, J.H.M. Dassen (Ray) wrote:
> On Tue, Aug 19, 2003 at 17:18:43 +0200, Piotr Roszatycki wrote:
> > Do you agree to add fakechroot support to debootstrap?
> It seems like a useful addition, but I'm not the one you should be asking,
> as I'm merely a co-maintainer for debootstrap. 

> I haven't yet had time to check out fakechroot, but the concept is very
> promising, as it would make building/testing packages on other architectures
> a lot easier (by cutting out the time involved in getting debian-admin to
> install packages in the regular chroots).

How does it work, and what does it actually let you do? Presumably it's
similar to fakeroot, and thus you have to run:

	fakeroot
		debootstrap
		apt-get install blah-dev
		debuild # or whatever you want to run

in order to keep permissions and ownerships (since they'll all be lost
when fakeroot exits).

I'd encourage you to switch from:

	setup_proc () {
		if [ "$fakechroot" = true ]; then
			foo
		else
			bar
		fi
	}

to:

	if [ "$fakechroot" = true ]; then
		setup_proc () {
			foo
		}

		# other fakechroot differences go here
	else
		setup_proc () {
			bar
		}
	
		# ...
	fi

Collecting all the changes into a single place is a good thing.

I don't understand why you're adding fake ldconfigs and ldds. They don't
seem to require any special privleges, so I don't see why the regular
versions don't work under fakechroot.

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

       ``Is this some kind of psych test?
                      Am I getting paid for this?''
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #15 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <ajt@debian.org>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 09:58:04 +0200 (CEST)
On Wed, 20 Aug 2003, Anthony Towns wrote:
> How does it work, and what does it actually let you do? Presumably it's
> similar to fakeroot, and thus you have to run:
>
> 	fakeroot
> 		debootstrap
> 		apt-get install blah-dev
> 		debuild # or whatever you want to run
>
> in order to keep permissions and ownerships (since they'll all be lost
> when fakeroot exits).

You can use -s options. It is the same as for fakeroot, because fakechroot
is based on fakeroot and wraps more system functions. Unfortunately this
feature sometimes works wrong, so in doc directory (or scripts in source)
you can find simple script which save and restore ownerships.

> I'd encourage you to switch from:
> 	setup_proc () {
> 		if [ "$fakechroot" = true ]; then
> to:
> 	if [ "$fakechroot" = true ]; then
> 		setup_proc () {
>
> Collecting all the changes into a single place is a good thing.

setup_proc and setup_devices are called from many scripts so I thought it
is good place to make changes.

> I don't understand why you're adding fake ldconfigs and ldds. They don't
> seem to require any special privleges, so I don't see why the regular
> versions don't work under fakechroot.

ldconfig is statically linked and fakechroot is preloaded dynamically
library, so ldconfig doesn't work with fakechroot.

ldd also omits wrapped functions so it checks libraries only outside faked
chroot.

They can be other limitations for this faked environment. I succesfully
builded a few packages in this way so this project can be useful.

Greets,

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Anthony Towns <ajt@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #20 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <ajt@debian.org>
To: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 18:24:13 +1000
[Message part 1 (text/plain, inline)]
On Wed, Aug 20, 2003 at 09:58:04AM +0200, Piotr Roszatycki wrote:
> > 	fakeroot
> > 		debootstrap
> > 		apt-get install blah-dev
> > 		debuild # or whatever you want to run
> > in order to keep permissions and ownerships (since they'll all be lost
> > when fakeroot exits).
> You can use -s options. 

Aha. So would it make sense to do something like:

	debootstrap --fakechroot [...]
	fakechroot -i chroot/.fakechroot-settings chroot
		apt-get install blah-dev
		debuild

or similar? (that is, have debootstrap run fakechroot as necessary)

> Unfortunately this
> feature sometimes works wrong, so in doc directory (or scripts in source)
> you can find simple script which save and restore ownerships.

(If debootstrap's calling fakechroot, it can use this work around too, as
necessary)

> > I'd encourage you to switch from:
> > 	setup_proc () {
> > 		if [ "$fakechroot" = true ]; then
> > to:
> > 	if [ "$fakechroot" = true ]; then
> > 		setup_proc () {
> >
> > Collecting all the changes into a single place is a good thing.
> 
> setup_proc and setup_devices are called from many scripts so I thought it
> is good place to make changes.

Yes, it is. The above doesn't change where it's called, just what's called.

> ldconfig is statically linked and fakechroot is preloaded dynamically
> library, so ldconfig doesn't work with fakechroot.
> 
> ldd also omits wrapped functions so it checks libraries only outside faked
> chroot.

Aha. That makes sense.

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

       ``Is this some kind of psych test?
                      Am I getting paid for this?''
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #25 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <ajt@debian.org>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 10:51:50 +0200 (CEST)
On Wed, 20 Aug 2003, Anthony Towns wrote:
> > You can use -s options.
>
> Aha. So would it make sense to do something like:
>
> 	debootstrap --fakechroot [...]
> 	fakechroot -i chroot/.fakechroot-settings chroot
> 		apt-get install blah-dev
> 		debuild

Uhm, not exactly.

You should run:

 mkdir chroot
 fakechroot -s chroot/.fakechroot-settings
 debootstrap --fakeroot
 exit

 fakechroot -i chroot/.fakechroot-settings
 chroot chroot /bin/bash
 apt-get install

debootstrap doesn't call fakechroot directly. The switch --fakechroot just
makes debootstrap "fakechroot-friendly".

There is possibility to detect fakechroot environment and enable this
switch automatically.

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Anthony Towns <ajt@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #30 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <ajt@debian.org>
To: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 20:32:40 +1000
[Message part 1 (text/plain, inline)]
On Wed, Aug 20, 2003 at 10:51:50AM +0200, Piotr Roszatycki wrote:
> On Wed, 20 Aug 2003, Anthony Towns wrote:
> > > You can use -s options.
> > Aha. So would it make sense to do something like:
> > 	debootstrap --fakechroot [...]
> > 	fakechroot -i chroot/.fakechroot-settings chroot
> > 		apt-get install blah-dev
> > 		debuild
> Uhm, not exactly.

I realise the patch doesn't support this.

But my intuition for it would be to have "--fakechroot" allow you to
run debootstrap as an ordinary user. Sure, you have to run "fakechroot"
to get into it, rather than real chroot, but that's no big deal.

ie, the syntax would be something like:

	debootstrap --fakechroot ...
		# fakechroots into $TARGET, creates chroot, saves settings as
		# $TARGET/.debootstrap-fakechroot

That probably requires debootstrap re-exec'ing itself, but that's no
big deal.

> There is possibility to detect fakechroot environment and enable this
> switch automatically.

Yes, that's probably a good idea too.

Also, why is fakechroot being added to the list of debs to install
for sid?

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

       ``Is this some kind of psych test?
                      Am I getting paid for this?''
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #35 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <ajt@debian.org>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 13:03:00 +0200 (CEST)
On Wed, 20 Aug 2003, Anthony Towns wrote:
> I realise the patch doesn't support this.
>
> But my intuition for it would be to have "--fakechroot" allow you to
> run debootstrap as an ordinary user. Sure, you have to run "fakechroot"
> to get into it, rather than real chroot, but that's no big deal.
>
> ie, the syntax would be something like:
>
> 	debootstrap --fakechroot ...
> 		# fakechroots into $TARGET, creates chroot, saves settings as
> 		# $TARGET/.debootstrap-fakechroot
>
> That probably requires debootstrap re-exec'ing itself, but that's no
> big deal.
>
> > There is possibility to detect fakechroot environment and enable this
> > switch automatically.
>
> Yes, that's probably a good idea too.

Hmm, which option would be better?

> Also, why is fakechroot being added to the list of debs to install
> for sid?

There must be a libfakechroot.so library in chroot as far as it is
preloaded by linker.

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Anthony Towns <ajt@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #40 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <ajt@debian.org>
To: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 21:39:52 +1000
[Message part 1 (text/plain, inline)]
On Wed, Aug 20, 2003 at 01:03:00PM +0200, Piotr Roszatycki wrote:
> > Also, why is fakechroot being added to the list of debs to install
> > for sid?
> There must be a libfakechroot.so library in chroot as far as it is
> preloaded by linker.

But the linker can look outside the chroot, if libfakechroot hasn't
already been loaded... I mention this because this sid script is the
only one that adds fakeroot and fakechroot. 

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

       ``Is this some kind of psych test?
                      Am I getting paid for this?''
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #45 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <ajt@debian.org>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 20 Aug 2003 15:59:29 +0200 (CEST)
On Wed, 20 Aug 2003, Anthony Towns wrote:

> On Wed, Aug 20, 2003 at 01:03:00PM +0200, Piotr Roszatycki wrote:
> > > Also, why is fakechroot being added to the list of debs to install
> > > for sid?
> > There must be a libfakechroot.so library in chroot as far as it is
> > preloaded by linker.
>
> But the linker can look outside the chroot, if libfakechroot hasn't
> already been loaded... I mention this because this sid script is the
> only one that adds fakeroot and fakechroot.

It will be problem if binary in chroot want library in chroot which is
not available outside chroot. Linker will use wrapped open function so it
will search libfakechroot in chroot.

The fakechroot package is only available for sid distribution yet, so in
this script it is added to base packages.

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #50 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <ajt@debian.org>
Cc: "J.H.M. Dassen (Ray)" <jdassen@debian.org>, "204652@bugs.debian.org" <204652@bugs.debian.org>
Subject: Re: fakechroot support
Date: Wed, 01 Oct 2003 14:20:03 +0200
[Message part 1 (text/plain, inline)]
Anthony Towns wrote:
>>>Aha. So would it make sense to do something like:
>>>	debootstrap --fakechroot [...]
>>>	fakechroot -i chroot/.fakechroot-settings chroot
>>>		apt-get install blah-dev
>>>		debuild
> 
> ie, the syntax would be something like:
> 
> 	debootstrap --fakechroot ...
> 		# fakechroots into $TARGET, creates chroot, saves settings as
> 		# $TARGET/.debootstrap-fakechroot

I've attached the newest patch which causes debootstrap reexec itself 
with fakechroot if '--fakechroot' option is used. It means it is 
possible to do:

$ /usr/sbin/debootstrap --fakechroot sid /sid
$ fakechroot -i /sid/.fakechroot-savemode chroot /sid /bin/bash --login

-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-
[debootstrap-fakechroot.diff (text/plain, inline)]
Index: debootstrap
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/debootstrap,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -2 -r1.1.1.1 -r1.3
--- debootstrap	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ debootstrap	1 Oct 2003 12:03:27 -0000	1.3
@@ -48,4 +48,5 @@
       --components=A,B,C     use packages from the listed components of the 
                              archive
+      --fakechroot           build in fakechroot environment
 EOF
 }
@@ -123,4 +124,9 @@
     shift 1
     ;;
+  --fakechroot)
+    fakechroot=true
+    export fakechroot
+    shift 1
+    ;;
 	*)
 	  break
@@ -173,4 +179,12 @@
 
 if [ "$JUST_PRINT_DEBS" = "" -a "$DOWNLOAD_ONLY" = "" -a -x /usr/bin/id ] && [ `id -u` -ne 0 ]; then
+  if [ "$fakechroot" == "true" ]; then
+    if [ "$PATH" == "${PATH#*/sbin}" ]; then
+      export PATH=$PATH:/usr/sbin:/sbin
+    fi
+    mkdir -p "$TARGET"
+    exec fakechroot -s "$TARGET/.fakechroot-savemode" "$0" "$@"
+    error 1 NOFAKECHROOT "Couldn't run fakechroot"
+  fi
   error 1 NEEDROOT "debootstrap can only run as root"
 fi
@@ -222,3 +236,2 @@
   sleep 1 || true # give the user a second to see the success notice.
 fi
-
Index: debootstrap.8
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/debootstrap.8,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -2 -r1.1.1.1 -r1.2
--- debootstrap.8	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ debootstrap.8	9 Aug 2003 01:12:14 -0000	1.2
@@ -52,4 +52,7 @@
 .IP "\fB--debian-installer\fP"
 Used for internal purposes by the debian-installer
+.IP
+.IP "\fB--fakechroot\fP"
+Used if build in fakechroot environment
 .IP 
 .SH "EXAMPLE"
Index: functions
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/functions,v
retrieving revision 1.1.1.1
retrieving revision 1.4
diff -u -2 -r1.1.1.1 -r1.4
--- functions	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ functions	1 Oct 2003 12:03:27 -0000	1.4
@@ -543,7 +543,14 @@
 
 setup_proc () {
-  on_exit "umount $TARGET/proc"
-  umount $TARGET/proc 2>/dev/null || true
-  in_target mount -t proc proc /proc
+  if [ "$fakechroot" != "true" ]; then
+    on_exit "umount $TARGET/proc"
+    umount $TARGET/proc 2>/dev/null || true
+    in_target mount -t proc proc /proc
+  else
+    for i in cmdline cpuinfo devices filesystems loadavg meminfo misc modules partitions stat swaps uptime version; do
+        cat /proc/$i > "$TARGET/proc/$i"
+    done
+    mkdir -p "$TARGET/proc/1"
+  fi
 }
 
@@ -553,5 +560,7 @@
   else
     if [ -e /dev/.devfsd ]; then
-      in_target mount -t devfs devfs /dev
+      if [ "$fakechroot" != "true" ]; then
+        in_target mount -t devfs devfs /dev
+      fi
     else
       error 1 NODEVTGZ "no %s. cannot create devices" "$DEVICES_TARGZ"
@@ -609,3 +618,132 @@
   eval `echo EXIT_THING_${N_EXIT_THINGS}=\"$1\"`
   N_EXIT_THINGS="$(( $N_EXIT_THINGS + 1 ))"
+}
+
+################################################################### fake tools
+
+install_fake_tools () {
+  mv "$TARGET/sbin/ldconfig" "$TARGET/sbin/ldconfig.REAL"
+  echo \
+"#!/bin/sh
+echo
+echo \"Warning: Fake ldconfig called, doing nothing\"" > "$TARGET/sbin/ldconfig"
+  chmod 755 "$TARGET/sbin/ldconfig"
+
+  echo \
+"/sbin/ldconfig
+/sbin/ldconfig.REAL
+fakechroot" >> "$TARGET/var/lib/dpkg/diversions"
+
+  mv "$TARGET/usr/bin/ldd" "$TARGET/usr/bin/ldd.REAL"
+  cat << 'END' > "$TARGET/usr/bin/ldd"
+#!/usr/bin/perl
+
+# fakeldd
+#
+# Replacement for ldd with usage of objdump
+#
+# (c) 2003 Piotr Roszatycki <dexter@debian.org>, GPL
+
+
+my %libs = ();
+my @ld_library_path = qw(/usr/lib /lib);
+my $status = 0;
+my $dynamic = 0;
+
+sub ldso($) {
+    my ($lib) = @_;
+    my @files = ();
+    
+    foreach my $ld_path (@ld_library_path) {
+	-f "$ld_path/$lib" or next;
+	$libs{$lib} = "$ld_path/$lib";
+	push @files, "$ld_path/$lib";
+    }
+
+    objdump(@files);
+}
+
+sub objdump(@) {
+    my (@files) = @_;
+    my @libs = ();
+
+    foreach my $file (@files) {
+	open OBJDUMP, "objdump -p $file 2>/dev/null |";
+	while (my $line = <OBJDUMP>) {
+	    $line =~ s/^\s+//;
+	    my @f = split (/\s+/, $line);
+	    if ($f[0] eq "Dynamic") {
+		$dynamic = 1;
+	    }
+	    $f[0] eq "NEEDED" or next;
+	    if (! defined $libs{$f[1]}) {
+	        $libs{$f[1]} = undef;
+		push @libs, $f[1];
+	    }
+	}
+	close OBJDUMP;
+    }
+
+    foreach my $lib (@libs) {
+	ldso($lib);
+    }
+}
+
+
+if ($#ARGV < 0) {
+    print STDERR "fakeldd: missing file arguments\n";
+    exit 1;
+}
+
+open LD_SO_CONF, "/etc/ld.so.conf";
+while ($line = <LD_SO_CONF>) {
+    chomp $line;
+    unshift @ld_library_path, $line;
+}
+close LD_SO_CONF;
+
+unshift @ld_library_path, split(/:/, $ENV{LD_LIBRARY_PATH});
+
+foreach my $file (@ARGV) {
+    %libs = ();
+    $dynamic = 0;
+
+    if ($#ARGV > 0) {
+	print "$file:\n";
+    }
+
+    if (! -f $file) {
+	print STDERR "ldd: $file: No such file or directory\n";
+	$status = 1;
+	next;
+    }
+
+    objdump($file);
+    
+    if ($dynamic == 0) {
+	print "\tnot a dynamic executable\n";
+	$status = 1;
+    } elsif (scalar %libs eq "0") {
+	print "\tstatically linked\n";
+    }
+
+    foreach $lib (keys %libs) {
+	if ($libs{$lib}) {
+    	    printf "\t%s => %s (0x00000000)\n", $lib, $libs{$lib};
+	} else {
+	    printf "\t%s => not found\n", $lib;
+	}
+    }
+    
+}
+
+exit $status;
+END
+  chmod 755 "$TARGET/usr/bin/ldd"
+
+  echo \
+"/usr/bin/ldd
+/usr/bin/ldd.REAL
+fakechroot" >> "$TARGET/var/lib/dpkg/diversions"
+
 }
Index: potato
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/potato,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -2 -r1.1.1.1 -r1.2
--- potato	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ potato	9 Aug 2003 00:15:28 -0000	1.2
@@ -43,6 +43,8 @@
     setup_devices
 
-    ln "$TARGET/sbin/ldconfig.new" "$TARGET/sbin/ldconfig"
-    in_target /sbin/ldconfig
+    if [ "$fakechroot" != "true" ]; then
+        ln "$TARGET/sbin/ldconfig.new" "$TARGET/sbin/ldconfig"
+        in_target /sbin/ldconfig
+    fi
 
     x_feign_install () {
@@ -80,4 +82,8 @@
     fi
 
+    if [ "$fakechroot" = "true" ]; then
+        install_fake_tools
+    fi
+
     x_core_install base-files base-passwd ldso
     x_core_install dpkg
@@ -98,5 +104,7 @@
 
     setup_dselect_method apt
-    on_exit "in_target umount /dev/pts"
+    if [ "$fakechroot" != "true" ]; then
+	on_exit "in_target umount /dev/pts"
+    fi
 
     in_target dpkg --configure --pending --force-configure-any --force-depends
Index: sarge
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/sarge,v
retrieving revision 1.1.1.3
retrieving revision 1.4
diff -u -2 -r1.1.1.3 -r1.4
--- sarge	30 Sep 2003 16:20:27 -0000	1.1.1.3
+++ sarge	30 Sep 2003 16:23:01 -0000	1.4
@@ -113,5 +113,7 @@
     setup_devices
 
-    in_target /sbin/ldconfig
+    if [ "$fakechroot" != "true" ]; then
+        in_target /sbin/ldconfig
+    fi
 
     p () {
@@ -165,4 +167,8 @@
     fi
 
+    if [ "$fakechroot" = "true" ]; then
+        install_fake_tools
+    fi
+
     p; progress $baseprog $bases INSTBASE "Installing base system" #4
     x_core_install $LIBC6
@@ -192,5 +198,7 @@
 
     setup_dselect_method apt
-    on_exit "in_target_nofail umount /dev/pts"
+    if [ "$fakechroot" != "true" ]; then
+        on_exit "in_target_nofail umount /dev/pts"
+    fi
 
     p; progress $baseprog $bases INSTBASE "Installing base system" #19
Index: sid
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/sid,v
retrieving revision 1.1.1.2
retrieving revision 1.4
diff -u -2 -r1.1.1.2 -r1.4
--- sid	30 Sep 2003 16:20:27 -0000	1.1.1.2
+++ sid	30 Sep 2003 16:23:01 -0000	1.4
@@ -9,4 +9,8 @@
 console-tools libconsole console-data cpio cron dhcp-client ed exim4 exim4-base exim4-config exim4-daemon-light fdutils gettext-base groff-base ifupdown info klogd libdb1-compat libident libgnutls7 libssl0.9.7 libgcrypt1 liblzo1 libopencdk4 libtasn1-0 zlib1g liblockfile1 libpcre3 libsasl2 libtext-iconv-perl libwrap0 logrotate mailx man-db libgdbm3 manpages modconf nano net-tools netbase netkit-inetd iputils-ping nvi ppp pppconfig pppoe pppoeconf libpcap0.7 sysklogd tasksel tcpd telnet wget $additional"
 
+    if [ "$fakechroot" = "true" ]; then
+        required="$required fakeroot fakechroot"
+    fi
+
     without_package () {
         echo "$2" | tr ' ' '\n' | grep -v "^$1$" | tr '\n' ' '
@@ -113,5 +117,7 @@
     setup_devices
 
-    in_target /sbin/ldconfig
+    if [ "$fakechroot" != "true" ]; then
+        in_target /sbin/ldconfig
+    fi
 
     p () {
@@ -165,4 +171,8 @@
     fi
 
+    if [ "$fakechroot" = "true" ]; then
+        install_fake_tools
+    fi
+
     p; progress $baseprog $bases INSTBASE "Installing base system" #4
     x_core_install $LIBC6
@@ -192,5 +202,7 @@
 
     setup_dselect_method apt
-    on_exit "in_target_nofail umount /dev/pts"
+    if [ "$fakechroot" != "true" ]; then
+        on_exit "in_target_nofail umount /dev/pts"
+    fi
 
     p; progress $baseprog $bases INSTBASE "Installing base system" #19
Index: slink
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/slink,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -2 -r1.1.1.1 -r1.2
--- slink	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ slink	9 Aug 2003 00:15:28 -0000	1.2
@@ -35,6 +35,8 @@
     mv "$TARGET/usr/bin/perl.dist" "$TARGET/usr/bin/perl"
 
-    ln "$TARGET/sbin/ldconfig.new" "$TARGET/sbin/ldconfig"
-    in_target /sbin/ldconfig
+    if [ "$fakechroot" != "true" ]; then
+        ln "$TARGET/sbin/ldconfig.new" "$TARGET/sbin/ldconfig"
+        in_target /sbin/ldconfig
+    fi
 
     x_feign_install () {
@@ -65,4 +67,8 @@
     x_core_install base-files base-passwd ldso
     x_core_install dpkg
+
+    if [ "$fakechroot" = "true" ]; then
+        install_fake_tools
+    fi
 
     ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
Index: woody
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/woody,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -2 -r1.1.1.1 -r1.2
--- woody	8 Aug 2003 23:22:59 -0000	1.1.1.1
+++ woody	9 Aug 2003 00:15:28 -0000	1.2
@@ -101,5 +101,7 @@
     setup_devices
 
-    in_target /sbin/ldconfig
+    if [ "$fakechroot" != "true" ]; then
+        in_target /sbin/ldconfig
+    fi
 
     p () {
@@ -151,4 +153,8 @@
     fi
 
+    if [ "$fakechroot" = "true" ]; then
+        install_fake_tools
+    fi
+
     p; progress $baseprog $bases INSTBASE "Installing base system" #4
     x_core_install $LIBC6
@@ -178,5 +184,7 @@
 
     setup_dselect_method apt
-    on_exit "in_target_nofail umount /dev/pts"
+    if [ "$fakechroot" != "true" ]; then
+        on_exit "in_target_nofail umount /dev/pts"
+    fi
 
     p; progress $baseprog $bases INSTBASE "Installing base system" #19
Index: debian/changelog
===================================================================
RCS file: /cvsroot/cvsdebuild/debian/upstream/debootstrap/debian/changelog,v
retrieving revision 1.1.1.3
retrieving revision 1.5
diff -u -2 -r1.1.1.3 -r1.5

Message sent on to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Bug#204652. (full text, mbox, link).


Message #53 received at 204652-submitter@bugs.debian.org (full text, mbox, reply):

From: Junichi Uekawa <dancer@netfort.gr.jp>
To: 204652-submitter@bugs.debian.org
Subject: patch?
Date: Fri, 21 Nov 2003 07:25:27 +0900
Hi,

I've been following this bug, because I'd like to get fakechroot supported on pbuilder;
however your latest patch seems to modify the behavior of debootstrap outside of fakechroot;
could you fix that ?



regards.
	junichi




Information stored:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <dexter@netia.net.pl>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #58 received at 204652-quiet@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <dexter@netia.net.pl>
To: Junichi Uekawa <dancer@netfort.gr.jp>, "204652-quiet@bugs.debian.org" <204652-quiet@bugs.debian.org>
Subject: Re: Bug#204652: patch?
Date: Fri, 21 Nov 2003 00:17:48 +0100
Cytowanie Junichi Uekawa <dancer@netfort.gr.jp>: 
 
> I've been following this bug, because I'd like to get fakechroot supported 
on 
> pbuilder; 
> however your latest patch seems to modify the behavior of debootstrap 
outside 
> of fakechroot; 
> could you fix that ? 
 
What do you mean? Which behavior? 
 
--  
Piotr Roszatycki, Netia Telekom S.A.                    .''`. 
mailto:Piotr_Roszatycki@netia.net.pl                   : :' : 
mailto:dexter@debian.org                               `. `' 
                                                         `- 
 



Information stored:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #63 received at 204652-quiet@bugs.debian.org (full text, mbox, reply):

From: Junichi Uekawa <dancer@netfort.gr.jp>
To: Piotr Roszatycki <dexter@netia.net.pl>
Cc: Junichi Uekawa <dancer@netfort.gr.jp>, "204652-quiet@bugs.debian.org" <204652-quiet@bugs.debian.org>
Subject: Re: Bug#204652: patch?
Date: Tue, 25 Nov 2003 07:14:26 +0900
> > I've been following this bug, because I'd like to get fakechroot supported 
> on 
> > pbuilder; 
> > however your latest patch seems to modify the behavior of debootstrap 
> outside 
> > of fakechroot; 
> > could you fix that ? 
>  
> What do you mean? Which behavior? 

I've re-read the patch, and it seems that the behavior I saw
(debootstrap code path changing after patching for non-fakechroot)
was something of a mystery.


Why is this patch not integrated into debootstrap ?



BTW, I'd personally like it if it were like 

if [ "$fakechroot" = "yes" ]; then
	notinfakechroot=:
else
	notinfakechroot=	
fi


$notinfakechroot ldconfig  


etc, so that the code doesn't get too long; 
however, preferences may vary.



regards,
	junichi



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <dexter@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #68 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <dexter@netia.net.pl>
To: 204652@bugs.debian.org
Subject: Updated patch for debootstrap with fakechroot
Date: Fri, 11 Feb 2005 21:53:14 +0100 (CET)
Hi.

Last time I've modified slightly the patch for debootstrap which enables 
fakechroot compatibility. Could you integrate it with upstream, please?

There is no need for ---fakechroot switch. The fakechroot environment is 
detected by FAKECHROOT variable set to "true".

The patch is available at

http://svn.debian.org/wsvn.php/fakechroot/trunk/doc/debootstrap.diff

-- 
.''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #73 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org
Cc: debootstrap@bugs.debian.org
Subject: NMU for fakechroot support?
Date: Mon, 28 Feb 2005 16:38:35 +0100
Hello? Can I do NMU to close the bug?

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #78 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org
Subject: Re: Bug#204652: patch
Date: Thu, 16 Jun 2005 13:45:37 +0200
Hi.

I've implemented fakechroot support as additional variant.
An example usage:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 
fakechroot /usr/sbin/debootstrap --variant=fakechroot 
sarge /home/dexter/chroot/sarge

I'm going to upload NMU with this supported feature.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #83 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org
Subject: Re: missing patch
Date: Thu, 16 Jun 2005 13:50:26 +0200
[Message part 1 (text/plain, inline)]
Oh, I forgot to attach the patch...

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-
[debootstrap-fakechroot.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #88 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org
Subject: Re: missing patch
Date: Thu, 16 Jun 2005 15:38:33 +0200
[Message part 1 (text/plain, inline)]
This is the last revision of my patch. It supports only sarge distribution.

I've tested it as:

$ fakechroot /usr/sbin/debootstrap --variant=fakechroot 
sarge /home/dexter/chroot/sarge http://mirrors.internetia.pl/pub/debian

$ fakechroot chroot /home/dexter/chroot/sarge /bin/bash

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-
[debootstrap-fakechroot.diff (text/x-diff, attachment)]

Tags added: fixed Request was from Piotr Roszatycki <dexter@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #95 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org, Anthony Towns <ajt@debian.org>
Subject: Re: incompatible license requirements (GPL)
Date: Sun, 23 Oct 2005 22:54:18 +0200
Hello.

Please tell me, why you completly removed fakechroot support? My patches were 
never released under GPL license and it is not true that the modifications 
for debootstrap had incompatible license requirements.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Anthony Towns <aj@azure.humbug.org.au>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #100 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <aj@azure.humbug.org.au>
To: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>, 204652@bugs.debian.org
Subject: Re: Bug#204652: incompatible license requirements (GPL)
Date: Mon, 24 Oct 2005 12:29:30 +1000
On Sun, Oct 23, 2005 at 10:54:18PM +0200, Piotr Roszatycki wrote:
> Please tell me, why you completly removed fakechroot support? My patches were 
> never released under GPL license 

aj@cyan:~/P/debootstrap/0.3.1.9$ grep GPL *
functions:# (c) 2003-2005 Piotr Roszatycki <dexter@debian.org>, GPL

Cheers,
aj



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #105 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <aj@azure.humbug.org.au>
Cc: 204652@bugs.debian.org
Subject: Re: Bug#204652: incompatible license requirements (GPL)
Date: Mon, 24 Oct 2005 12:41:42 +0200
On Monday 24 of October 2005 04:29, Anthony Towns wrote:
> On Sun, Oct 23, 2005 at 10:54:18PM +0200, Piotr Roszatycki wrote:
> > Please tell me, why you completly removed fakechroot support? My patches
> > were never released under GPL license
>
> aj@cyan:~/P/debootstrap/0.3.1.9$ grep GPL *
> functions:# (c) 2003-2005 Piotr Roszatycki <dexter@debian.org>, GPL

I've just uploaded the new fakechroot package relicensed to LGPL. I hope the 
license problem is just fixed now.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #110 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: Anthony Towns <aj@azure.humbug.org.au>
Cc: 204652@bugs.debian.org
Subject: Re: Bug#204652: incompatible license requirements (GPL)
Date: Mon, 24 Oct 2005 17:43:54 +0200
[Message part 1 (text/plain, inline)]
On Monday 24 of October 2005 04:29, Anthony Towns wrote:
> On Sun, Oct 23, 2005 at 10:54:18PM +0200, Piotr Roszatycki wrote:
> > Please tell me, why you completly removed fakechroot support? My patches
> > were never released under GPL license
>
> aj@cyan:~/P/debootstrap/0.3.1.9$ grep GPL *
> functions:# (c) 2003-2005 Piotr Roszatycki <dexter@debian.org>, GPL

I'd like to apply attached patch. It enables fakechroot support. It was tested 
with sarge and sid target and worked correctly.

Greets.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-
[debootstrap-0.3.2.1.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#204652; Package debootstrap. (full text, mbox, link).


Acknowledgement sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>. (full text, mbox, link).


Message #115 received at 204652@bugs.debian.org (full text, mbox, reply):

From: Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>
To: 204652@bugs.debian.org
Subject: New patch for fakechroot support
Date: Sat, 29 Oct 2005 11:42:26 +0200
[Message part 1 (text/plain, inline)]
Hi. I'm uploading new debootstrap with new patch applied. The whole stuff is 
relicensed so there is no any license issues, I hope.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-
[debootstrap-0.3.2.2.diff (text/x-diff, attachment)]

Tags added: fixed Request was from Piotr Roszatycki <dexter@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Anthony Towns <aj@azure.humbug.org.au>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Piotr Roszatycki <Piotr_Roszatycki@netia.net.pl>:
Bug acknowledged by developer. (full text, mbox, link).


Message #122 received at 204652-close@bugs.debian.org (full text, mbox, reply):

From: Anthony Towns <aj@azure.humbug.org.au>
To: 204652-close@bugs.debian.org
Subject: Bug#204652: fixed in debootstrap 0.3.3
Date: Sat, 05 Nov 2005 10:47:04 -0800
Source: debootstrap
Source-Version: 0.3.3

We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive:

debootstrap-udeb_0.3.3_powerpc.udeb
  to pool/main/d/debootstrap/debootstrap-udeb_0.3.3_powerpc.udeb
debootstrap_0.3.3.dsc
  to pool/main/d/debootstrap/debootstrap_0.3.3.dsc
debootstrap_0.3.3.tar.gz
  to pool/main/d/debootstrap/debootstrap_0.3.3.tar.gz
debootstrap_0.3.3_all.deb
  to pool/main/d/debootstrap/debootstrap_0.3.3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 204652@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anthony Towns <aj@azure.humbug.org.au> (supplier of updated debootstrap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  6 Nov 2005 04:12:39 +1000
Source: debootstrap
Binary: debootstrap-udeb debootstrap
Architecture: source all powerpc
Version: 0.3.3
Distribution: unstable
Urgency: low
Maintainer: Anthony Towns <ajt@debian.org>
Changed-By: Anthony Towns <aj@azure.humbug.org.au>
Description: 
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 204652 299048 315044 319100 328446 335922 337230
Changes: 
 debootstrap (0.3.3) unstable; urgency=low
 .
   * Include kFreeBSD and fakechroot support from 0.3.2.1 and 0.3.2.2 NMUs,
     thanks to Otavio Salvador and Piotr Roszatycki. (Closes: Bug#319100,
     Bug#328446, Bug#204652, Bug#315044, Bug#Bug#319799)
 .
   * Require target to be specified in all cases; document usage of target
     for --print-debs. (Closes: Bug#335922, Bug#337230)
 .
   * Use ln -sf when symlinking awk for woody and sarge. (Closes: Bug#299048)
Files: 
 7266e3277c14ae65cd10d629794c0b2e 557 admin - debootstrap_0.3.3.dsc
 22fcb8cc4218e582ad701b44e2549dce 218441 admin - debootstrap_0.3.3.tar.gz
 f5ebc511618c4168a318d25ae7a8d6ea 44962 admin extra debootstrap_0.3.3_all.deb
 f293103aef297b71b01f9376d1c2603e 36544 debian-installer required debootstrap-udeb_0.3.3_powerpc.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----

iD8DBQFDbPxAOxe8dCpOPqoRAphoAJ4lg/IAGQEnt1Fb5W7kSBPyUBWUCQCeMUZ9
lP8Q4kr/efaxkjui6xvNkl4=
=vssJ
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 25 Jun 2007 20:17:54 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 25 17:08:43 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.