Package: devscripts
Version: 2.25.19
Severity: normal

With the introduction of version 5 watch files in commit e461cf203c1b,
the expansion of @-expressions was moved from the watch file parser to
a later stage of processing.

The version 1-4 parser was changed to recognise when part of a URL
contains an @-expression that will expand to a parenthesised regexp
and so needs to be split off as a file pattern, just as if it
contained a parenthesised regexp directly.

However, @PACKAGE@ is also treated this way and should not be.
This broke handling of ethtool's watch file:

version=4
opts="mode=git, pgpmode=gittag, dversionmangle=s/^1://" \
https://git.kernel.org/pub/scm/network/@PACKAGE@/@[email protected] \
refs/tags/v@ANY_VERSION@

Ben.

-- Package-specific info:

--- /etc/devscripts.conf ---
Empty.

--- ~/.devscripts ---
DEBSIGN_KEYID=AC2B29BD34A6AFDDB3F68F35E7BFC8EC95861109
DEBUILD_DPKG_BUILDPACKAGE_OPTS='-uc -us'
DEBDIFF_CONTROLFILES=ALL
USCAN_VCS_EXPORT_UNCOMPRESSED=yes

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

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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-2
ii  gpg-agent             2.4.8-2
ii  gpgv                  2.4.8-2
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.78-1
ii  patchutils            0.4.2-1
ii  perl                  5.40.1-6
ii  python3               3.13.5-1
ii  sensible-utils        0.0.25
ii  wdiff                 1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.1.4
ii  curl                        8.15.0-1
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2025.07.26
ii  debian-tag2upload-keyring   1.1
ic  dput                        1.1.3
ii  dput-ng [dput]              1.43
ii  equivs                      2.3.2
ii  git-debpush                 13.13
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.30-1
ii  licensecheck                3.3.9-1
ii  lintian                     2.122.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.3+dfsg-5
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-1

Versions of packages devscripts suggests:
pn  adequate                                  <none>
ii  at                                        3.2.5-2.2
ii  autopkgtest                               5.49
pn  bls-standalone                            <none>
ii  bsd-mailx [mailx]                         8.1.2-0.20220412cvs-1.1
ii  build-essential                           12.12
pn  check-all-the-things                      <none>
ii  debhelper                                 13.25
ii  diffoscope                                297
pn  disorderfs                                <none>
pn  docker.io                                 <none>
pn  dose-extra                                <none>
pn  duck                                      <none>
ii  elpa-devscripts                           40.7
ii  faketime                                  0.9.10+2024-06-05+gba9ed5b2-0.6
pn  gnuplot                                   <none>
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.1900-1
pn  libdbd-pg-perl                            <none>
ii  libgitlab-api-v4-perl                     0.27-1
ii  libterm-size-perl                         0.211-1+b5
ii  libtimedate-perl                          2.3300-2
ii  libyaml-libyaml-perl                      0.903.0+ds-1
ii  mailutils [mailx]                         1:3.19-1
ii  mmdebstrap                                1.5.7-3
ii  mutt                                      2.2.13-1
ii  openssh-client [ssh-client]               1:10.0p1-8
pn  piuparts                                  <none>
ii  postgresql-client                         17+281
ii  postgresql-client-17 [postgresql-client]  17.6-1
pn  pristine-lfs                              <none>
ii  python3-debianbts                         4.1.1
ii  python3-pycurl                            7.45.6-1
ii  quilt                                     0.68-1
pn  ratt                                      <none>
pn  reprotest                                 <none>
ii  svn-buildpackage                          0.8.10
pn  w3m                                       <none>

-- debconf-show failed

Reply via email to