Bug#1032224: pkg-perl-tools: Behaves weirdly if there are two different upstream tags for the same version

Axel Beckert abe at debian.org
Thu Mar 2 00:03:04 GMT 2023


Package: pkg-perl-tools
Version: 0.75
Severity: minor

The upstream of dhcpy3d accidentially tagged the 1.2.3 release as both
"v1.2.3" and "1.2.3" without "v".

My debian/gbp.conf says clearly:

  [DEFAULT]
  upstream-vcs-tag=v%(version)s

Nevertheless "dpt import-orig" on the 1.2.2 git checkout fails as
follows:

% dpt import-orig

Git remote 'upstream-repo'
==========================
I: Found Git remote 'upstream-repo':
* remote upstream-repo
  Fetch URL: https://github.com/HenriWahl/dhcpy6d.git
  Push  URL: https://github.com/HenriWahl/dhcpy6d.git
  HEAD branch: master
  Remote branches:
    1.0.x                                     tracked
    bullseye_client                           tracked
    except-interface                          tracked
    fix_sqlite_packaging                      tracked
    inject_dynamic_prefix                     tracked
    master                                    tracked
    snyk-fix-2e7d9c151fe0a1f229cfcd6b76a2c5d9 tracked
  Local ref configured for 'git push':
    master pushes to master (local out of date)
>From https://github.com/HenriWahl/dhcpy6d
 * [new tag]         v1.2.3                -> v1.2.3
 * [new tag]         1.2.3                 -> 1.2.3

gbp pull
========
gbp:info: Fetching from default remote for each branch
gbp:info: Branch 'master' is already up to date.
gbp:info: Branch 'upstream' is already up to date.
gbp:info: Branch 'pristine-tar' is already up to date.

gbp import-orig
===============
gbp:info: Launching uscan...
Newest version of dhcpy6d on remote site is 1.2.3, local version is 1.2.2
 => Newer package available from:
        => https://github.com/HenriWahl/dhcpy6d/archive/refs/tags/1.2.3.tar.gz
Leaving ../dhcpy6d_1.2.3.orig.tar.gz where it isgbp:info: Using uscan downloaded tarball ../dhcpy6d_1.2.3.orig.tar.gz
gbp:info: Importing '../dhcpy6d_1.2.3.orig.tar.gz' to branch 'upstream' (filtering out ['.gitignore', 'debian/*', '.git/*', '.git'])...
gbp:info: Source package is dhcpy6d
gbp:info: Upstream version is 1.2.3
gbp:error: Import of ../dhcpy6d_1.2.3.orig.tar.gz failed: Can't find upstream vcs tag at '1.2.3
v1.2.3'

Note that weird line break between "'1.2.3" and "v1.2.3'".

Temporarily worked around it by running "git tag -d 1.2.3" in a second
shell in the right moment. :-)

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages pkg-perl-tools depends on:
ii  curl                         7.88.1-1
ii  debhelper                    13.11.4
ii  devscripts                   2.23.2
ii  dh-make-perl                 0.122
ii  git                          1:2.39.2-1.1
ii  git-buildpackage             0.9.30
ii  libdatetime-perl             2:1.59-1
ii  libdebian-source-perl        0.122
ii  libdpkg-perl                 1.21.21
ii  libgit-repository-perl       1.325-2
ii  libgitlab-api-v4-perl        0.26-3
ii  libipc-run-perl              20220807.0-1
ii  libjson-xs-perl              4.030-2+b1
ii  libproc-invokeeditor-perl    1.13-3
ii  librt-client-rest-perl       1:0.60-2
ii  libtry-tiny-perl             0.31-2
ii  libutf8-all-perl             0.024-3
ii  lintian                      2.116.3
ii  openssh-client [ssh-client]  1:9.2p1-2
ii  perl                         5.36.0-7
ii  pristine-tar                 1.50
ii  quilt                        0.67+really0.66-1

Versions of packages pkg-perl-tools recommends:
ii  autodep8                                  0.28
ii  autopkgtest                               5.28
ii  cme                                       1.038-1
ii  libarray-utils-perl                       0.5-3
ii  libconfig-model-dpkg-perl                 2.165
ii  libconfig-model-perl                      2.152-1
ii  libdebian-copyright-perl                  0.2-6
ii  libfile-slurp-perl                        9999.32-2
ii  libmime-lite-perl                         3.033-1
ii  libmodule-inspector-perl                  1.05-3
ii  libnet-github-perl                        1.05-1
ii  libparallel-forkmanager-perl              2.02-1
ii  libsoap-lite-perl                         1.27-3
ii  libterm-readline-gnu-perl                 1.45-1
ii  libwww-mechanize-perl                     2.16-1
ii  libyaml-libyaml-perl                      0.86+ds-1
ii  myrepos                                   1.20180726
ii  perl [libmodule-corelist-perl]            5.36.0-7
ii  postgresql-client                         15+247
ii  postgresql-client-15 [postgresql-client]  15.2-2
ii  sensible-utils                            0.0.17+nmu1

Versions of packages pkg-perl-tools suggests:
ii  bc                    1.07.1-3+b1
ii  cdbs                  0.4.166
ii  duck                  0.14.1
ii  lintian-brush         0.147
ii  moreutils             0.67-1
ii  perl-depends          2016.1029+git8f67695-3
ii  python3               3.11.2-1
ii  python3-launchpadlib  1.11.0-1

-- no debconf information



More information about the pkg-perl-maintainers mailing list