Hi Ian, sorry, I forgot to CC you in my reply to bug #868657 (see below) and when I found the thread in my inbox, I found that we had already talked outside of the bug report and that also answered my question about what you want to do. :)
If you find more issues, please report them. Thanks! cheers, josch Quoting Johannes Schauer (2018-07-01 16:20:56) > Control: tag -1 + pending > > Hi Ian, > > On Mon, 17 Jul 2017 10:59:35 +0100 Ian Jackson > <[email protected]> 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
signature.asc
Description: signature

