Package: devscripts
Version: 2.25.14
Severity: normal

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?

I'm trying to use gitmodules in uscan which was introduced since
2.25.11[1], but it doesn't checkout the submodule when running uscan.

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

I have updated debian/watch to use submodule following the uscan
manpage, which contains the following contents:

,----
| version=4
| opts="mode=git, gitmode=shallow, gitmodules, gitexport=all" \
|     https://github.com/karthink/gptel \
|     (?:.*?/)?@ANY_VERSION@ debian uupdate
`----

(I have created a branch to demonstrate this issue, and you can find the
debian/watch file at [2].)

>    * What was the outcome of this action?

When running uscan, the submodule was not checked out, leaving an empty
`test' directory.

>    * What outcome did you expect instead?

A submodule should be checked out in the `test/' directory.

(On a side note, I do have some success using a MUT setting, so there is
a workaround.  Still, I would like to make gitmodules work.)

> *** End of the template - remove these template lines ***

Please also see the full log of uscan run below:

(I also notice that no submodule handling in the debug output, and the
submodule was not part of the parsed watch file info.)

,----
| $ uscan --extra-debug -ddd
| uscan info: uscan (version 2.25.14) 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="emacs-gptel" version="0.9.8-1" (as seen in 
debian/changelog)
| uscan info: package="emacs-gptel" version="0.9.8" (no epoch/revision)
| uscan info: ./debian/changelog sets package="emacs-gptel" version="0.9.8"
| uscan info: Process watch file at: debian/watch
|     package = emacs-gptel
|     version = 0.9.8
|     pkg_dir = .
| uscan debug: parse line opts="mode=git, gitmode=shallow, gitmodules, 
gitexport=all" https://github.com/karthink/gptel 
(?:.*?/)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
| uscan info: opts: mode=git, gitmode=shallow, gitmodules, gitexport=all
| uscan info: line: https://github.com/karthink/gptel 
(?:.*?/)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
| uscan info: Parsing mode=git
| uscan info: Parsing  gitmode=shallow
| uscan info: Parsing  gitmodules
| uscan info: Parsing  gitexport=all
| uscan info: line: https://github.com/karthink/gptel 
(?:.*?/)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) debian uupdate
| uscan debug: $self->{'pgpmode'}=default, $self->{'pgpsigurlmangle'}=undef
| uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.9.8
| uscan info: Last orig.tar.* tarball version (dversionmangled): 0.9.8
| uscan debug: watch file has:
|     $base        = https://github.com/karthink/gptel
|     $filepattern = (?:.*?/)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
|     $lastversion = 0.9.8
|     $action      = uupdate
|     mode         = git
|     pgpmode      = default
|     versionmode  = newer
|     $site        = https://github.com/karthink/gptel
|     $basedir     = 
| uscan debug: line: search()
| uscan warn: Using upstream remote origin [Devscripts::Uscan::git: 142]
| uscan info: Execute: git show-ref
| uscan debug: 3da85a3517277af24910563ee34f084783b77732 refs/heads/debian/latest
| uscan debug: c03e4f3a4768c46cc7c581e52ee130e76a2e0173 refs/heads/master
| uscan debug: b1d976b9aa8a5666dbb1cb96a6ffb8f512d47b71 refs/heads/pristine-tar
| uscan debug: 25698c3f01f520b6443be8131e5277a62a6a8eff refs/heads/uploading
| uscan debug: 63a12444b5920dcd11bd886efeb032d26f3203f3 
refs/heads/upstream/latestuscan debug: e7a341dc12508b174bd0829b1b3bf7b1eb2ccac5 
refs/heads/uscan-gitmodules-test
| uscan debug: 94ebd0a42b834c78e0921b81821c16984bdebbfa 
refs/remotes/debian/debian/latest
| uscan debug: 975c3e64eb834b939e0d61dfc39fed8395afcc45 
refs/remotes/debian/upstream/latest
| uscan debug: e7a341dc12508b174bd0829b1b3bf7b1eb2ccac5 
refs/remotes/debian/uscan-gitmodules-test
| uscan debug: d91675db959b18cded8afb4902a52b19fd476ac9 
refs/remotes/upstream/HEADuscan debug: 5af7be9acbe6dbe420df260f5e70d5fb94efd736 
refs/remotes/upstream/copilot
| uscan debug: 87eb04a94b57167703ac30f5a3bd30256c5b93ff 
refs/remotes/upstream/fancy-chat-header
| uscan debug: 40ef63b09d64730e213c340026fdb2adf53392a4 
refs/remotes/upstream/feature-augment-buffer
| uscan debug: 3dcd9f10317712248ced0fc9b0b9d6cb06ab16ff 
refs/remotes/upstream/feature-capabilities
| uscan debug: e7941f7f6fa931e7fd3061e8526ac1242c2edbea 
refs/remotes/upstream/feature-context
| uscan debug: cbe6f304e5159838686d2163ae733dbba9a7b406 
refs/remotes/upstream/feature-ollama-auto-update
| uscan debug: 040ef0a35d7df736dae0eef3943a9eb21787fd6f 
refs/remotes/upstream/feature-org
| uscan debug: 3f499226bfc8441a55cc3257c515b33c95ea2c89 
refs/remotes/upstream/feature-overlays
| uscan debug: 4210b6664f2f464800c5be782cb7bf21c61f56db 
refs/remotes/upstream/feature-presets
| uscan debug: e99d29c4540d7a5119db2c287232642e6f79bc68 
refs/remotes/upstream/feature-readme
| uscan debug: e28b0424f6dcdceaa2bf3d0f0c1f3c5fe5998d81 
refs/remotes/upstream/feature-state-machine
| uscan debug: b58b4e3de3e3ba329d64e8b41bf4b9274596e5ed 
refs/remotes/upstream/feature-templates
| uscan debug: 4f4894f8c70da2de8ca58f6da7e66e0ac849d51b 
refs/remotes/upstream/feature-tool-use
| uscan debug: 6d42fd25915ffdecc8f2490bf1bb586a492417c3 
refs/remotes/upstream/feature-two-column-tools
| uscan debug: bc7e4e6e5872facd72d18de7402d19be5bb60c91 
refs/remotes/upstream/feature-vision
| uscan debug: 6e4d95a70ab1b6adc70982956bfc1f280d1f2948 
refs/remotes/upstream/ghtest
| uscan debug: d9f8b2e35ca054d06828bef5ec8b07ba0c038a2a 
refs/remotes/upstream/issue-template
| uscan debug: 1827a368fa7565678657ffb3e53ac77fede310ed 
refs/remotes/upstream/issue-template-2
| uscan debug: 01d5f60e910cb46dac226faab6ac62a450a4b76e 
refs/remotes/upstream/issue-templates
| uscan debug: 885d23523aa0c7fc9df313765b966dc05bde23a2 
refs/remotes/upstream/kagi-fastgpt
| uscan debug: d91675db959b18cded8afb4902a52b19fd476ac9 
refs/remotes/upstream/master
| uscan debug: 6419e8f021ef46d9657cbd9bdf631e33378eedeb 
refs/remotes/upstream/multi-llm
| uscan debug: 66a63e6c825abe33926dccf2f2ef1c49667b200a 
refs/remotes/upstream/ollama-chat
| uscan debug: 3e92d2739b22020fa90d863fa1fbad86cbd141aa 
refs/remotes/upstream/pr-814
| uscan debug: dba153914567d113113263ade92a59e3662694a1 
refs/remotes/upstream/revert-213-master
| uscan debug: 4518ab6293c98577a2c34f072711cfc09613ed0f 
refs/remotes/upstream/scratch-cl-generic-dispatch
| uscan debug: 6c47c0a48306e127557caf54c5a03e162e2d2ed3 
refs/remotes/upstream/streaming
| uscan debug: 95b30c3b5600a9aa464f969685b334d95a4395b0 
refs/remotes/upstream/transient
| uscan debug: 3f7c81012b8c7a36e380c78a611409c1a03686cc refs/tags/v0.1.0
| uscan debug: cd6d90b24d1f43b796ec09887a93d4c31fc060d5 refs/tags/v0.2.0
| uscan debug: 1c07a94e18a914ae69ea0061f81fda4bba29afd5 refs/tags/v0.2.5
| uscan debug: 6c47c0a48306e127557caf54c5a03e162e2d2ed3 refs/tags/v0.3.0
| uscan debug: 3bf44478955d29837b8fcd7832d82226e5dcc1dd refs/tags/v0.3.2
| uscan debug: a5be53d5e3733ed48023e4862b59ac12fa98be07 refs/tags/v0.3.5
| uscan debug: 219e163dc76d3cb27d8438816a453ccb686c553b refs/tags/v0.3.6
| uscan debug: 0f161a466b880cde864d8aa709ec04e1a86f445a refs/tags/v0.4.0
| uscan debug: 0ea3c7fb15b0b60bcc930d7cadc5148abb1ca724 refs/tags/v0.5.0
| uscan debug: ce75072f9dde5e89f41c26d374bb0b0891c691c7 refs/tags/v0.5.5
| uscan debug: c6a07043af9c185bdeb068ef7660991588714ea2 refs/tags/v0.6.0
| uscan debug: af5444a2ea33d717265d5bbf30a15347e2da4d05 refs/tags/v0.6.5
| uscan debug: 8ba07d042c11cb65ebce69fc1dc069905ec00e5e refs/tags/v0.7.0
| uscan debug: 5dcbf40066f5b6fba27af7bf610348dbd781751e refs/tags/v0.8.0
| uscan debug: 45aae4f721e37139a57420273b6e4252229141d0 refs/tags/v0.8.5
| uscan debug: cdb07d0d2bb6a4fe6d6a620aa4eec98f70fe6f78 refs/tags/v0.8.6
| uscan debug: 4c0583b2bd6557a09d66dfec84bab776242d0848 refs/tags/v0.9.0
| uscan debug: 37ca1069326aefc54bdb1722fcac1e81f90b2ff3 refs/tags/v0.9.5
| uscan debug: f24e5ad4740ce5f9829b14e499c9181f9bd7c76e refs/tags/v0.9.6
| uscan debug: 5a5cddb93d610bd59ec52a070b0f89a9ec842152 refs/tags/v0.9.7
| uscan debug: 975c3e64eb834b939e0d61dfc39fed8395afcc45 refs/tags/v0.9.8
| uscan debug: a5af15c770b66a61d0609a736e1db37495655559 refs/tags/v0.9.8.5
| uscan info: Found the following matching refs:
|      refs/tags/v0.9.8.5 (0.9.8.5)
|      refs/tags/v0.9.8 (0.9.8)
|      refs/tags/v0.9.7 (0.9.7)
|      refs/tags/v0.9.6 (0.9.6)
|      refs/tags/v0.9.5 (0.9.5)
|      refs/tags/v0.9.0 (0.9.0)
|      refs/tags/v0.8.6 (0.8.6)
|      refs/tags/v0.8.5 (0.8.5)
|      refs/tags/v0.8.0 (0.8.0)
|      refs/tags/v0.7.0 (0.7.0)
|      refs/tags/v0.6.5 (0.6.5)
|      refs/tags/v0.6.0 (0.6.0)
|      refs/tags/v0.5.5 (0.5.5)
|      refs/tags/v0.5.0 (0.5.0)
|      refs/tags/v0.4.0 (0.4.0)
|      refs/tags/v0.3.6 (0.3.6)
|      refs/tags/v0.3.5 (0.3.5)
|      refs/tags/v0.3.2 (0.3.2)
|      refs/tags/v0.3.0 (0.3.0)
|      refs/tags/v0.2.5 (0.2.5)
|      refs/tags/v0.2.0 (0.2.0)
|      refs/tags/v0.1.0 (0.1.0)
|      refs/heads/debian/latest ()
|      refs/heads/master ()
|      refs/heads/pristine-tar ()
|      refs/heads/uploading ()
|      refs/heads/upstream/latest ()
|      refs/heads/uscan-gitmodules-test ()
|      refs/remotes/debian/debian/latest ()
|      refs/remotes/debian/upstream/latest ()
|      refs/remotes/debian/uscan-gitmodules-test ()
|      refs/remotes/upstream/HEAD ()
|      refs/remotes/upstream/copilot ()
|      refs/remotes/upstream/fancy-chat-header ()
|      refs/remotes/upstream/feature-augment-buffer ()
|      refs/remotes/upstream/feature-capabilities ()
|      refs/remotes/upstream/feature-context ()
|      refs/remotes/upstream/feature-ollama-auto-update ()
|      refs/remotes/upstream/feature-org ()
|      refs/remotes/upstream/feature-overlays ()
|      refs/remotes/upstream/feature-presets ()
|      refs/remotes/upstream/feature-readme ()
|      refs/remotes/upstream/feature-state-machine ()
|      refs/remotes/upstream/feature-templates ()
|      refs/remotes/upstream/feature-tool-use ()
|      refs/remotes/upstream/feature-two-column-tools ()
|      refs/remotes/upstream/feature-vision ()
|      refs/remotes/upstream/ghtest ()
|      refs/remotes/upstream/issue-template ()
|      refs/remotes/upstream/issue-template-2 ()
|      refs/remotes/upstream/issue-templates ()
|      refs/remotes/upstream/kagi-fastgpt ()
|      refs/remotes/upstream/master ()
|      refs/remotes/upstream/multi-llm ()
|      refs/remotes/upstream/ollama-chat ()
|      refs/remotes/upstream/pr-814 ()
|      refs/remotes/upstream/revert-213-master ()
|      refs/remotes/upstream/scratch-cl-generic-dispatch ()
|      refs/remotes/upstream/streaming ()
|      refs/remotes/upstream/transient ()
| uscan info: Looking at $base = https://github.com/karthink/gptel with
|     $filepattern = (?:.*?/)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) found
|     $newfile     = refs/tags/v0.9.8.5
|     $newversion  = 0.9.8.5
|     $lastversion = 0.9.8
| uscan debug: line: get_upstream_url()
| uscan info: Upstream URL(+tag) to download is identified as    
https://github.com/karthink/gptel refs/tags/v0.9.8.5
| uscan debug: line: get_newfile_base()
| uscan info: Filename (filenamemangled) for downloaded file: 
emacs-gptel-0.9.8.5.tar.xz
| uscan debug: line: cmp_versions()
| Newest version of emacs-gptel on remote site is 0.9.8.5, local version is 
0.9.8
|  => Newer package available from:
|         => https://github.com/karthink/gptel refs/tags/v0.9.8.5
| uscan debug: line: download_file_and_sig()
| uscan info: Downloading and overwriting existing file: 
emacs-gptel-0.9.8.5.tar.xz
| uscan debug: Execute: rm -f ../emacs-gptel-0.9.8.5.tar.xz...
| uscan debug: Execute: git archive --format=tar --prefix=emacs-gptel-0.9.8.5/ 
--output=/home/manphiz/Projects/debian-packaging/emacs-gptel-0.9.8.5.tar 
refs/tags/v0.9.8.5...
| uscan debug: Execute: xz emacs-gptel-0.9.8.5.tar...
| uscan debug: Execute: rm -fr emacs-gptel-temporary.75591.git...
| uscan info: Successfully downloaded package: emacs-gptel-0.9.8.5.tar.xz
| uscan info: Start checking for common possible upstream OpenPGP signature 
files
| uscan info: End checking for common possible upstream OpenPGP signature files
| uscan info: Missing OpenPGP signature.
| uscan info: New orig.tar.* tarball version (oversionmangled): 0.9.8.5
| uscan debug: line: mkorigtargz()
| uscan info: Launch mk-origtargz with options:
|    --package emacs-gptel --version 0.9.8.5 --compression default --directory 
.. --copyright-file debian/copyright ../emacs-gptel-0.9.8.5.tar.xz
| Leaving ../emacs-gptel_0.9.8.5.orig.tar.xz where it is.
| uscan info: New orig.tar.* tarball version (after mk-origtargz): 0.9.8.5
| uupdate: PACKAGE     = "emacs-gptel" is in the top of debian/changelog
| uupdate: VERSION     = "0.9.8-1" is in the top of debian/changelog
| uupdate: EPOCH       = "" is epoch part of $VERSION
| uupdate: SVERSION    = "0.9.8-1" is w/o-epoch part of $VERSION
| uupdate: UVERSION    = "0.9.8" the upstream portion w/o-epoch of $VERSION
| uupdate: ../emacs-gptel-0.9.8.5 directory exists.
| uupdate: remove ../emacs-gptel-0.9.8.5 directory.
| uupdate: -> Overwrite to emacs-gptel_0.9.8.5-1.debian.tar.xz
| uscan info: Executing user specified script:
|    uupdate -f --verbose --upstream-version 0.9.8.5
| uupdate: Old: <epoch:><version>-<revision> = 0.9.8-1
| uupdate: Old: <epoch:>                     = 
| uupdate: Old:         <version>-<revision> = 0.9.8-1
| uupdate: Old:         <version>            = 0.9.8
| uupdate: New:         <version>            = 0.9.8.5
| dpkg-source: info: extracting emacs-gptel in emacs-gptel-0.9.8.5
| dpkg-source: info: unpacking emacs-gptel_0.9.8.5.orig.tar.xz
| dpkg-source: info: unpacking emacs-gptel_0.9.8.5-1.debian.tar.xz
| uupdate: Remember: Your current directory is changed back to the old source 
tree!
| uupdate: Do a "cd ../emacs-gptel-0.9.8.5" to see the new source tree and
|     edit it to be nice Debianized source.
| uscan debug: Keep git repo (../emacs-gptel-temporary.75591.git)
| uscan info: Scan finished
`----


[1] 
https://salsa.debian.org/debian/devscripts/-/blob/main/debian/changelog?ref_type=heads#L75
[2] 
https://salsa.debian.org/emacsen-team/emacs-gptel/-/blob/uscan-gitmodules-test/debian/watch?ref_type=heads

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

Kernel: Linux 6.12.30-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.20
ii  file                  1:5.46-5
ii  gpg                   2.4.7-21
ii  gpg-agent             2.4.7-21
ii  gpgv                  2.4.7-21
ii  libdpkg-perl          1.22.20
ii  libfile-dirlist-perl  0.05-3
ii  libfile-homedir-perl  1.006-2
ii  libfile-touch-perl    0.12-2
ii  libmoo-perl           2.005005-1
ii  libwww-perl           6.78-1
ii  patchutils            0.4.2-1
ii  perl                  5.40.1-3
ii  python3               3.13.3-1
ii  sensible-utils        0.0.25
ii  wdiff                 1.2.2-9

Versions of packages devscripts recommends:
ii  apt                         3.0.2
ii  curl                        8.14.1-1
ii  dctrl-tools                 2.24-3+b1
ii  debian-keyring              2025.04.25
ii  debian-tag2upload-keyring   1.1
ii  dput                        1.2.4
ii  equivs                      2.3.2
ii  libdistro-info-perl         1.13
ii  libencode-locale-perl       1.05-3
ii  libgit-wrapper-perl         0.048-2
ii  libgitlab-api-v4-perl       0.27-1
ii  libjson-perl                4.10000-1
ii  liblist-compare-perl        0.55-2
ii  liblwp-protocol-https-perl  6.14-1
ii  libsoap-lite-perl           1.27-3
ii  libstring-shellquote-perl   1.04-3
ii  libtry-tiny-perl            0.32-1
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-1
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.13+ds-1
ii  unzip                       6.0-29
ii  wget                        1.25.0-2
ii  xz-utils                    5.8.1-1

Versions of packages devscripts suggests:
ii  adequate                                  0.17.5+b4
pn  at                                        <none>
ii  autopkgtest                               5.49
pn  bls-standalone                            <none>
ii  build-essential                           12.12
pn  check-all-the-things                      <none>
ii  debhelper                                 13.24.2
pn  diffoscope                                <none>
pn  disorderfs                                <none>
pn  docker.io                                 <none>
ii  dose-extra                                7.0.0-6
pn  duck                                      <none>
ii  elpa-devscripts                           40.7
pn  faketime                                  <none>
ii  gnuplot-nox [gnuplot]                     6.0.2+dfsg1-1
pn  how-can-i-help                            <none>
ii  libauthen-sasl-perl                       2.1700-1
pn  libdbd-pg-perl                            <none>
pn  libterm-size-perl                         <none>
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-1
ii  mutt                                      2.2.13-1
ii  openssh-client [ssh-client]               1:10.0p1-5
ii  piuparts                                  1.6.0
ii  postgresql-client-17 [postgresql-client]  17.5-1
pn  pristine-lfs                              <none>
ii  python3-debianbts                         4.1.1
pn  python3-pycurl                            <none>
ii  quilt                                     0.68-1
ii  ratt                                      0.0~git20220805.e6b9cb4-1+b6
pn  reprotest                                 <none>
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