Subject: uscan: 'pgpmode=gittag' fails when USCAN_DESTDIR is set
Package: devscripts
Version: 2.20.4
Severity: important

Hi,

See attachment for full log.  The short version is the repo is cloned,
the tarball is created; however tag verification appears to fail when
USCAN_DESTDIR is set, because "$PWD/../" appears to be the hardcoded
location for the temporary repository clone that 'pgpmode=gittag' uses.

I reported against 2.20.4, even though I'm using 2.20.4~bpo10+1, because I
believe it also affects 2.20.4.  I hope I'm not wrong!

...
uscan info: Successfully downloaded package: python-css-parser-1.0.6.tar.xz
fatal: not a git repository: '../python-css-parser-temporary.30699.git'
uscan: error: git --git-dir ../python-css-parser-temporary.30699.git
show-ref refs/tags/v1.0.6 subprocess returned exit status 1
28

Regards,
Nicholas

-- Package-specific info:

--- /etc/devscripts.conf ---
DEBCHANGE_MULTIMAINT_MERGE=yes
DEBCHANGE_MAINTTRAILER=yes
DEBSIGN_KEYID=E2A6261E3900AED7CDC667085A8830475F7D1061
DPKGSIG_KEYID=E2A6261E3900AED7CDC667085A8830475F7D1061
USCAN_DESTDIR=/home/sten/devel/tarballs

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: 10.6
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.61-sten (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev              1.19.7
ii  fakeroot              1.23-1
ii  file                  1:5.35-4+deb10u1
ii  gnupg                 2.2.20-1~bpo10+1
ii  gnupg2                2.2.20-1~bpo10+1
ii  gpgv                  2.2.20-1~bpo10+1
ii  libc6                 2.28-10
ii  libfile-homedir-perl  1.004-1
ii  libfile-which-perl    1.23-1
ii  libipc-run-perl       20180523.0-1
ii  libmoo-perl           2.003004-2
ii  libwww-perl           6.36-2
ii  patchutils            0.3.4-2
ii  perl                  5.28.1-6+deb10u1
ii  python3               3.7.3-1
ii  sensible-utils        0.0.12
ii  wdiff                 1.2.2-2+b1

Versions of packages devscripts recommends:
ii  apt                         1.8.2.1
ii  at                          3.1.23-1
ii  curl                        7.64.0-4+deb10u1
ii  dctrl-tools                 2.24-3
ii  debian-keyring              2019.02.25
ii  dput                        1.0.3
ii  equivs                      2.2.0
ii  libdistro-info-perl         0.21
ii  libdpkg-perl                1.19.7
ii  libencode-locale-perl       1.05-1
ii  libgit-wrapper-perl         0.048-1
pn  libgitlab-api-v4-perl       <none>
ii  liblist-compare-perl        0.53-1
ii  liblwp-protocol-https-perl  6.07-2
ii  libsoap-lite-perl           1.27-1
ii  libstring-shellquote-perl   1.04-1
ii  libtry-tiny-perl            0.30-1
ii  liburi-perl                 1.76-1
ii  licensecheck                3.0.31-3
ii  lintian                     2.98.0~bpo10+1
ii  man-db                      2.8.5-2
ii  patch                       2.7.6-3+deb10u1
ii  pristine-tar                1.46
ii  python3-apt                 1.8.4.1
ii  python3-debian              0.1.35
ii  python3-magic               2:0.4.15-2
ii  python3-requests            2.21.0-1
ii  python3-unidiff             0.5.4-1
ii  python3-xdg                 0.25-5
ii  strace                      4.26-0.2
ii  unzip                       6.0-23+deb10u1
ii  wget                        1.20.1-1.1
ii  xz-utils                    5.2.4-1

Versions of packages devscripts suggests:
ii  adequate                     0.15.2
ii  autopkgtest                  5.10
pn  bls-standalone               <none>
ii  bsd-mailx [mailx]            8.1.2-0.20180807cvs-1
ii  build-essential              12.6
pn  check-all-the-things         <none>
pn  cvs-buildpackage             <none>
ii  debhelper                    13.2~bpo10+1
pn  devscripts-el                <none>
ii  diffoscope                   160~bpo10+1
pn  disorderfs                   <none>
ii  dose-extra                   5.0.1-12
pn  duck                         <none>
ii  faketime                     0.9.7-3
ii  gnuplot                      5.2.6+dfsg1-1+deb10u1
ii  gnuplot-qt [gnuplot]         5.2.6+dfsg1-1+deb10u1
ii  how-can-i-help               16
ii  libauthen-sasl-perl          2.1600-1
pn  libdbd-pg-perl               <none>
ii  libfile-desktopentry-perl    0.22-1
pn  libnet-smtps-perl            <none>
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3000-2+deb10u1
ii  libyaml-syck-perl            1.31-1+b1
ii  mailutils [mailx]            1:3.5-4
ii  mozilla-devscripts           0.53
ii  mutt                         1.10.1-2.1+deb10u3
ii  openssh-client [ssh-client]  1:7.9p1-10+deb10u2
ii  piuparts                     1.0.0+deb10u1
pn  postgresql-client            <none>
ii  quilt                        0.65-3
ii  ratt                         0.0~git20180127.c44413c-2+b10
pn  reprotest                    <none>
ii  svn-buildpackage             0.8.7
ii  w3m                          0.5.3-37

-- no debconf information
uscan info: uscan (version 2.20.4~bpo10+1) See uscan(1) for help
uscan info: Scan watch files in .
uscan debug: Found ./debian
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="python-css-parser" version="1.0.4-3" (as seen in debian/changelog)
uscan info: package="python-css-parser" version="1.0.4" (no epoch/revision)
uscan info: ./debian/changelog sets package="python-css-parser" version="1.0.4"
uscan info: Found upstream signing keyring: debian/upstream/signing-key.asc
uscan info: Process watch file at: debian/watch
    package = python-css-parser
    version = 1.0.4
    pkg_dir = .
uscan debug: parse line opts="mode=git,pgpmode=gittag,gitmode=full" https://github.com/ebook-utils/css-parser.git refs/tags/v([\d\.]+) debian uupdate
uscan info: opts: mode=git,pgpmode=gittag,gitmode=full
uscan info: line: https://github.com/ebook-utils/css-parser.git refs/tags/v([\d\.]+) debian uupdate
uscan info: Parsing mode=git
uscan info: Parsing pgpmode=gittag
uscan info: Parsing gitmode=full
uscan info: line: https://github.com/ebook-utils/css-parser.git refs/tags/v([\d\.]+) debian uupdate
uscan debug: $self->{'pgpmode'}=gittag, $self->{'pgpsigurlmangle'}=undef
uscan info: Last orig.tar.* tarball version (from debian/changelog): 1.0.4
uscan info: Last orig.tar.* tarball version (dversionmangled): 1.0.4
uscan debug: watch file has:
    $base        = https://github.com/ebook-utils/css-parser.git
    $filepattern = refs/tags/v([\d\.]+)
    $lastversion = 1.0.4
    $action      = uupdate
    mode         = git
    pgpmode      = gittag
    versionmode  = newer
    $site        = https://github.com/ebook-utils/css-parser.git
    $basedir     = 
uscan debug: line: search()
uscan info: Execute: git ls-remote https://github.com/ebook-utils/css-parser.git
uscan debug: 307649a971ea2bf8bf93580f7d815369bfa823d7	HEAD
uscan debug: 307649a971ea2bf8bf93580f7d815369bfa823d7	refs/heads/master
uscan debug: 6ad4c8cc2eb987c423b8f93c0584c3643a363cc1	refs/heads/serializer
uscan debug: 6db0b5b0ce61ca9842adc4a444228b522e741110	refs/pull/2/head
uscan debug: 4f67d99550815766b5d0ecec3055a7b4e98cf76d	refs/pull/3/head
uscan debug: d6a22936b8b7bba39ad949624de73f40770db035	refs/pull/5/head
uscan debug: cfde4c639270d1a3de8893d61304b6c7276eddab	refs/pull/6/head
uscan debug: b26a4a1f1ce858bc06211175b1a78826b5a948ed	refs/tags/v1.0.4
uscan debug: 14af3347eef25ff612aff986894e0236c7ba17da	refs/tags/v1.0.4^{}
uscan debug: 91e79c5fedf8794c09fc9227056e80a000c5f194	refs/tags/v1.0.5
uscan debug: 635250227857be8032cd6d738ec254c6e6849a2a	refs/tags/v1.0.5^{}
uscan debug: 38dcf8319fe856d8afc1caaaa9c4de1714a88791	refs/tags/v1.0.6
uscan debug: 307649a971ea2bf8bf93580f7d815369bfa823d7	refs/tags/v1.0.6^{}
uscan info: Found the following matching refs:
     refs/tags/v1.0.6 (1.0.6)
     refs/tags/v1.0.5 (1.0.5)
     refs/tags/v1.0.4 (1.0.4)
     HEAD ()
     refs/heads/master ()
     refs/heads/serializer ()
     refs/pull/2/head ()
     refs/pull/3/head ()
     refs/pull/5/head ()
     refs/pull/6/head ()
uscan info: Looking at $base = https://github.com/ebook-utils/css-parser.git with
    $filepattern = refs/tags/v([\d\.]+) found
    $newfile     = refs/tags/v1.0.6
    $newversion  = 1.0.6
    $lastversion = 1.0.4
uscan debug: line: get_upstream_url()
uscan info: Upstream URL(+tag) to download is identified as    https://github.com/ebook-utils/css-parser.git refs/tags/v1.0.6
uscan debug: line: get_newfile_base()
uscan info: Filename (filenamemangled) for downloaded file: python-css-parser-1.0.6.tar.xz
uscan debug: line: cmp_versions()
uscan: Newest version of python-css-parser on remote site is 1.0.6, local version is 1.0.4
uscan:  => Newer package available from
        => https://github.com/ebook-utils/css-parser.git refs/tags/v1.0.6
uscan debug: line: download_file_and_sig()
uscan info: Downloading upstream package: python-css-parser-1.0.6.tar.xz
uscan debug: Execute: git clone --bare https://github.com/ebook-utils/css-parser.git /home/sten/devel/tarballs/python-css-parser-temporary.30699.git...
Cloning into bare repository '/home/sten/devel/tarballs/python-css-parser-temporary.30699.git'...
uscan debug: Execute: git --git-dir=/home/sten/devel/tarballs/python-css-parser-temporary.30699.git archive --format=tar --prefix=python-css-parser-1.0.6/ --output=/home/sten/devel/tarballs/python-css-parser-1.0.6.tar refs/tags/v1.0.6...
uscan debug: Execute: xz python-css-parser-1.0.6.tar...
uscan info: Successfully downloaded package: python-css-parser-1.0.6.tar.xz
fatal: not a git repository: '../python-css-parser-temporary.30699.git'
uscan: error: git --git-dir ../python-css-parser-temporary.30699.git show-ref refs/tags/v1.0.6 subprocess returned exit status 128

Reply via email to