On Apr 29 2020, Ian Jackson <ijack...@chiark.greenend.org.uk> wrote:
> Nikolaus Rath writes ("Bug#958989: dgit-user(7): building instructions don't 
> work"):
>> On Apr 28 2020, Ian Jackson <ijack...@chiark.greenend.org.uk> wrote:
>> >    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 ?
>> 
>> This worked.
>> 
>> 
>> Log is attached (generated with `script`).
>
> Thanks.
>
> This is all quite mysterious to me and I'm not sure where to go next.

Here's another datapoint:

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

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

> 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.

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


> 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 ?

$ printenv | sort
BROWSER=firefox
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBEMAIL=nikol...@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.

> 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

That worked (log attached).


Best,
-Nikolaus


-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«
++ set -o pipefail
++ . tests/lib-core
++ . tests/lib-restricts
++ trap '
        rc=$?
        set +e
        [ "x$DGIT_TEST_KEEP_MUSTCLEAN" != x ] || \
        [ "x$DGIT_TEST_TMP" = x ] || rm -rf $DGIT_TEST_TMP/must-clean
        set -e
        test $rc = 0 || t-report-failure
' EXIT
++ t-filter-out-git-hyphen-dir
++ local pathent
+++ type -p git-rev-parse
+++ :
++ pathent=
++ case "$pathent" in
++ return
++ t-set-intree
++ '[' x = x ']'
++ return
++ : -D
++ export DGIT_TEST_DEBUG
++ : x
++ export DGIT_TEST_DEBPUSH_DEBUG
++ :
++ export 'GIT_COMMITTER_DATE=1530000000 +0100'
++ GIT_COMMITTER_DATE='1530000000 +0100'
++ export 'GIT_AUTHOR_DATE=1530000000 +0100'
++ GIT_AUTHOR_DATE='1530000000 +0100'
++ export LC_CTYPE=C.UTF-8
++ LC_CTYPE=C.UTF-8
++ unset CDPATH
+++ pwd
++ root=/home/nikratio/tmp/dgit
++ troot=/home/nikratio/tmp/dgit/tests
++ testname=sbuild-gitish
++ export DGIT_TEST_TROOT=/home/nikratio/tmp/dgit/tests
++ DGIT_TEST_TROOT=/home/nikratio/tmp/dgit/tests
++ bpd=..
++ tmp=
++ '[' x = x ']'
++ export DGIT_TEST_BYHAND=1
++ DGIT_TEST_BYHAND=1
++ mkdir -p tests/tmp
++ tmpbase=/home/nikratio/tmp/dgit/tests/tmp
++ tmp=tests/tmp/sbuild-gitish
++ rm -rf tests/tmp/sbuild-gitish
++ mkdir tests/tmp/sbuild-gitish
++ cd tests/tmp/sbuild-gitish
+++ pwd
++ tmp=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ t-set-using-tmp
++ export HOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ HOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ export DGIT_TEST_DUMMY_DIR=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ DGIT_TEST_DUMMY_DIR=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ export DGIT_TEST_TMP=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ DGIT_TEST_TMP=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ export GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/nonexistent
++ GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/nonexistent
++ export 'DEBFULLNAME=dgit test git user'
++ DEBFULLNAME='dgit test git user'
++ git config --global user.email dgit-t...@debian.example.net
++ git config --global user.name 'dgit test git user'
++ git config --global protocol.ext.allow always
++ test -f /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/.save-env
++ env -0
++ ln -sf /home/nikratio/tmp/dgit/tests/ssh ssh
++ export DEBCHANGE_VENDOR=dpkg
++ DEBCHANGE_VENDOR=dpkg
++ unset VISUAL
++ unset GIT_EDITOR
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/must-clean
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/incoming
++ cat
++ schroot=buster-amd64
++ : aq
++ : archive/test-dummy
++ : sid:unstable
++ t-git-config dgit.default.old-dsc-distro test-dummy
++ git config --global dgit.default.old-dsc-distro test-dummy
++ for import in ${autoimport-gnupg}
++ case "$0" in
++ t-setup-import gnupg
++ local setupname=gnupg
++ local setupsrc
++ local lock
++ '[' x/home/nikratio/tmp/dgit/tests/tmp = x ']'
++ setupsrc=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ lock=/home/nikratio/tmp/dgit/tests/tmp/gnupg.lock
++ local simport=/home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg
++ '[' -e /home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg ']'
++ with-lock-ex -w /home/nikratio/tmp/dgit/tests/tmp/gnupg.lock xargs -0 -a 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/.save-env bash -xec '
                        cd "$1"; shift
                        setupname="$1"; shift
                        simport="$1"; shift
                        if [ -e "$simport" ]; then exit 0; fi
                        env - "$@" \
                        "tests/setup/$setupname"
                ' x /home/nikratio/tmp/dgit gnupg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg
+ cd /home/nikratio/tmp/dgit
+ shift
+ setupname=gnupg
+ shift
+ simport=/home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg
+ shift
+ '[' -e /home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg ']'
+ env - SHELL=/bin/bash WINDOWID=20971523 COLORTERM=truecolor 'LESS=-S -i -R' 
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 
HISTCONTROL=ignoredups GTK_IM_MODULE=xim DGIT_TEST_DEBPUSH_DEBUG=x 
TEXMFHOME=/home/nikratio/lib/texmf 'GIT_COMMITTER_DATE=1530000000 +0100' 
SSH_AUTH_SOCK=/tmp/ssh-xbEBM4HCJ0av/agent.2590 'DEBFULLNAME=dgit test git user' 
GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/nonexistent 
DESKTOP_SESSION=lightdm-xsession SSH_AGENT_PID=2869 
MATLABPATH=/home/nikratio/lib/matlab/ EDITOR=vim XDG_SEAT=seat0 
PWD=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish 
XDG_SESSION_DESKTOP=lightdm-xsession LOGNAME=nikratio XDG_SESSION_TYPE=x11 
DGIT_TEST_DUMMY_DIR=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish 
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 
XAUTHORITY=/home/nikratio/.Xauthority DEBSIGN_KEYID=0xD113FCAC3C4E599F 
'GIT_AUTHOR_DATE=1530000000 +0100' 
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/nikratio TERMINAL=gnome-terminal 
QT_STYLE_OVERRIDE=Fusion GDM_LANG=en_US.utf8 
HOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish LANG=en_US.UTF-8 
LS_COLORS= OPENSSL_CONF=/home/nikratio/lib/ca/openssl/openssl.cnf 
XDG_CURRENT_DESKTOP=GNOME 'TEXDOCVIEW_text=less %s' 
PYTHONSTARTUP=/home/nikratio/.pythonrc.py VTE_VERSION=5402 
DEBEMAIL=nikol...@rath.org XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 
DGIT_SCHROOT_CHROOT=buster-amd64 DGIT_TEST_TROOT=/home/nikratio/tmp/dgit/tests 
'TEXDOCVIEW_pdf=evince %s' 'LESSCLOSE=/usr/bin/lesspipe %s %s' 
DGIT_TEST_BYHAND=1 XDG_SESSION_CLASS=user TERM=xterm-256color 'LESSOPEN=| 
/usr/bin/lesspipe %s' USER=nikratio 
DGIT_TEST_TMP=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish VISUAL=vim 
DISPLAY=:0 SHLVL=2 PAGER=less PROMPT_DIRTRIM=3 QT_IM_MODULE=xim XDG_VTNR=7 
XDG_SESSION_ID=2 'TEXDOCVIEW_html=firefox %s' 
EC2_PRIVATE_KEY=/home/nikratio/lib/aws-x509-key.pem LC_CTYPE=C.UTF-8 
XDG_RUNTIME_DIR=/run/user/1000 BROWSER=firefox 
PATH=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
 GDMSESSION=lightdm-xsession 
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DGIT_TEST_DEBUG=-D 
EC2_CERT=/home/nikratio/lib/aws-x509-cert.pem OLDPWD=/home/nikratio/tmp/dgit 
_=/usr/bin/env tests/setup/gnupg
++ set -o pipefail
++ . tests/lib-core
++ . tests/lib-restricts
++ trap '
        rc=$?
        set +e
        [ "x$DGIT_TEST_KEEP_MUSTCLEAN" != x ] || \
        [ "x$DGIT_TEST_TMP" = x ] || rm -rf $DGIT_TEST_TMP/must-clean
        set -e
        test $rc = 0 || t-report-failure
' EXIT
++ t-filter-out-git-hyphen-dir
++ local pathent
+++ type -p git-rev-parse
+++ :
++ pathent=
++ case "$pathent" in
++ return
++ t-set-intree
++ '[' x = x ']'
++ return
++ : -D
++ export DGIT_TEST_DEBUG
++ : x
++ export DGIT_TEST_DEBPUSH_DEBUG
++ :
++ export 'GIT_COMMITTER_DATE=1530000000 +0100'
++ GIT_COMMITTER_DATE='1530000000 +0100'
++ export 'GIT_AUTHOR_DATE=1530000000 +0100'
++ GIT_AUTHOR_DATE='1530000000 +0100'
++ export LC_CTYPE=C.UTF-8
++ LC_CTYPE=C.UTF-8
++ unset CDPATH
+++ pwd
++ root=/home/nikratio/tmp/dgit
++ troot=/home/nikratio/tmp/dgit/tests
++ testname=gnupg
++ export DGIT_TEST_TROOT=/home/nikratio/tmp/dgit/tests
++ DGIT_TEST_TROOT=/home/nikratio/tmp/dgit/tests
++ bpd=..
++ tmp=
++ '[' x = x ']'
++ export DGIT_TEST_BYHAND=1
++ DGIT_TEST_BYHAND=1
++ mkdir -p tests/tmp
++ tmpbase=/home/nikratio/tmp/dgit/tests/tmp
++ tmp=tests/tmp/gnupg
++ rm -rf tests/tmp/gnupg
++ mkdir tests/tmp/gnupg
++ cd tests/tmp/gnupg
+++ pwd
++ tmp=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ t-set-using-tmp
++ export HOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ HOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ export DGIT_TEST_DUMMY_DIR=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ DGIT_TEST_DUMMY_DIR=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ export DGIT_TEST_TMP=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ DGIT_TEST_TMP=/home/nikratio/tmp/dgit/tests/tmp/gnupg
++ export GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg/nonexistent
++ GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg/nonexistent
++ export 'DEBFULLNAME=dgit test git user'
++ DEBFULLNAME='dgit test git user'
++ git config --global user.email dgit-t...@debian.example.net
++ git config --global user.name 'dgit test git user'
++ git config --global protocol.ext.allow always
++ test -f /home/nikratio/tmp/dgit/tests/tmp/gnupg/.save-env
++ env -0
++ ln -sf /home/nikratio/tmp/dgit/tests/ssh ssh
++ export DEBCHANGE_VENDOR=dpkg
++ DEBCHANGE_VENDOR=dpkg
++ unset VISUAL
++ unset GIT_EDITOR
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/gnupg/must-clean
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/gnupg/incoming
++ cat
++ schroot=buster-amd64
++ : aq
++ : archive/test-dummy
++ : sid:unstable
++ t-git-config dgit.default.old-dsc-distro test-dummy
++ git config --global dgit.default.old-dsc-distro test-dummy
++ for import in ${autoimport-gnupg}
++ case "$0" in
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg
+ cp /home/nikratio/tmp/dgit/tests/gnupg/dd.gpg 
/home/nikratio/tmp/dgit/tests/gnupg/dm.gpg 
/home/nikratio/tmp/dgit/tests/gnupg/dm.txt 
/home/nikratio/tmp/dgit/tests/gnupg/pubring.gpg 
/home/nikratio/tmp/dgit/tests/gnupg/random_seed 
/home/nikratio/tmp/dgit/tests/gnupg/secring.gpg 
/home/nikratio/tmp/dgit/tests/gnupg/trustdb.gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg
+ chmod go-rw /home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dd.gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dm.gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dm.txt 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/pubring.gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/random_seed 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/secring.gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/trustdb.gpg
+ export 
DGIT_TEST_GNUPG_GLOBAL_LOCK=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dgit-test-global-lock
+ 
DGIT_TEST_GNUPG_GLOBAL_LOCK=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dgit-test-global-lock
+ export 
DGIT_TEST_GNUPG_LOG=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg-workarounds.log
+ 
DGIT_TEST_GNUPG_LOG=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg-workarounds.log
+ setup='
        export GNUPGHOME=$tmp/gnupg
        export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG

        cat >$tmp/gnupg/gpg-agent.conf <<END
        log-file $tmp/gnupg/AGENT.log
END
        #debug-all

        : ${DGIT_TEST_REAL_GPG_AGENT:=$(type -p gpg-agent)}
        export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
        export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
        t-tstunt gpg
'
+ eval '
        export GNUPGHOME=$tmp/gnupg
        export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG

        cat >$tmp/gnupg/gpg-agent.conf <<END
        log-file $tmp/gnupg/AGENT.log
END
        #debug-all

        : ${DGIT_TEST_REAL_GPG_AGENT:=$(type -p gpg-agent)}
        export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
        export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
        t-tstunt gpg
'
++ export GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg
++ GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg
++ export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG
++ cat
+++ type -p gpg-agent
++ : /usr/bin/gpg-agent
+++ type -p gpg-agent
++ export DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
++ DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
++ export DGIT_STUNT_AGENT=/home/nikratio/tmp/dgit/tests/tstunt/gpg-agent
++ DGIT_STUNT_AGENT=/home/nikratio/tmp/dgit/tests/tstunt/gpg-agent
++ t-tstunt gpg
++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
++ t-stunt-envvar PATH /home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
++ local var=PATH
++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
++ eval '
                case "$PATH" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PATH="$tstunt" ;;
                *)              PATH="$tstunt:$PATH" ;;
                esac
                export PATH
        '
+++ case "$PATH" in
+++ 
PATH=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
+++ export PATH
++ t-stunt-envvar PERLLIB /home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
++ local var=PERLLIB
++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
++ eval '
                case "$PERLLIB" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PERLLIB="$tstunt" ;;
                *)              PERLLIB="$tstunt:$PERLLIB" ;;
                esac
                export PERLLIB
        '
+++ case "$PERLLIB" in
+++ PERLLIB=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt
+++ export PERLLIB
++ local f
++ for f in "$@"
++ t-tstunt--save-real gpg
++ local f=gpg
++ case "$f" in
++ local rc
++ local real
++ set +e
+++ 
p=:/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
+++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
+++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
+++ 
p=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
+++ 
PATH=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
+++ type -p gpg
++ real=/usr/bin/gpg
++ rc=0
++ set -e
++ case $rc in
++ local varname=gpg
++ varname=DGIT_TEST_REAL_GPG
++ eval '
                : ${DGIT_TEST_REAL_GPG:=$real}
                export DGIT_TEST_REAL_GPG
        '
+++ : /usr/bin/gpg
+++ export DGIT_TEST_REAL_GPG
++ f=./gpg
++ local d=/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt/.
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt/.
++ ln -sf /home/nikratio/tmp/dgit/tests/tstunt/./gpg 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/tstunt/./.
+ gpg --list-secret
gpg: WARNING: unsafe permissions on homedir 
'/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg'
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from 
'/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/secring.gpg' to gpg-agent
gpg: key A3DBCBC039B13D8A: secret key imported
gpg: key 2AC1E075F5ED1B25: secret key imported
gpg: key 14A868BFAC3BD039: secret key imported
gpg: migration succeeded
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/pubring.gpg
---------------------------------------------------------
sec   rsa2048 2013-11-17 [SC]
      BCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A
uid           [ unknown] Senatus Romanus (test key) <s...@example.com>
ssb   rsa2048 2013-11-17 [E]

sec   rsa2048 2014-01-26 [SC]
      3A82860837A0CD32470F91E62AC1E075F5ED1B25
uid           [ultimate] Populus Romanus (test key) <p...@example.com>
ssb   rsa2048 2014-01-26 [E]

sec   rsa2048 2014-01-26 [SC]
      3B0F3FB8ADEFAEF81E0D0C5C14A868BFAC3BD039
uid           [ unknown] Hannibal (test key) <hanni...@example.com>
ssb   rsa2048 2014-01-26 [E]

+ t-setup-done 'DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG' gnupg '
        export GNUPGHOME=$tmp/gnupg
        export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG

        cat >$tmp/gnupg/gpg-agent.conf <<END
        log-file $tmp/gnupg/AGENT.log
END
        #debug-all

        : ${DGIT_TEST_REAL_GPG_AGENT:=$(type -p gpg-agent)}
        export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
        export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
        t-tstunt gpg
'
+ local 'savevars=DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG'
+ local savedirs=gnupg
+ local 'importeval=
        export GNUPGHOME=$tmp/gnupg
        export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG

        cat >$tmp/gnupg/gpg-agent.conf <<END
        log-file $tmp/gnupg/AGENT.log
END
        #debug-all

        : ${DGIT_TEST_REAL_GPG_AGENT:=$(type -p gpg-agent)}
        export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
        export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
        t-tstunt gpg
'
+ local import=IMPORT.gnupg
+ exec
+ local vn
+ for vn in $savevars
++ eval 'printf '\''%s\n'\'' "$DGIT_TEST_GNUPG_GLOBAL_LOCK"'
+++ printf '%s\n' 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dgit-test-global-lock
+ perl -I/home/nikratio/tmp/dgit -MDebian::Dgit -e '
                        printf "%s=%s\n", $ARGV[0], shellquote $ARGV[1]
                ' DGIT_TEST_GNUPG_GLOBAL_LOCK 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dgit-test-global-lock
+ for vn in $savevars
++ eval 'printf '\''%s\n'\'' "$DGIT_TEST_GNUPG_LOG"'
+++ printf '%s\n' /home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg-workarounds.log
+ perl -I/home/nikratio/tmp/dgit -MDebian::Dgit -e '
                        printf "%s=%s\n", $ARGV[0], shellquote $ARGV[1]
                ' DGIT_TEST_GNUPG_LOG 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg-workarounds.log
+ perl -I/home/nikratio/tmp/dgit -MDebian::Dgit -we '
                foreach my $vn (grep m/^DGIT_TEST_REAL_/, keys %ENV) {
                        print STDERR "saving-exporting $vn\n";
                        printf "export %s=%s\n", $vn, shellquote $ENV{$vn}
                                or die $!;
                }
        '
saving-exporting DGIT_TEST_REAL_GPG_AGENT
saving-exporting DGIT_TEST_REAL_GPG
+ set -e
+ cd /home/nikratio/tmp/dgit/tests/tmp/gnupg
+ tar cf IMPORT.gnupg.tar gnupg
+ printf '\n%s\n' '
        export GNUPGHOME=$tmp/gnupg
        export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG

        cat >$tmp/gnupg/gpg-agent.conf <<END
        log-file $tmp/gnupg/AGENT.log
END
        #debug-all

        : ${DGIT_TEST_REAL_GPG_AGENT:=$(type -p gpg-agent)}
        export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
        export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
        t-tstunt gpg
'
+ mv -f /home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg.new 
/home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg
+ rc=0
+ set +e
+ '[' x '!=' x ']'
+ '[' x/home/nikratio/tmp/dgit/tests/tmp/gnupg = x ']'
+ rm -rf /home/nikratio/tmp/dgit/tests/tmp/gnupg/must-clean
+ set -e
+ test 0 = 0
++ '[' x/home/nikratio/tmp/dgit/tests/tmp/gnupg '!=' 
x/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish ']'
++ set -e
++ cd /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish
++ tar xf /home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg.tar
++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/must-clean
++ . /home/nikratio/tmp/dgit/tests/tmp/gnupg/IMPORT.gnupg
+++ 
DGIT_TEST_GNUPG_GLOBAL_LOCK=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg/dgit-test-global-lock
+++ 
DGIT_TEST_GNUPG_LOG=/home/nikratio/tmp/dgit/tests/tmp/gnupg/gnupg-workarounds.log
+++ export DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
+++ DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
+++ export DGIT_TEST_REAL_GPG=/usr/bin/gpg
+++ DGIT_TEST_REAL_GPG=/usr/bin/gpg
+++ export GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/gnupg
+++ GNUPGHOME=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/gnupg
+++ export DGIT_TEST_GNUPG_GLOBAL_LOCK DGIT_TEST_GNUPG_LOG
+++ cat
+++ : /usr/bin/gpg-agent
++++ type -p gpg-agent
+++ export DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
+++ DGIT_TEST_REAL_GPG_AGENT=/usr/bin/gpg-agent
+++ export DGIT_STUNT_AGENT=/home/nikratio/tmp/dgit/tests/tstunt/gpg-agent
+++ DGIT_STUNT_AGENT=/home/nikratio/tmp/dgit/tests/tstunt/gpg-agent
+++ t-tstunt gpg
+++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+++ t-stunt-envvar PATH /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+++ local var=PATH
+++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+++ eval '
                case "$PATH" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PATH="$tstunt" ;;
                *)              PATH="$tstunt:$PATH" ;;
                esac
                export PATH
        '
++++ case "$PATH" in
++++ 
PATH=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++++ export PATH
+++ t-stunt-envvar PERLLIB 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+++ local var=PERLLIB
+++ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+++ eval '
                case "$PERLLIB" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PERLLIB="$tstunt" ;;
                *)              PERLLIB="$tstunt:$PERLLIB" ;;
                esac
                export PERLLIB
        '
++++ case "$PERLLIB" in
++++ PERLLIB=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
++++ export PERLLIB
+++ local f
+++ for f in "$@"
+++ t-tstunt--save-real gpg
+++ local f=gpg
+++ case "$f" in
+++ local rc
+++ local real
+++ set +e
++++ 
p=:/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
++++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
++++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++++ 
p=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++++ 
PATH=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++++ type -p gpg
+++ real=/usr/bin/gpg
+++ rc=0
+++ set -e
+++ case $rc in
+++ local varname=gpg
+++ varname=DGIT_TEST_REAL_GPG
+++ eval '
                : ${DGIT_TEST_REAL_GPG:=$real}
                export DGIT_TEST_REAL_GPG
        '
++++ : /usr/bin/gpg
++++ export DGIT_TEST_REAL_GPG
+++ f=./gpg
+++ local d=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/.
+++ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/.
+++ ln -sf /home/nikratio/tmp/dgit/tests/tstunt/./gpg 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/./.
+ t-dependencies sbuild man-db
+ : 'Hopefully installed: sbuild man-db'
+ t-restrict x-dgit-schroot-build
+ local restriction=x-dgit-schroot-build
+ cd /home/nikratio/tmp/dgit
+ t-restriction-x-dgit-schroot-build
+ '[' xbuster-amd64 '!=' x ']'
+ return 0
+ t-tstunt-parsechangelog
+ t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
+ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+ t-stunt-envvar PATH /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+ local var=PATH
+ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+ eval '
                case "$PATH" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PATH="$tstunt" ;;
                *)              PATH="$tstunt:$PATH" ;;
                esac
                export PATH
        '
++ case "$PATH" in
++ export PATH
+ t-stunt-envvar PERLLIB /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+ local var=PERLLIB
+ local tstunt=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
+ eval '
                case "$PERLLIB" in
                "$tstunt:"*)    ;;
                *":$tstunt:"*)  ;;
                "")             PERLLIB="$tstunt" ;;
                *)              PERLLIB="$tstunt:$PERLLIB" ;;
                esac
                export PERLLIB
        '
++ case "$PERLLIB" in
++ 
PERLLIB=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt:/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt
++ export PERLLIB
+ local f
+ for f in "$@"
+ t-tstunt--save-real dpkg-parsechangelog
+ local f=dpkg-parsechangelog
+ case "$f" in
+ local rc
+ local real
+ set +e
++ 
p=:/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:
++ 
p=:/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++ 
p=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++ 
PATH=/home/nikratio/bin:/home/nikratio/.local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
++ type -p dpkg-parsechangelog
+ real=/usr/bin/dpkg-parsechangelog
+ rc=0
+ set -e
+ case $rc in
+ local varname=dpkg_parsechangelog
+ varname=DGIT_TEST_REAL_DPKG_PARSECHANGELOG
+ eval '
                : ${DGIT_TEST_REAL_DPKG_PARSECHANGELOG:=$real}
                export DGIT_TEST_REAL_DPKG_PARSECHANGELOG
        '
++ : /usr/bin/dpkg-parsechangelog
++ export DGIT_TEST_REAL_DPKG_PARSECHANGELOG
+ f=./dpkg-parsechangelog
+ local d=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/.
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/.
+ ln -sf /home/nikratio/tmp/dgit/tests/tstunt/./dpkg-parsechangelog 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/./.
+ for f in "$@"
+ t-tstunt--save-real Dpkg/Changelog/Parse.pm
+ local f=Dpkg/Changelog/Parse.pm
+ case "$f" in
+ return
+ f=./Dpkg/Changelog/Parse.pm
+ local 
d=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/./Dpkg/Changelog
+ mkdir -p 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/./Dpkg/Changelog
+ ln -sf /home/nikratio/tmp/dgit/tests/tstunt/./Dpkg/Changelog/Parse.pm 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/tstunt/./Dpkg/Changelog/.
+ t-prep-newpackage example 1.1
+ t-select-package example
+ p=example
+ dgitrepo=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/git/example.git
+ v=1.1
+ t-archive-none example
+ t-select-package example
+ p=example
+ dgitrepo=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/git/example.git
+ t-archive-none-aq
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/mirror/pool/main
+ :
+ local 'jsondelim=['
+ local suitespec
+ for suitespec in $suitespecs
+ local suite=sid
+ local sname=unstable
+ t-aq-archive-updated sid example
+ local suite=sid
+ local p=example
+ local 
suitedir=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite/sid
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite/sid
+ perl -wne '
                use JSON;
                use strict;
                our @v;
                m{^(\S+) (\w+) ([^ \t/]+)/(\S+)} or die;
                push @v, {
                        "version" => "$1",
                        "sha256sum" => "$2",
                        "component" => "$3",
                        "filename" => "$4",
                };
                END {
                        my $json = JSON->new->canonical();
                        print $json->encode(\@v) or die $!;
                }
        '
+ t-aq-archive-updated new example
+ local suite=new
+ local p=example
+ local 
suitedir=/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite/new
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite/new
+ perl -wne '
                use JSON;
                use strict;
                our @v;
                m{^(\S+) (\w+) ([^ \t/]+)/(\S+)} or die;
                push @v, {
                        "version" => "$1",
                        "sha256sum" => "$2",
                        "component" => "$3",
                        "filename" => "$4",
                };
                END {
                        my $json = JSON->new->canonical();
                        print $json->encode(\@v) or die $!;
                }
        '
+ ln -sf sid 
/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/aq/dsc_in_suite/unstable
+ cat
+ jsondelim='   },'
+ cat
+ t-git-none
+ mkdir -p /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/git
+ set -e
+ cd /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/git
+ tar xf /home/nikratio/tmp/dgit/tests/git-template.tar
+ t-worktree 1.1
+ rm -rf example
+ t-untar /home/nikratio/tmp/dgit/tests/worktrees/example_1.1
+ local tarfile=/home/nikratio/tmp/dgit/tests/worktrees/example_1.1.tar
+ local edittree=/home/nikratio/tmp/dgit/tests/worktrees/example_1.1.edit
+ test -d /home/nikratio/tmp/dgit/tests/worktrees/example_1.1.edit
+ tar xf /home/nikratio/tmp/dgit/tests/worktrees/example_1.1.tar
+ cd example
+ git show-ref --verify --quiet refs/heads/master
+ cd ..
++ t-dgit-manpage 7 dgit-user
++ local section=7
++ local page=dgit-user
++ perl -ne '
                next unless m/^ +Using sbuild$/ .. 0;
                next unless m/^ +\%/ .. 0;
                next if !m/\S/ .. 0;
                s/^ +\%//;
                $fixchr += s/(\s-c\s*)jessie(\s|$)/$1buster-amd64$2/;
                print or die $!;
                END { $fixchr == 1 or die $fixchr; }
        '
++ export LC_ALL=C.UTF-8
++ LC_ALL=C.UTF-8
++ '[' '' ']'
++ man 7 dgit-user
+ buildrune=' git clean -xdf
 sbuild -c buster-amd64 -A --no-clean-source \
                    --dpkg-source-opts='\''-Zgzip -z1 --format=1.0 -sn'\'''
+ cd example
+ git checkout quilt-tip-1.1~0
Note: checking out 'quilt-tip-1.1~0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 7fc34be Update to 1.1 (with some extra funny upstream objects).
+ build
+ eval ' git clean -xdf
 sbuild -c buster-amd64 -A --no-clean-source \
                    --dpkg-source-opts='\''-Zgzip -z1 --format=1.0 -sn'\'''
++ git clean -xdf
++ sbuild -c buster-amd64 -A --no-clean-source '--dpkg-source-opts=-Zgzip -z1 
--format=1.0 -sn'
dpkg-source: warning: source directory 'example' is not 
<sourcepackage>-<upstreamversion> 'example-1.1'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building example in example_1.1-1.tar.gz
dpkg-source: info: building example in example_1.1-1.dsc
+ git checkout gitish-only~0
Previous HEAD position was 7fc34be Update to 1.1 (with some extra funny 
upstream objects).
HEAD is now at 2b2ddc8 check symlinks can be deleted
+ cat
+ git add clean-target-hook
+ git commit -m 'insist on schroot'
[detached HEAD e3716ec] insist on schroot
 1 file changed, 2 insertions(+), 1 deletion(-)
+ build
+ eval ' git clean -xdf
 sbuild -c buster-amd64 -A --no-clean-source \
                    --dpkg-source-opts='\''-Zgzip -z1 --format=1.0 -sn'\'''
++ git clean -xdf
++ sbuild -c buster-amd64 -A --no-clean-source '--dpkg-source-opts=-Zgzip -z1 
--format=1.0 -sn'
dpkg-source: warning: source directory 'example' is not 
<sourcepackage>-<upstreamversion> 'example-1.1'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building example in example_1.1-1.tar.gz
dpkg-source: info: building example in example_1.1-1.dsc
+ t-ok
+ : ========================================
+ t-check-only-bpd
+ '[' .. = .. ']'
+ return
+ t-fscks
+ shopt -s nullglob
+ for d in $tmp/*/.git $tmp/git/*.git
+ cd /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/example
+ t-git-fsck
++ git rev-parse --git-dir
+ local fsckerrs=.git/dgit-test-fsck.errs
+ set +e
+ LC_MESSAGES=C
+ git fsck --no-dangling --strict
+ tee .git/dgit-test-fsck.errs
+ ps='0 0'
+ set -e
+ local pats
+ '[' -f /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/fsck.expected-errors 
']'
+ test '0 0' = '0 0'
+ pats+=(-e 'notice: HEAD points to an unborn branch')
+ pats+=(-e 'notice: No default references')
+ set +e
+ grep -v -e 'notice: HEAD points to an unborn branch' -e 'notice: No default 
references' .git/dgit-test-fsck.errs
+ rc=1
+ set -e
+ case $rc in
+ t-save-artifacts
+ artifacts=
+ '[' x = x ']'
+ return
+ echo ok.
ok.
+ rc=0
+ set +e
+ '[' x '!=' x ']'
+ '[' x/home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish = x ']'
+ rm -rf /home/nikratio/tmp/dgit/tests/tmp/sbuild-gitish/must-clean
+ set -e
+ test 0 = 0

Reply via email to