Control: tag -1 + pending

Hi Ian,

On Mon, 17 Jul 2017 10:59:35 +0100 Ian Jackson 
<ijack...@chiark.greenend.org.uk> wrote:
> I am trying to do a strange thing: use sbuild with adt-virt-null, without
> being root.

I'm curious, what strange thing is that?

> I have discovered that sbuild insists on trying to create /build even if an
> alternative --build-path is specified:
> 
> + 
> BUILD_PATH=/home/ian/things/Dgit/dgit/tests/tmp/sbuild-adt-null/sbuild-build-path
> + sbuild --chroot-mode=autopkgtest 
> --autopkgtest-virt-server=/usr/bin/fakeroot 
> --autopkgtest-virt-server-opt=adt-virt-null -D 
> --build-path=/home/ian/things/Dgit/dgit/tests/tmp/sbuild-adt-null/sbuild-build-path
>  '--dpkg-source-opts=-Zgzip -z1 --format=1.0 -sn'
> ...
> I: env sh -c cd / && exec "$@" exec /bin/sh -c set -e; if [ ! -d /build ] ; 
> then mkdir -m 0775 /build; fi
> D: Setting Log Stream Error=1
> D: Running command: env sh -c cd / && exec "$@" exec /bin/sh -c set -e; if [ 
> ! -d /build ] ; then mkdir -m 0775 /build; fi
> mkdir: cannot create directory '/build': Permission denied
> E: Failed to create build directory /build
> Failed to set up chroot
> 
> (I expect that when I get past this I will have to prevent it from
> running apt.)
> 
> Full repro:
>  $ git clone git://git.chiark.greenend.org.uk/~ianmdlvl/dgit.git
>  $ cd dgit
>  $ git checkout 904c4128a89555d5caecb100943da23fffd7ee98
>  $ tests/using-intree tests/tests/sbuild-adt-null 2>&1 |tee ../log
> 
> You will find that this hangs.  That is due to a bug in adt-virt-null,
> #868576.  However, you can look at the logfile;
>  ^Z
>  $ less tests/tmp/sbuild-adt-null/example_1.1-1_amd64.build
> 
> Observe in that log the error messages I quote above.
> The file ../log (from tee) will contain the output from the dgit test
> machinery, which includes much noise, but I don't think is relevant.

I now fixed this particular bug in commit
435d85f89ea091946e281fd2724ea576f3a87003 but I suspect there are many more
problems ahead for you. What is it that you want to do?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to