Hi,
I have upstream's git repository configured as a remote in my work tree.
Upstream uses submodules, which get squashed into a single archive by
uscan, and that archive is imported into the git repo for the packages.
As a result, when uscan is run, the checked out branch (with the
debian/watch file) does not have submodules. uscan detects that a remote
for the upstream git exists in the current repository, and tries to reuse
that, which is commendable, but fails to do so:
$ git clone https://salsa.debian.org/electronics-team/nextpnr.git
$ cd nextpnr
$ git remote add yosys https://github.com/YosysHQ/nextpnr.git
$ git fetch yosys
$ uscan
Newest version of nextpnr on remote site is 0.11.1, local version is 0.10
=> Newer package available from:
=> https://github.com/YosysHQ/nextpnr.git refs/tags/nextpnr-0.11.1
fatal: Use '--all' if you really want to deinitialize all submodules
Successfully symlinked ../nextpnr-0.11.1.tar.gz to ../nextpnr_0.11.1.orig.tar.gz.
$ tar -tzvvf ../nextpnr-0.11.1.tar.gz nextpnr-0.11.1/tests | wc -l
1
The "tests" submodule is missing from the generated archive.
If the remote for upstream is not configured, uscan performs a normal clone
in a separate directory, which works.
Simon
- -- Package-specific info:
- --- /etc/devscripts.conf ---
Empty.
- --- ~/.devscripts ---
Not present
- -- System Information:
Debian Release: 13.6
APT prefers stable-security
APT policy: (990, 'stable-security'), (990, 'stable'), (500, 'stable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, riscv64
Kernel: Linux 7.1.8+deb13-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 /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages devscripts depends on:
ii dpkg-dev 1.22.22
ii file 1:5.46-5
ii gpg 2.4.7-21+deb13u1+b4
ii gpg-agent 2.4.7-21+deb13u1+b4
ii gpgv 2.4.7-21+deb13u1+b4
ii libconfig-inifiles-perl 3.000003-3+deb13u1
ii libdpkg-perl 1.22.22
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 libyaml-libyaml-perl 0.903.0+ds-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.0.3
ii curl 8.14.1-2+deb13u4
ii dctrl-tools 2.24-3+b1
ii debian-keyring 2025.07.26
ii debian-tag2upload-keyring 1.1
ii diffstat 1.67-1
ii dput-ng [dput] 1.44
ii equivs 2.3.2
ii git-debpush 16.7~bpo13+1
ii libdistro-info-perl 1.13
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 mmdebstrap 1.5.7-1+deb13u1
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+deb13u1
ii python3-unidiff 0.7.5-2
ii python3-xdg 0.28-2
ii sbuild 0.89.3+deb13u4
ii strace 6.13+ds-1
ii unzip 6.0-29+deb13u1
ii wget 1.25.0-2
ii xz-utils 5.8.1-1+deb13u1
Versions of packages devscripts suggests:
pn adequate <none>
ii at 3.2.5-2.2
ii autopkgtest 5.49
pn bls-standalone <none>
pn bsd-mailx | mailx <none>
ii build-essential 12.12
pn check-all-the-things <none>
ii debhelper 13.24.2
pn diffoscope <none>
pn disorderfs <none>
ii docker.io 26.1.5+dfsg1-9+deb13u1
pn dose-extra <none>
pn duck <none>
pn elpa-devscripts <none>
pn faketime <none>
ii gnuplot-qt [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 msmtp-mta [mail-transport-agent] 1.8.28-3
ii mutt 2.2.13-1+deb13u1
ii openssh-client [ssh-client] 1:10.0p1-7+deb13u4
pn piuparts <none>
pn postgresql-client <none>
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>
pn svn-buildpackage <none>
ii w3m 0.5.3+git20230121-2.1
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQFDBAEBCgAtFiEEtjuqOJSXmNjSiX3Tfr04e7CZCBEFAmqNs80PHHNqckBkZWJp
YW4ub3JnAAoJEH69OHuwmQgR9GUIAIX1h2jbtPwuqykKr2vK2Peo6rG20RcXkiPe
mz4KXfON5wwgZeEL/w/pz3HlfjN1YaulH7h8Bd/DTfH+uIc2RWaKkW0Xow0qgGa2
0oyxPzC785s5j0WiZ/rMtPU6D4IGoUUNPwOiKbZLZ47PExjNG2rygZTxonBuJ2/K
OVE1ReU5tORhjPr+Tc1UyOMKhVAGjXmWEsDPXKzi+6Kylp86E1XdqsH/DWi+7xzg
DxKX7iWDaYworqludexGyBTKeHgAwgtnrmAxzSvsK0mJqJnMVfHzAjQZ979eT5gR
epWcYRwWkIS1C/FXuBz6K+4cOaQmsUzvqSrhlqajQuJ1xFvhpO4=
=vgkn
-----END PGP SIGNATURE-----