#958989 dgit-user(7): building instructions don't work

Package:
dgit
Source:
dgit
Submitter:
Nikolaus Rath
Date:
2022-12-26 15:54:03 UTC
Severity:
normal
Tags:
#958989#5
Date:
2020-04-27 18:07:22 UTC
From:
To:
Dear Maintainer,

I'm trying to follow dgit-user(7) to build a modified version of a package.
I did:

$ dgit clone valgrind
$ cd valgrind
$ git apply ../my_special_patch.diff
$ git commit -m "Way better than vanilla!"
$ gbp dch -S --since=dgit/dgit/sid --ignore-branch --commit
$ git clean -xdf
$ sbuild -c buster-amd64 -A --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

But this eventually fails with:


dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -rfakeroot
dpkg-buildpackage: info: source package valgrind
dpkg-buildpackage: info: source version 1:3.15.0-2~1.gbpd4e99a
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Nikolaus Rath <Nikolaus@rath.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with=autoreconf
   dh_clean
 dpkg-source -b .
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../valgrind_3.15.0.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 25

#958989#10
Date:
2020-04-27 18:42:44 UTC
From:
To:
Nikolaus Rath writes ("Bug#958989: dgit-user(7): building instructions don't work"):

Hi.  This is a thing you should be able to do.
...

How sad.

There are two things wrong here.

One is that sbuild seems to be ignoring the --dpkg-source-opts, or
maybe the rune was always wrong.  I think I will have to investigate.
I *thought* we had a test for this rune but maybe not one involving
sbuild.

... yes, we do.  tests/tests/sbuild-gitish.  Obviously the test isn't
working right.

The other oddity, is that this complaint about
valgrind_3.15.0.orig.tar.* implies that there isn't a
valgrind_3.15.0.orig.tar.bz2 but when I tried dgit clone valgrind it
left me one in my "..".  I conjecture that you have a non-default
build-products dir for dgit but your sbuild doesn't have that
configured ?  This ought not to matter with the --format=1.0 -sn rune.
I don't think this is in your way but it would be nice to confirm that
there isn't another bug here.


Regards,
Ian.

#958989#15
Date:
2020-04-27 18:45:31 UTC
From:
To:
Hi Ian,

Thanks for the quick response!

Yes, I have one too:

$ ls -d ../valgrind*
../valgrind/
../valgrind_3.15.0.orig.tar.bz2
../valgrind_3.15.0-1.debian.tar.xz
../valgrind_3.15.0-1.dsc
../valgrind_3.15.0-1.tar.gz
../valgrind_3.15.0-1_amd64.build@
../valgrind_3.15.0-1_amd64-2020-04-27T18:01:38Z.build
../valgrind_3.15.0-1_amd64-2020-04-27T18:05:35Z.build
../valgrind_3.15.0-2~1.gbpd4e99a.dsc
../valgrind_3.15.0-2~1.gbpd4e99a.tar.gz
../valgrind_3.15.0-2~1.gbpd4e99a_amd64.build@
../valgrind_3.15.0-2~1.gbpd4e99a_amd64-2020-04-27T18:06:33Z.build

I don't remember setting something like this, but I may have
forgotten. Where would I look for that?

I do not have a ~/.dgit*, nor is dgit mentioned in ~/.gitconfig.

Best,
-Nikolaus

#958989#20
Date:
2020-04-28 11:42:39 UTC
From:
To:
Nikolaus Rath writes ("Re: Bug#958989: dgit-user(7): building instructions don't work"):

I have been trying to repro this.  My main dev environment is running
stretch.  I ran

   dgit clone valgrind
   cd valgrind/
   sbuild -c build -A --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

and it got as far as compiling a lot of C files.  The build failed
like this:

   In file included from libmpiwrap.c:116:
   libmpiwrap.c: In function 'showTy':
   /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: expected expression before '_Static_assert'
     322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0.  Use " #newfunc " instead.")
	 |                                                         ^~~~~~~~~~~~~~
   /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:1112:24: note: in expansion of macro 'THIS_SYMBOL_WAS_REMOVED_IN_MPI30'
   ...

I conjecture that this was the thing you were trying to fix...

I will try a repro from my sid chroot, but of course running sbuild
*inside* the chroot is going to be a bit complicated...

OK.  Good.

Ian.

#958989#25
Date:
2020-04-28 11:46:43 UTC
From:
To:
Hi Ian,

FWIW, I have tried this on an AMD64 buster system with an AMD64 chroot. When compiling without schroot it works fine (I was trying to add support for the copy file range syscall, not fix a compile error)

(Sorry for the bad quote, replying from my phone since I won't be at a proper computer until tonight.)

Best,
Nikolaus

#958989#30
Date:
2020-04-28 11:54:20 UTC
From:
To:
Nikolaus Rath writes ("Bug#958989: dgit-user(7): building instructions don't work"):

OK.  That's strange.  How recently was your chroot updated ?

For you, does it fall over from the dpkg-source error before or after
the actual build ?  Can you send me the whole build log please ?

No problem, thanks.

Ian.

#958989#35
Date:
2020-04-28 11:55:55 UTC
From:
To:
Nikolaus Rath writes ("Re: Bug#958989: dgit-user(7): building instructions don't work"):

The FTBFS is real and already reported, it seems.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946329

I will try with those patches...

Ian.

#958989#40
Date:
2020-04-28 17:46:19 UTC
From:
To:
I was good until here.

I replaced this with "apt build-dep valgrind"

This failed, because there is no such directory. I think you're assuming
that my current directory is bind-mounted into the chroot. I'm not sure
if this is supposed to happen, but previous sbuild incarnations from within
the same directory have worked with this configuration.

My schroot configuration is:

[buster-amd64]
description=Debian buster/amd64 autobuilder
type=btrfs-snapshot
btrfs-source-subvolume=/srv/chroot/buster-amd64
btrfs-snapshot-directory=/srv/chroot
groups=root,sbuild
root-groups=root,sbuild
source-groups=root,sbuild
profile=sbuild
command-prefix=eatmydata

/etc/schroot/sbuild/fstab says:

# fstab: static file system information for chroots.
# Note that the mount point will be prefixed by the chroot path
# (CHROOT_PATH)
#
# <file system>	<mount point>	<type>	<options>	<dump>	<pass>
/proc		/proc		none    rw,bind        0       0
/sys		/sys		none    rw,bind        0       0
/dev            /dev            none    rw,bind         0       0
/dev/pts	/dev/pts	none	rw,bind		0	0
tmpfs		/dev/shm	tmpfs	defaults	0	0
#/home           /home_host      none    rw,rbind     0   0
# Mount a large scratch space for the build, so we don't use up
# space on an LVM snapshot of the chroot itself.
#/var/lib/sbuild/build	/build	none	rw,bind	0	0
/var/cache/apt/archives /var/cache/apt/archives none rw,bind 0 0


For now, I have manually bind-mounted the directory into the chroot.

This worked.


Log is attached (generated with `script`).

Best,
-Nikolaus

#958989#45
Date:
2020-04-28 16:19:39 UTC
From:
To:
Uhm. I feel pretty dumb, but what is the "958989" supposed to do?

$ sbuild -c buster-amd64 -b -n 958989
No distribution defined

Without that, I get:

$ git reset --hard
$ git clean -xdf
$ sbuild -c buster-amd64 -b -n
dh clean --with=autoreconf
   dh_clean
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building valgrind using existing ./valgrind_3.15.0.orig.tar.bz2
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: local changes detected, the modified files are:
 valgrind/configure.ac
 valgrind/coregrind/m_syswrap/priv_syswrap-linux.h
 valgrind/coregrind/m_syswrap/syswrap-amd64-linux.c
 valgrind/coregrind/m_syswrap/syswrap-arm64-linux.c
 valgrind/coregrind/m_syswrap/syswrap-linux.c
 valgrind/coregrind/m_syswrap/syswrap-ppc32-linux.c
 valgrind/coregrind/m_syswrap/syswrap-ppc64-linux.c
 valgrind/coregrind/m_syswrap/syswrap-s390x-linux.c
 valgrind/coregrind/m_syswrap/syswrap-x86-linux.c
 valgrind/memcheck/tests/linux/Makefile.am
 valgrind/memcheck/tests/linux/sys-copy_file_range.c
 valgrind/memcheck/tests/linux/sys-copy_file_range.stderr.exp
 valgrind/memcheck/tests/linux/sys-copy_file_range.vgtest
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/valgrind_3.15.0-2~1.gbpdcc9f6.diff.VJgNrN
E: Failed to package source directory /home/nikratio/tmp/valgrind

$ schroot -rc 958989 -u root
E: 958989: Chroot not found


Best,
-Nikolaus

#958989#50
Date:
2020-04-28 12:10:02 UTC
From:
To:
I updated the chroot about an hour before I filed the bug.

The error occurrs before compilation started.

Will send you a full log tonight.

Best,
Nikolaus

#958989#55
Date:
2020-04-28 17:33:35 UTC
From:
To:
Nikolaus Rath writes ("Re: Bug#958989: dgit-user(7): building instructions don't work"):

This is supposed to create a chroot session called "958989" made out
of a snapshot of your "buster-amd64".  But I wrote "sbuild" rather
than "schroot" !

Err, yes.

Sorry!

Ina

#958989#60
Date:
2020-04-28 12:20:38 UTC
From:
To:
Nikolaus Rath writes ("Re: Bug#958989: dgit-user(7): building instructions don't work"):

This is getting quite odd.

In that case it is working for me.

Thanks.

Could I get you to do this:

 sbuild -c buster-amd64 -b -n 958989

 schroot -rc 958989 -u root
   apt install sbuild autopkgtest dgit
   apt install build-dep valgrind
   cd ..../valgrind
   mkdir ../aside
   mv ../valgrind_* ../aside
   sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=null -A \
     --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

and send me the log ?

Thanks,
Ian.

#958989#65
Date:
2020-04-28 12:10:17 UTC
From:
To:
Ian Jackson writes ("Re: Bug#958989: dgit-user(7): building instructions don't work"):

They don't seem to have fixed the FTBFS for me.

I ran this:

 sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=null -A \
 --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

inside my sid chroot.

#958989#70
Date:
2020-04-29 14:01:57 UTC
From:
To:
Nikolaus Rath writes ("Bug#958989: dgit-user(7): building instructions don't work"):

This is all quite mysterious to me and I'm not sure where to go next.

There are *two* things I don't understand:
(1) Why your sbuild with schroot rune fails but mine succeeds
(2) Why I get an FTBFS on the original valgrind from sid, when
   apparently you don't

Since you say the failure (1) occurs before the build starts, I think
these two things are unrelated, and it will hopefully be possible to
debug (1) without having to understand (2).  I'm hoping that (2) will
be fixed by an upload of valgrind to sid which fixes #946329 ...


So on with (1).  To recap, AIUI we now have a situation where in your
setup

(a)   sbuild -c buster-amd64 -A \
          --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

gives the error from dpkg-source, but

(b)   schroot into the buster-amd64 chroot
      sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=null -A \
          --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

works.

I think (a) will run dpkg-source to build the source pacakge outside
the chroot.  (b) obviously runs it inside it.  Maybe you have some
environment variable or a funny version of dpkg-dev or something ?

Can you send me the output of
   printenv | sort
and the version of dpkg-dev you have outside the chroot ?


Also I would like to try a repro that is smaller than valgrind :-).
I wonder if you would be willing to try using the test case from the
dgit test suite:

  # apt --no-install-recommends install dgit dgit-infrastructure
    devscripts debhelper fakeroot build-essential chiark-utils-bin \
    bc faketime liburi-perl sbuild man-db
  # ^ # from dgit/debian/tests/control, stanza for sbuild-gitish

  $ dgit clone dgit
  $ cd dgit
  $ DGIT_SCHROOT_CHROOT=buster-amd64 tests/tests/sbuild-gitish 2>&1 |tee log


Thanks for your help debugging this...

Ian.

#958989#75
Date:
2020-04-30 17:15:49 UTC
From:
To:
Here's another datapoint:

$ dgit clone valgrind
$ cd vagrind; sbuild -c buster-amd64

works fine (i.e., if I don't apply any changes).

Yes - with the caveat that in the second case I manually bind-mounted
the directory that contained the .orig.gz and the git repo.

$ printenv | sort
BROWSER=firefox
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBEMAIL=Nikolaus@rath.org
DEBFULLNAME=Nikolaus Rath
DEBSIGN_KEYID=0xD113FCAC3C4E599F
DESKTOP_SESSION=lightdm-xsession
DISPLAY=:0
EC2_CERT=/home/nikratio/lib/aws-x509-cert.pem
EC2_PRIVATE_KEY=/home/nikratio/lib/aws-x509-key.pem
EDITOR=vim
GDM_LANG=en_US.utf8
GDMSESSION=lightdm-xsession
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=xim
HISTCONTROL=ignoredups
HOME=/home/nikratio
LANG=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LESS=-S -i -R
LOGNAME=nikratio
LS_COLORS=
MATLABPATH=/home/nikratio/lib/matlab/
OLDPWD=/home/nikratio
OPENSSL_CONF=/home/nikratio/lib/ca/openssl/openssl.cnf
PAGER=less
PATH=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
PROMPT_DIRTRIM=3
PS1=\n\[\033[01;30m\][$?] \[\033[01;31m\]\u@\h${SCHROOT_CHROOT_NAME:+(${SCHROOT_CHROOT_NAME})}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$
PWD=<censored>
PYTHONSTARTUP=/home/nikratio/.pythonrc.py
QT_IM_MODULE=xim
QT_STYLE_OVERRIDE=Fusion
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=2869
SSH_AUTH_SOCK=/tmp/ssh-xbEBM4HCJ0av/agent.2590
TERMINAL=gnome-terminal
TERM=xterm-256color
TEXDOCVIEW_html=firefox %s
TEXDOCVIEW_pdf=evince %s
TEXDOCVIEW_text=less %s
TEXMFHOME=/home/nikratio/lib/texmf
USER=nikratio
_=/usr/bin/printenv
VISUAL=vim
VTE_VERSION=5402
WINDOWID=18874371
XAUTHORITY=/home/nikratio/.Xauthority
XDG_CURRENT_DESKTOP=GNOME
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/nikratio
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=lightdm-xsession
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7

$ dpkg --version
Debian 'dpkg' package management program version 1.19.7 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

That worked (log attached).


Best,
-Nikolaus

#958989#80
Date:
2020-04-30 17:31:44 UTC
From:
To:
Nikolaus Rath writes ("Bug#958989: dgit-user(7): building instructions don't work"):

Can you please send me those changes ?  Best would be if you pushed
them to git branch somewhere I can clone them.

This latter rune ought not to need the .orig ...
[etc.]

Thanks.  I don't see anything in there that looks at all relevant.

Ian.

#958989#85
Date:
2020-04-30 17:36:42 UTC
From:
To:
Here they are.


Best,
-Nikolaus

#958989#90
Date:
2020-04-30 17:41:00 UTC
From:
To:
$ git apply <dir>/valgrind_copy_file_range.patch
$ git add .
$ git commit -m "Way better than vanilla!"
[dgit/sid 7d9e235] Way better than vanilla!
 13 files changed, 140 insertions(+), 1 deletion(-)
 create mode 100644 memcheck/tests/linux/sys-copy_file_range.c
 create mode 100644 memcheck/tests/linux/sys-copy_file_range.stderr.exp
 create mode 100644 memcheck/tests/linux/sys-copy_file_range.vgtest

$ gbp dch -S --since=dgit/dgit/sid --ignore-branch --commit
libdistro-info-perl is not installed, Debian release names are not known.
libdistro-info-perl is not installed, Ubuntu release names are not known.
gbp:info: Changelog 1:3.15.0-2~1.gbp7d9e23 (snapshot #1) prepared up to 7d9e235
gbp:info: Changelog committed for version 1:3.15.0-2~1.gbp7d9e23

$ git clean -xdf
$ sbuild -c buster-amd64 -A --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'valgrind' is not <sourcepackage>-<upstreamversion> 'valgrind-3.15.0'
dpkg-source: info: building valgrind in valgrind_3.15.0-2~1.gbp7d9e23.tar.gz
dpkg-source: info: building valgrind in valgrind_3.15.0-2~1.gbp7d9e23.dsc
sbuild (Debian sbuild) 0.78.1 (09 February 2019) on vostro.rath.org

+==============================================================================+
| valgrind 1:3.15.0-2~1.gbp7d9e23 (amd64)      Thu, 30 Apr 2020 17:39:00 +0000 |
+==============================================================================+

Package: valgrind
Version: 1:3.15.0-2~1.gbp7d9e23
Source Version: 1:3.15.0-2~1.gbp7d9e23
Distribution: UNRELEASED
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64
Build Type: full


+------------------------------------------------------------------------------+
| Pre Build Commands                                                           |
+------------------------------------------------------------------------------+


/home/nikratio/in-progress/debian-packages/scripts/scan.sh
----------------------------------------------------------

+ where=/home/nikratio/in-progress/debian-packages/debs
+ origin=local
+ label=repo
+ cd /home/nikratio/in-progress/debian-packages/debs
+ apt-ftparchive sources .
+ tee /home/nikratio/in-progress/debian-packages/debs/Sources
+ gzip -9
+ apt-ftparchive packages /home/nikratio/in-progress/debian-packages/debs
+ sed s@/home/nikratio/in-progress/debian-packages/debs@@
+ tee /home/nikratio/in-progress/debian-packages/debs/Packages
+ gzip -9
+ apt-ftparchive -oAPT::FTPArchive::Release::Origin=local -oAPT::FTPArchive::Release::Label=repo -oAPT::FTPArchive::Release::Codename=/home/nikratio/in-progress/debian-packages/debs release /home/nikratio/in-progress/debian-packages/debs
+ sponge /home/nikratio/in-progress/debian-packages/debs/Release

I: Finished running '/home/nikratio/in-progress/debian-packages/scripts/scan.sh'.

Finished processing commands.
--------------------------------------------------------------------------------
I: NOTICE: Log filtering will replace 'var/run/schroot/mount/buster-amd64-965184b1-c941-43ec-893e-7fd9d5dad820' with '<<CHROOT>>'
I: NOTICE: Log filtering will replace 'build/valgrind-bDbzcM/resolver-CCBiIN' with '<<RESOLVERDIR>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Err:1 http://127.0.0.1:8000 ./ InRelease
  Could not connect to 127.0.0.1:8000 (127.0.0.1). - connect (111: Connection refused)
Hit:2 http://httpredir.debian.org/debian buster InRelease
Hit:3 http://httpredir.debian.org/debian buster-backports InRelease
Reading package lists...
W: Failed to fetch http://127.0.0.1:8000/./InRelease  Could not connect to 127.0.0.1:8000 (127.0.0.1). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  ca-certificates e2fsprogs-l10n fakeroot libcgi-fast-perl libcgi-pm-perl
  libclass-accessor-perl libencode-locale-perl libfakeroot libfcgi-perl
  libgpg-error-l10n libhtml-parser-perl libhtml-tagset-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl libio-string-perl
  liblocale-gettext-perl liblwp-mediatypes-perl libparse-debianchangelog-perl
  libssl1.1 libsub-name-perl libtimedate-perl liburi-perl openssl
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Local sources
-------------

/home/nikratio/tmp/valgrind_prstine/valgrind_3.15.0-2~1.gbp7d9e23.dsc exists in /home/nikratio/tmp/valgrind_prstine; copying to chroot
I: NOTICE: Log filtering will replace 'build/valgrind-bDbzcM/valgrind-3.15.0' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/valgrind-bDbzcM' with '<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper (>= 12), gdb, gcc-multilib, libc6-dev-i386, mpi-default-dev, pkg-config, docbook, docbook-xsl, docbook-xml, xsltproc, build-essential, fakeroot
Filtered Build-Depends: debhelper (>= 12), gdb, gcc-multilib, libc6-dev-i386, mpi-default-dev, pkg-config, docbook, docbook-xsl, docbook-xml, xsltproc, build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-main-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [957 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [435 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [508 B]
Fetched 1900 B in 0s (148 kB/s)
Reading package lists...
Err:1 http://127.0.0.1:8000 ./ InRelease
  Could not connect to 127.0.0.1:8000 (127.0.0.1). - connect (111: Connection refused)
Reading package lists...
W: Failed to fetch http://127.0.0.1:8000/./InRelease  Could not connect to 127.0.0.1:8000 (127.0.0.1). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...

+------------------------------------------------------------------------------+
| Install main build dependencies (aptitude-based resolver)                    |
+------------------------------------------------------------------------------+

Reading package lists...
Building dependency tree...
Reading state information...
aptitude is already the newest version (0.8.11-7).
The following packages were automatically installed and are no longer required:
  ca-certificates e2fsprogs-l10n fakeroot libcgi-fast-perl libcgi-pm-perl
  libclass-accessor-perl libencode-locale-perl libfakeroot libfcgi-perl
  libgpg-error-l10n libhtml-parser-perl libhtml-tagset-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl libio-string-perl
  liblocale-gettext-perl liblwp-mediatypes-perl libparse-debianchangelog-perl
  libssl1.1 libsub-name-perl libtimedate-perl liburi-perl openssl
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
aptitude -y --without-recommends -o Dpkg::Options::=--force-confold -o Aptitude::CmdLine::Ignore-Trust-Violations=false -o Aptitude::ProblemResolver::StepScore=100 -o Aptitude::ProblemResolver::SolutionCost=safety, priority, non-default-versions -o Aptitude::ProblemResolver::Hints::KeepDummy=reject sbuild-build-depends-main-dummy :UNINST -o Aptitude::ProblemResolver::Keep-All-Level=55000 -o Aptitude::ProblemResolver::Remove-Essential-Level=maximum install sbuild-build-depends-main-dummy:amd64
E: /sbuild-nonexistent/.aptitude - mkdir (2: No such file or directory)
E: Directory does not exist and could not create it: /sbuild-nonexistent/.aptitude
E: Error saving configuration file - apt_dumpcfg (2: No such file or directory)
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
The following NEW packages will be installed:
  autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdmainutils{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} docbook{a} docbook-xml{a} docbook-xsl{a} dwz{a} file{a} gcc-8-multilib{a} gcc-multilib{a} gdb{a} gettext{a} gettext-base{a} groff-base{a} ibverbs-providers{a} intltool-debian{a} lib32asan5{a} lib32atomic1{a} lib32gcc-8-dev{a} lib32gcc1{a} lib32gomp1{a} lib32itm1{a} lib32mpx2{a} lib32quadmath0{a} lib32stdc++6{a} lib32ubsan1{a} libarchive-zip-perl{a} libbabeltrace1{a} libbsd0{a} libc6-dev-i386{a} libc6-dev-x32{a} libc6-i386{a} libc6-x32{a} libcroco3{a} libdw1{a} libedit2{a} libelf1{a} libevent-2.1-6{a} libevent-core-2.1-6{a} libevent-pthreads-2.1-6{a} libexpat1{a} libfabric1{a} libfile-stripnondeterminism-perl{a} libgfortran5{a} libglib2.0-0{a} libgssapi-krb5-2{a} libhwloc-dev{a} libhwloc-plugins{a} libhwloc5{a} libibverbs-dev{a} libibverbs1{a} libicu63{a} libipt2{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libltdl-dev{a} libltdl7{a} libmagic-mgc{a} libmagic1{a} libmpdec2{a} libncurses6{a} libnl-3-200{a} libnl-3-dev{a} libnl-route-3-200{a} libnl-route-3-dev{a} libnuma-dev{a} libnuma1{a} libopenmpi-dev{a} libopenmpi3{a} libpciaccess0{a} libpipeline1{a} libpmix2{a} libpopt0{a} libpsm-infinipath1{a} libpsm2-2{a} libpython3.7{a} libpython3.7-minimal{a} libpython3.7-stdlib{a} librdmacm1{a} libreadline7{a} libsigsegv2{a} libtool{a} libuchardet0{a} libx32asan5{a} libx32atomic1{a} libx32gcc-8-dev{a} libx32gcc1{a} libx32gomp1{a} libx32itm1{a} libx32quadmath0{a} libx32stdc++6{a} libx32ubsan1{a} libxml2{a} libxslt1.1{a} m4{a} man-db{a} mime-support{a} mpi-default-dev{a} ocl-icd-libopencl1{a} openmpi-bin{a} openmpi-common{a} openssh-client{a} pkg-config{a} po-debconf{a} readline-common{a} sbuild-build-depends-main-dummy sgml-base{a} sgml-data{a} xml-core{a} xsltproc{a}
The following packages are RECOMMENDED but will NOT be installed:
  curl krb5-locales libarchive-cpio-perl libc6-dbg libcoarrays-openmpi-dev libglib2.0-data libmail-sendmail-perl lynx shared-mime-info wget xauth xdg-user-dirs
0 packages upgraded, 117 newly installed, 0 to remove and 0 not upgraded.
Need to get 940 B/55.3 MB of archives. After unpacking 237 MB will be used.
Writing extended state information...
Get: 1 copy:/<<RESOLVERDIR>>/apt_archive ./ sbuild-build-depends-main-dummy 0.invalid.0 [940 B]
Fetched 940 B in 0s (0 B/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libbsd0:amd64.
(Reading database ... 17654 files and directories currently installed.)
Preparing to unpack .../000-libbsd0_0.9.1-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.9.1-2) ...
[...]
Setting up docbook (4.5-6) ...
Processing triggers for sgml-base (1.29) ...
Setting up sbuild-build-depends-main-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...

+------------------------------------------------------------------------------+
| Check architectures                                                          |
+------------------------------------------------------------------------------+

Arch check ok (amd64 included in amd64 arm64 armhf i386 mips mipsel mips64 mips64el powerpc ppc64 ppc64el s390x x32)

+------------------------------------------------------------------------------+
| Build environment                                                            |
+------------------------------------------------------------------------------+

Kernel: Linux 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) amd64 (x86_64)
Toolchain package versions: binutils_2.31.1-16 dpkg-dev_1.19.7 g++-6_6.3.0-18+deb9u1 g++-8_8.3.0-6 gcc-6_6.3.0-18+deb9u1 gcc-8_8.3.0-6 libc6-dev_2.28-10 libstdc++-6-dev_6.3.0-18+deb9u1 libstdc++-8-dev_8.3.0-6 libstdc++6_8.3.0-6 linux-libc-dev_4.19.98-1
Package versions: adduser_3.118 apt_1.8.2 aptitude_0.8.11-7 aptitude-common_0.8.11-7 autoconf_2.69-11 automake_1:1.16.1-4 autopoint_0.19.8.1-9 autotools-dev_20180224.1 base-files_10.3+deb10u3 base-passwd_3.5.46 bash_5.0-4 binutils_2.31.1-16 binutils-common_2.31.1-16 binutils-x86-64-linux-gnu_2.31.1-16 bsdmainutils_11.1.2+b1 bsdutils_1:2.33.1-0.1 build-essential_12.6 bzip2_1.0.6-9.2~deb10u1 ca-certificates_20190110 coreutils_8.30-3 cpp_4:8.3.0-1 cpp-6_6.3.0-18+deb9u1 cpp-8_8.3.0-6 dash_0.5.10.2-5 debconf_1.5.71 debhelper_12.1.1 debian-archive-keyring_2019.1 debianutils_4.8.6.1 dh-autoreconf_19 dh-strip-nondeterminism_1.1.2-1 diffutils_1:3.7-3 docbook_4.5-6 docbook-xml_4.5-8 docbook-xsl_1.79.1+dfsg-2 dpkg_1.19.7 dpkg-dev_1.19.7 dwz_0.12-3 e2fsprogs_1.44.5-1+deb10u3 e2fsprogs-l10n_1.44.5-1+deb10u3 eatmydata_105-7 fakeroot_1.23-1 fdisk_2.33.1-0.1 file_1:5.35-4+deb10u1 findutils_4.6.0+git+20190209-2 g++_4:8.3.0-1 g++-6_6.3.0-18+deb9u1 g++-8_8.3.0-6 gcc_4:8.3.0-1 gcc-6_6.3.0-18+deb9u1 gcc-6-base_6.3.0-18+deb9u1 gcc-7-base_7.4.0-6 gcc-8_8.3.0-6 gcc-8-base_8.3.0-6 gcc-8-multilib_8.3.0-6 gcc-multilib_4:8.3.0-1 gdb_8.2.1-2+b3 gettext_0.19.8.1-9 gettext-base_0.19.8.1-9 gpgv_2.2.12-1+deb10u1 grep_3.3-1 groff-base_1.22.4-3 gzip_1.9-3 hostname_3.21 ibverbs-providers_22.1-1 init-system-helpers_1.56+nmu1 intltool-debian_0.35.0+20060710.5 lib32asan5_8.3.0-6 lib32atomic1_8.3.0-6 lib32gcc-8-dev_8.3.0-6 lib32gcc1_1:8.3.0-6 lib32gomp1_8.3.0-6 lib32itm1_8.3.0-6 lib32mpx2_8.3.0-6 lib32quadmath0_8.3.0-6 lib32stdc++6_8.3.0-6 lib32ubsan1_8.3.0-6 libacl1_2.2.53-4 libapt-pkg5.0_1.8.2 libarchive-zip-perl_1.64-1 libasan3_6.3.0-18+deb9u1 libasan5_8.3.0-6 libatomic1_8.3.0-6 libattr1_1:2.4.48-4 libaudit-common_1:2.8.4-3 libaudit1_1:2.8.4-3 libbabeltrace1_1.5.6-2+deb10u1 libbinutils_2.31.1-16 libblkid1_2.33.1-0.1 libboost-iostreams1.67.0_1.67.0-13+deb10u1 libboost-system1.67.0_1.67.0-13+deb10u1 libbsd0_0.9.1-2 libbz2-1.0_1.0.6-9.2~deb10u1 libc-bin_2.28-10 libc-dev-bin_2.28-10 libc6_2.28-10 libc6-dev_2.28-10 libc6-dev-i386_2.28-10 libc6-dev-x32_2.28-10 libc6-i386_2.28-10 libc6-x32_2.28-10 libcap-ng0_0.7.9-2 libcc1-0_8.3.0-6 libcgi-fast-perl_1:2.13-1 libcgi-pm-perl_4.40-1 libcilkrts5_7.4.0-6 libclass-accessor-perl_0.51-1 libcom-err2_1.44.5-1+deb10u3 libcroco3_0.6.12-3 libcwidget3v5_0.5.17-11 libdb5.3_5.3.28+dfsg1-0.5 libdebconfclient0_0.249 libdpkg-perl_1.19.7 libdw1_0.176-1.1 libeatmydata1_105-7 libedit2_3.1-20181209-1 libelf1_0.176-1.1 libencode-locale-perl_1.05-1 libevent-2.1-6_2.1.8-stable-4 libevent-core-2.1-6_2.1.8-stable-4 libevent-pthreads-2.1-6_2.1.8-stable-4 libexpat1_2.2.6-2+deb10u1 libext2fs2_1.44.5-1+deb10u3 libfabric1_1.6.2-3 libfakeroot_1.23-1 libfcgi-perl_0.78-2+b3 libfdisk1_2.33.1-0.1 libffi6_3.2.1-9 libfile-stripnondeterminism-perl_1.1.2-1 libgcc-6-dev_6.3.0-18+deb9u1 libgcc-8-dev_8.3.0-6 libgcc1_1:8.3.0-6 libgcrypt20_1.8.4-5 libgdbm-compat4_1.18.1-4 libgdbm3_1.8.3-14 libgdbm6_1.18.1-4 libgfortran5_8.3.0-6 libglib2.0-0_2.58.3-2+deb10u2 libgmp10_2:6.1.2+dfsg-4 libgnutls30_3.6.7-4+deb10u2 libgomp1_8.3.0-6 libgpg-error-l10n_1.35-1 libgpg-error0_1.35-1 libgpm2_1.20.7-5 libgssapi-krb5-2_1.17-3 libhogweed4_3.4.1-1 libhtml-parser-perl_3.72-3+b3 libhtml-tagset-perl_3.20-3 libhttp-date-perl_6.02-1 libhttp-message-perl_6.18-1 libhwloc-dev_1.11.12-3 libhwloc-plugins_1.11.12-3 libhwloc5_1.11.12-3 libibverbs-dev_22.1-1 libibverbs1_22.1-1 libicu63_63.1-6 libidn2-0_2.0.5-1+deb10u1 libio-html-perl_1.001-1 libio-string-perl_1.08-3 libipt2_2.0-2 libisl15_0.18-1 libisl19_0.20-2 libitm1_8.3.0-6 libk5crypto3_1.17-3 libkeyutils1_1.6-6 libkrb5-3_1.17-3 libkrb5support0_1.17-3 liblocale-gettext-perl_1.07-3+b4 liblsan0_8.3.0-6 libltdl-dev_2.4.6-9 libltdl7_2.4.6-9 liblwp-mediatypes-perl_6.02-1 liblz4-1_1.8.3-1 liblzma5_5.2.4-1 libmagic-mgc_1:5.35-4+deb10u1 libmagic1_1:5.35-4+deb10u1 libmount1_2.33.1-0.1 libmpc3_1.1.0-1 libmpdec2_2.4.2-2 libmpfr4_3.1.5-1 libmpfr6_4.0.2-1 libmpx2_8.3.0-6 libncurses6_6.1+20181013-2+deb10u2 libncursesw6_6.1+20181013-2+deb10u2 libnettle6_3.4.1-1 libnl-3-200_3.4.0-1 libnl-3-dev_3.4.0-1 libnl-route-3-200_3.4.0-1 libnl-route-3-dev_3.4.0-1 libnuma-dev_2.0.12-1 libnuma1_2.0.12-1 libopenmpi-dev_3.1.3-11 libopenmpi3_3.1.3-11 libp11-kit0_0.23.15-2 libpam-modules_1.3.1-5 libpam-modules-bin_1.3.1-5 libpam-runtime_1.3.1-5 libpam0g_1.3.1-5 libparse-debianchangelog-perl_1.2.0-13 libpciaccess0_0.14-1 libpcre3_2:8.39-12 libperl5.24_5.24.1-3+deb9u5 libperl5.28_5.28.1-6 libpipeline1_1.5.1-2 libpmix2_3.1.2-3 libpopt0_1.16-12 libpsm-infinipath1_3.3+20.604758e7-6 libpsm2-2_11.2.78-1 libpython3.7_3.7.3-2+deb10u1 libpython3.7-minimal_3.7.3-2+deb10u1 libpython3.7-stdlib_3.7.3-2+deb10u1 libquadmath0_8.3.0-6 librdmacm1_22.1-1 libreadline7_7.0-5 libseccomp2_2.3.3-4 libselinux1_2.8-1+b1 libsemanage-common_2.8-2 libsemanage1_2.8-2 libsepol1_2.8-1 libsigc++-2.0-0v5_2.10.1-2 libsigsegv2_2.12-2 libsmartcols1_2.33.1-0.1 libsqlite3-0_3.27.2-3 libss2_1.44.5-1+deb10u3 libssl1.1_1.1.1d-0+deb10u2 libstdc++-6-dev_6.3.0-18+deb9u1 libstdc++-8-dev_8.3.0-6 libstdc++6_8.3.0-6 libsub-name-perl_0.21-1+b3 libsystemd0_241-7~deb10u3 libtasn1-6_4.13-3 libtimedate-perl_2.3000-2+deb10u1 libtinfo6_6.1+20181013-2+deb10u2 libtool_2.4.6-9 libtsan0_8.3.0-6 libubsan0_7.4.0-6 libubsan1_8.3.0-6 libuchardet0_0.0.6-3 libudev1_241-7~deb10u3 libunistring2_0.9.10-1 liburi-perl_1.76-1 libuuid1_2.33.1-0.1 libx32asan5_8.3.0-6 libx32atomic1_8.3.0-6 libx32gcc-8-dev_8.3.0-6 libx32gcc1_1:8.3.0-6 libx32gomp1_8.3.0-6 libx32itm1_8.3.0-6 libx32quadmath0_8.3.0-6 libx32stdc++6_8.3.0-6 libx32ubsan1_8.3.0-6 libxapian30_1.4.11-1 libxml2_2.9.4+dfsg1-7+b3 libxslt1.1_1.1.32-2.2~deb10u1 libzstd1_1.3.8+dfsg-3 linux-libc-dev_4.19.98-1 login_1:4.5-1.1 m4_1.4.18-2 make_4.2.1-1.2 man-db_2.8.5-2 mawk_1.3.3-17+b3 mime-support_3.62 mount_2.33.1-0.1 mpi-default-dev_1.13 ncurses-base_6.1+20181013-2+deb10u2 ncurses-bin_6.1+20181013-2+deb10u2 ocl-icd-libopencl1_2.2.12-2 openmpi-bin_3.1.3-11 openmpi-common_3.1.3-11 openssh-client_1:7.9p1-10+deb10u2 openssl_1.1.1d-0+deb10u2 passwd_1:4.5-1.1 patch_2.7.6-3+deb10u1 perl_5.28.1-6 perl-base_5.28.1-6 perl-modules-5.24_5.24.1-3+deb9u5 perl-modules-5.28_5.28.1-6 pkg-config_0.29-6 po-debconf_1.0.21 readline-common_7.0-5 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12 sgml-base_1.29 sgml-data_2.0.11 sysvinit-utils_2.93-8 tar_1.30+dfsg-6 tzdata_2019c-0+deb10u1 util-linux_2.33.1-0.1 vim_2:8.1.0875-5 vim-common_2:8.1.0875-5 vim-runtime_2:8.1.0875-5 xml-core_0.18+nmu1 xsltproc_1.1.32-2.2~deb10u1 xxd_2:8.1.0875-5 xz-utils_5.2.4-1 zlib1g_1:1.2.11.dfsg-1

+------------------------------------------------------------------------------+
| Build                                                                        |
+------------------------------------------------------------------------------+


Unpack source
-------------

Format: 1.0
Source: valgrind
Binary: valgrind, valgrind-dbg, valgrind-mpi
Architecture: amd64 arm64 armhf i386 mips mipsel mips64 mips64el powerpc ppc64 ppc64el s390x x32
Version: 1:3.15.0-2~1.gbp7d9e23
Maintainer: Alessandro Ghedini <ghedo@debian.org>
Homepage: http://www.valgrind.org/
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/debian/valgrind
Vcs-Git: https://salsa.debian.org/debian/valgrind.git
Testsuite: autopkgtest
Build-Depends: debhelper (>= 12), gdb, gcc-multilib [amd64], libc6-dev-i386 [amd64], mpi-default-dev, pkg-config, docbook, docbook-xsl, docbook-xml, xsltproc
Package-List:
 valgrind deb devel optional arch=amd64,arm64,armhf,i386,mips,mipsel,mips64,mips64el,powerpc,ppc64,ppc64el,s390x,x32
 valgrind-dbg deb debug optional arch=amd64,arm64,armhf,i386,mips,mipsel,mips64,mips64el,powerpc,ppc64,ppc64el,s390x,x32
 valgrind-mpi deb devel optional arch=amd64,arm64,armhf,i386,mips,mipsel,mips64,mips64el,powerpc,ppc64,ppc64el,s390x,x32
Checksums-Sha1:
 c1e0aa5a5fbf56cb9b4f0d4411dc6cd647c79bf9 58933719 valgrind_3.15.0-2~1.gbp7d9e23.tar.gz
Checksums-Sha256:
 75de9e918decc667904792e09bc6da685de04719155792f3bd2f035461528291 58933719 valgrind_3.15.0-2~1.gbp7d9e23.tar.gz
Files:
 c8370a0ad1971a1799f2ae306d9ea1dc 58933719 valgrind_3.15.0-2~1.gbp7d9e23.tar.gz

dpkg-source: warning: extracting unsigned source package (valgrind_3.15.0-2~1.gbp7d9e23.dsc)
dpkg-source: info: extracting valgrind in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking valgrind_3.15.0-2~1.gbp7d9e23.tar.gz

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=en_US.UTF-8
LC_ALL=C.UTF-8
LD_LIBRARY_PATH=/usr/lib/libeatmydata
LD_PRELOAD=libeatmydata.so
LOGNAME=nikratio
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/<<PKGBUILDDIR>>
SCHROOT_ALIAS_NAME=buster-amd64
SCHROOT_CHROOT_NAME=buster-amd64
SCHROOT_COMMAND=env
SCHROOT_GID=1000
SCHROOT_GROUP=nikratio
SCHROOT_SESSION_ID=buster-amd64-965184b1-c941-43ec-893e-7fd9d5dad820
SCHROOT_UID=1000
SCHROOT_USER=nikratio
SHELL=/bin/sh
USER=nikratio

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -rfakeroot
dpkg-buildpackage: info: source package valgrind
dpkg-buildpackage: info: source version 1:3.15.0-2~1.gbp7d9e23
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Nikolaus Rath <Nikolaus@rath.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with=autoreconf
   dh_clean
 dpkg-source -b .
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../valgrind_3.15.0.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 25
--------------------------------------------------------------------------------
Build finished at 2020-04-30T17:39:20Z

Finished
--------


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build Type: full
Build-Space: 206024
Build-Time: 1
Distribution: UNRELEASED
Fail-Stage: build
Host Architecture: amd64
Install-Time: 14
Job: /home/nikratio/tmp/valgrind_prstine/valgrind_3.15.0-2~1.gbp7d9e23.dsc
Machine Architecture: amd64
Package: valgrind
Package-Time: 20
Source-Version: 1:3.15.0-2~1.gbp7d9e23
Space: 206024
Status: attempted
Version: 1:3.15.0-2~1.gbp7d9e23
--------------------------------------------------------------------------------
Finished at 2020-04-30T17:39:20Z
Build needed 00:00:20, 206024k disk space
E: Build failure (dpkg-buildpackage died)


Best,
-Nikolaus

#958989#95
Date:
2022-12-26 15:51:20 UTC
From:
To:
Hi.  I was looking at this again, perhaps with a clearer head than
before.

You wrote:

I don't think we should be trying to rebuild the source package at
this point.  Empirically, when invoked in a directory, sbuild runs
dpkg-source directly to build the source package, even before it
prints its banner line.  The source package ought not then to be
*re*built via dpkg-buildpackage.

The rune in dgit-user(7) is intended to cause the source package built
by sbuild's invocation of dpkg-source to be built as 1.0, to bypass
all of the things that can go wrong with `3.0 (quilt)`.  But the
example rune doesn't also have sbuild pass those options through
dpkg-buildpackage to the 2nd invocation of dpkg-source, becauwe it's
not expecting there to *be* a 2nd invocation.

In my test suite, where I test the rune out of the manpage, I see this
in the corresponding part of the sbuild logfile:

| dpkg-buildpackage
| -----------------
|
| Command: dpkg-buildpackage -us -uc -b -rfakeroot
| dpkg-buildpackage: info: source package example
| dpkg-buildpackage: info: source version 1.1-1
| dpkg-buildpackage: info: source distribution unstable
| dpkg-buildpackage: info: source changed by Ian Jackson <ijackson@chiark.greenend.org.uk>
|  dpkg-source --before-build .
| dpkg-buildpackage: info: host architecture amd64
|  fakeroot debian/rules clean
| EXAMPLE RULES TARGET clean
| ./clean-target-hook
| + test build-27ad867f-e55f-47bf-a551-48e756059a46
| dh_clean
| dh_clean: warning: Compatibility levels before 10 are deprecated (level 8 in use)
|  debian/rules build

Note the ddifference in dpkg-buildpacakge invocations:
| Command: dpkg-buildpackage -us -uc -b -rfakeroot

I don't seem to be able to find in this bug a complete sbuild logfile
from a repro of the original report, but:

RTFMing sbuild suggests that the "--source" option may be implicated -
especially, via the BUILD_SOURCE sbuild config variable.

Do you have this setting in your personal configuration ?

Thanks,
Ian.