Package: devscripts
Version: 2.25.25
Severity: important

Dear Maintainer,

-- Package-specific info:
--- /etc/devscripts.conf ---
Empty.

--- ~/.devscripts ---
Not present
> *** Reporter, please consider answering these questions, where appropriate ***
> 
>    * What led up to the situation?

Latest uscan gives wrong result when d/watch tracks HEAD of a remote repository.

>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?

As an example of emacs-dart-mode, both the v4 and v5 d/watch that tracks
HEAD gives the wrong result.

v4:
,----
| version=4
| opts="mode=git, pgpmode=none, pretty=1.0.7+git%cd.%h" \
|     https://github.com/emacsorphanage/dart-mode \
|     HEAD debian uupdate
`----

v5:
,----
| Version: 5
| 
| Source: https://github.com/emacsorphanage/dart-mode
| Matching-Pattern: HEAD
| Mode: git
| Pgp-Mode: none
| Pretty: 1.0.7+git%cd.%h
`----

The following is from the output of `uscan --report-status`:
,----
| $ uscan --report-status
| uscan info: Scan watch files in .
| uscan info: Check debian/watch and debian/changelog in .
| uscan info: package="emacs-dart-mode" version="1.0.7+git20250811.edb45cb-1" 
(as 
| seen in debian/changelog)
| uscan info: package="emacs-dart-mode" version="1.0.7+git20250811.edb45cb" (no 
ep
| och/revision)
| uscan info: ./debian/changelog sets package="emacs-dart-mode" 
version="1.0.7+git
| 20250811.edb45cb"
| uscan info: Process watch file at: debian/watch
|     package = emacs-dart-mode
|     version = 1.0.7+git20250811.edb45cb
|     pkg_dir = .
| uscan info: Parsing gitpretty: 1.0.7+git%cd.%h
| uscan info: Parsing mode: git
| uscan info: Parsing pgpmode: none
| uscan info: Last orig.tar.* tarball version (from debian/changelog): 
1.0.7+git20
| 250811.edb45cb
| uscan info: Last orig.tar.* tarball version (dversionmangled): 
1.0.7+git20250811
| .edb45cb
| uscan warn: Using upstreamvcs remote origin
| uscan info: Looking at $base        = 
https://github.com/emacsorphanage/dart-mod
| e with
|     $filepattern        = HEAD found
|     $newfile            = HEAD
|     $mangled_newversion = 1.0.7+git20251110.ca232ba
|     $newversion         = 1.0.7+git20251110.ca232ba
|     $lastversion        = 1.0.7+git20250811.edb45cb
| uscan info: Upstream URL(+tag) to download is identified as    
https://github.co
| m/emacsorphanage/dart-mode HEAD
| uscan info: Filename (filenamemangled) for downloaded file: 
emacs-dart-mode-1.0.
| 7+git20251110.ca232ba.tar.xz
| Newest version of emacs-dart-mode on remote site is 
1.0.7+git20251110.ca232ba, l
| ocal version is 1.0.7+git20250811.edb45cb
|  => Newer package available from:
|         => https://github.com/emacsorphanage/dart-mode HEAD
| uscan info: Scan finished
`----

Note that it reports the newversion as `1.0.7+git20251110.ca232ba', but
the actual latest commit of upstreamvcs happened on `Tue Nov 4 21:43:39
2025 -0800', and the latest commit hash should be 22288d0, so the
correct version string should be `1.0.7+git20251105.22288d0'.  And as a
matter of fact, the qa.debian.org page reports the correct version
string[1], suggesting that some previous version of uscan was working
correctly.

>    * What was the outcome of this action?

On closer inspect, `ca232ba' is actually the latest commit of my
debian/latest branch on Salsa.  So it looks like when tracking HEAD,
uscan is using my `debian/latest' branch instead of the remote branch
for getting the latest commit time and hash.

>    * What outcome did you expect instead?
>

Restoring the previous correct behavior would be great.

As this would generate the wrong version string and potentially wrong
packaging, I'm setting the severity as important.

[1] https://qa.debian.org/cgi-bin/watch?pkg=emacs-dart-mode

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.7+deb14+1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages devscripts depends on:
ii  dpkg-dev              1.22.21
ii  file                  1:5.46-5
ii  gpg                   2.4.8-4
ii  gpg-agent             2.4.8-4
ii  gpgv                  2.4.8-4
ii  libdpkg-perl          1.22.21
ii  libfile-dirlist-perl  0.05-3
ii  libfile-homedir-perl  1.006-2
ii  libfile-touch-perl    0.12-2
ii  libio-string-perl     1.08-4
ii  libmoo-perl           2.005005-1
ii  libwww-perl           6.81-1
ii  patchutils            0.4.3-1
ii  perl                  5.40.1-6
ii  python3               3.13.7-1
ii  sensible-utils        0.0.26
ii  wdiff                 1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.1.12
ii  curl                        8.17.0-1
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2025.09.18
ii  debian-tag2upload-keyring   1.1
ii  dput                        1.2.4
ii  equivs                      2.3.2
ii  git-debpush                 13.17
ii  libdistro-info-perl         1.14
ii  libencode-locale-perl       1.05-3
ii  libgitlab-api-v4-perl       0.27-1
ii  libjson-perl                4.10000-1
ii  liblwp-protocol-https-perl  6.14-1
ii  libmetacpan-client-perl     2.033000-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  liburi-perl                 5.34-2
ii  licensecheck                3.3.9-1
ii  lintian                     2.127.0
ii  lzip                        1.25-3
ii  man-db                      2.13.1-1
ii  patch                       2.8-2
ii  pristine-tar                1.50+nmu2
ii  python3-apt                 3.0.0
ii  python3-debian              1.0.1
ii  python3-magic               2:0.4.27-3
ii  python3-requests            2.32.5+dfsg-1
ii  python3-unidiff             0.7.5-2
ii  python3-xdg                 0.28-2
ii  strace                      6.16+ds-2
ii  unzip                       6.0-29
ii  wget                        1.25.0-2
ii  xz-utils                    5.8.1-2

Versions of packages devscripts suggests:
ii  adequate                                  0.17.6+b1
pn  at                                        <none>
ii  autopkgtest                               5.51
pn  bls-standalone                            <none>
ii  build-essential                           12.12
pn  check-all-the-things                      <none>
ii  debhelper                                 13.28
pn  diffoscope                                <none>
pn  disorderfs                                <none>
pn  docker.io                                 <none>
ii  dose-extra                                7.0.0-6+b4
pn  duck                                      <none>
ii  elpa-devscripts                           40.7
pn  faketime                                  <none>
ii  gnuplot-nox [gnuplot]                     6.0.3+dfsg1-1
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.1900-1
pn  libdbd-pg-perl                            <none>
pn  libterm-size-perl                         <none>
ii  libtimedate-perl                          2.3300-2
ii  libyaml-libyaml-perl                      0.904.0+ds-1
ii  mailutils [mailx]                         1:3.20-2
ii  mmdebstrap                                1.5.7-3
ii  mutt                                      2.2.13-1
ii  openssh-client [ssh-client]               1:10.2p1-2
ii  piuparts                                  1.6.0
ii  postgresql-client-17 [postgresql-client]  17.6-1
ii  postgresql-client-18 [postgresql-client]  18.0-1
pn  pristine-lfs                              <none>
ii  python3-debianbts                         4.1.1
pn  python3-pycurl                            <none>
ii  quilt                                     0.68-1
ii  ratt                                      0.0~git20250829.39528ce-1
ii  reprotest                                 0.7.32
pn  svn-buildpackage                          <none>
ii  w3m                                       0.5.3+git20230121-2.1

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to