On Fri, 16 Dec 2011 15:12:16 +0200
Stefano Rivera <stefa...@debian.org> wrote:

(appologies in advance if the pastes are broken, claws-mail can be a
right pos at times).

> Hi Karl (2011.12.14_01:57:05_+0200)
> > Because pbuilder-dist is available in squeeze, but qemu-debootstrap
> > isn't, I've downloaded the script from bug 572952 and I'm trying to
> > use it with pbuilder-dist. Unfortunately, despite saying "install
> > or change DEBOOTSTRAP option" it seems to ignore the environment
> > and the users .pbuilderrc. Could this be changed please? It makes
> > it excessively hard to use the thing, to the extent that you need
> > to be able to edit roots pbuilderrc.
> 
> pbuilder-dist is passing --debootstrap qemu-debootstrap to pbuilder.
> That overrides anything in pbuilderrc. Can you not put it somewhere on
> your PATH?

Perhaps it shouldn't suggest using DEBOOTSTRAP option, if it simply
ignores it. It certainly set me down a wrong path.

I put qemu-debootstrap in /usr/local/bin and still had no joy from
pbuilder-dist. I wound up making a copy and hard coding in the path for
qemu-debootstrap before it would work.


10:08:24  kgoetz@epicfail: /tmp $ grep qemu /usr/local/bin/pbuilder-dist
                # For some foreign architectures we need to use qemu
                        args.append('--debootstrap qemu-debootstrap')
                        # args.append('--debootstrap 
/usr/local/bin/qemu-debootstrap')
10:08:38  kgoetz@epicfail: /tmp $ PBUILDFOLDER=/home/kgoetz/custom-pbuilder 
/usr/local/bin/pbuilder-dist squeeze armel mainonly create
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin/:/usr/sbin/:/home/kgoetz/.bin/:/home/kgoetz
W: /root/.pbuilderrc does not exist
I: Logging to 
/home/kgoetz/custom-pbuilder/squeeze-armel_result/last_operation.log
I: Distribution is squeeze.
I: Building the build environment
I: running qemu-debootstrap
E: qemu-debootstrap does not exist, install or change DEBOOTSTRAP option
W: Aborting with an error
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//30521 and its subdirectories
10:08:44  kgoetz@epicfail: /tmp $ grep qemu /usr/local/bin/pbuilder-dist
                # For some foreign architectures we need to use qemu
                        args.append('--debootstrap 
/usr/local/bin/qemu-debootstrap')
10:08:57  kgoetz@epicfail: /tmp $ PBUILDFOLDER=/home/kgoetz/custom-pbuilder 
/usr/local/bin/pbuilder-dist squeeze armel mainonly create
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin/:/usr/sbin/:/home/kgoetz/.bin/:/home/kgoetz
W: /root/.pbuilderrc does not exist
I: Logging to 
/home/kgoetz/custom-pbuilder/squeeze-armel_result/last_operation.log
I: Distribution is squeeze.
I: Building the build environment
I: running /usr/local/bin/qemu-debootstrap
/usr/local/bin/qemu-debootstrap
I: Running command: debootstrap --arch armel --foreign --include=apt 
--variant=buildd --keyring /usr/share/keyrings/debian-archive-keyring.gpg 
squeeze . http://mirror.internode.on.net/pub/debian
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 9FED2BCBDCD29CDF762678CBAED4B06F473041FA)
I: Retrieving Packages
^V^CE: Interrupt caught ... exiting
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//30568 and its subdirectories


On Fri, 16 Dec 2011 15:48:35 +0200
Stefano Rivera <stefa...@debian.org> wrote:

> Hi Karl (2011.12.14_02:14:53_+0200)
> > PATH=$PATH:/script/location/ in roots .pbuilderrc: PASS
> > Hard coding the path in a copy of the script: PASS
> > 
> > So it seems it might actually be a path issue, not a DEBOOTSTRAP
> > one. Not sure if the script should be changed to match the man
> > page, or the man page to match the script.
> 
> Which manpage are we talking about?

Sorry, I meant the scripts output (my mistake there).

10:08:38  kgoetz@epicfail: /tmp $ PBUILDFOLDER=/home/kgoetz/custom-pbuilder 
/usr/local/bin/pbuilder-dist squeeze armel mainonly create
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin/:/usr/sbin/:/home/kgoetz/.bin/:/home/kgoetz
W: /root/.pbuilderrc does not exist
I: Logging to 
/home/kgoetz/custom-pbuilder/squeeze-armel_result/last_operation.log
I: Distribution is squeeze.
I: Building the build environment
I: running qemu-debootstrap
E: qemu-debootstrap does not exist, install or change DEBOOTSTRAP option
W: Aborting with an error
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//30521 and its subdirectories

> Having to set up *anything* in root's .pbuilderrc is a bad sign.
> It should be using your .pbuilderrc.
> 
> This is why pbuilder-dist now refuses to be run under sudo, and calls
> sudo itself. A bit of an ugly hack, but not too much one can do about
> it...

Hopefully this can be worked out then.
thanks,
kk

-- 
Karl Goetz, (Kamping_Kaiser / VK7FOSS)
http://www.kgoetz.id.au
No, I won't join your social networking group

Attachment: signature.asc
Description: PGP signature

Reply via email to