[From nobody Fri May 15 22:37:06 2026
Received: (at submit) by bugs.debian.org; 13 Dec 2025 20:21:18 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.4 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_ADSP_CUSTOM_MED,FORGED_YAHOO_RCVD,FOURLA,
 FREEMAIL_FROM,HAS_PACKAGE,NML_ADSP_CUSTOM_MED,RDNS_NONE,SPF_NEUTRAL,
 SPOOFED_FREEMAIL,SPOOFED_FREEMAIL_NO_RDNS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 176; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--forky, 0.000-+--debianpolicy,
 0.000-+--debian-policy
Return-path: &lt;nbehrnd@yahoo.com&gt;
Received: from [2a02:810a:830f:4700:991b:2918:3c93:4d15] (port=52354
 helo=[192.168.0.107]) by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;nbehrnd@yahoo.com&gt;) id 1vUW7A-0016i2-2p
 for submit@bugs.debian.org; Sat, 13 Dec 2025 20:21:18 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Norwid Behrnd &lt;nbehrnd@yahoo.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: gem2deb: issue with version and syntax of file debian/watch
Message-ID: &lt;176565727065.27547.5853486065987455279.reportbug@debian&gt;
X-Mailer: reportbug 13.2.0
Date: Sat, 13 Dec 2025 21:21:10 +0100
Delivered-To: submit@bugs.debian.org

Package: gem2deb
Version: 2.2.6
Severity: normal
X-Debbugs-Cc: nbehrnd@yahoo.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

While updating ruby-mdl/markdownlint, I noticed current gem2deb creates a watch
file which is in sync with watch [documentation] (last modified 2025-08-31
19:44:00), i.e.

```
version=4
https://gemwatch.debian.net/mdl .*/mdl-(.*).tar.gz

# Use the regex below for github-based sources
# opts=uversionmangle=s/[_.+-]?(rc|pre|dev|beta|alpha|b|a)/~$1/i,\
# filenamemangle=s%(?:.+/)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE@-$1$2% \
#   https://github.com/&lt;owner&gt;/&lt;repo&gt;/tags .*/v?@ANY_VERSION@@ARCHIVE_EXT@
```

which so far was functional, too.  However, by the command of

```bash
uscan --update-watchfile
```

(with uscan version 2.25.28) the file is overwritten, incremented by one and of
slightly different syntax:

```
Version: 5

Source: https://gemwatch.debian.net/mdl
Matching-Pattern: .*/mdl-(.*).tar.gz
```

I interpret the reports by `lintian` of a newly assembled .deb, as well as by
running

```bash
uscan --no-download --verbose --debug
```

with either version of the watch file as if the newer version 5 were preferred.

My question: if version 5 is new standard to adhere to, will future versions of
`gem2deb` write the watch file right in this pattern?


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.9.10-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 gem2deb depends on:
ii  debhelper [debhelper-compat]  13.28
ii  gem2deb-test-runner           2.2.6
ii  perl                          5.40.1-7
ii  rake                          13.2.1-1
ii  ruby                          1:3.3+b1
ii  ruby-all-dev                  1:3.3+b1

Versions of packages gem2deb recommends:
ii  apt-file         3.3
ii  build-essential  12.12
ii  debian-policy    4.7.2.0
ii  devscripts       2.25.28
ii  python3-debian   1.0.1

Versions of packages gem2deb suggests:
ii  git-buildpackage  0.9.39
ii  pristine-tar      1.50+nmu2

-- no debconf information
]