Your message dated Mon, 10 Mar 2025 11:27:28 +0100
with message-id <[email protected]>
and subject line Re: Bug#907775: devscripts: [uscan] fails to create git
archive, when download-version is specified
has caused the Debian Bug report #907775,
regarding devscripts: [uscan] fails to create git archive, when
download-version is specified
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
907775: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907775
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.18.3
Severity: normal
Hi,
uscan --download-version fails for git repositories, since the clone happens
"bare" and therfore no
tags are available.
See the log for details:
> uscan --download-version 2.5.1 --rename -v
uscan info: uscan (version 2.18.3) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="javaparser" version="1.0.11-1" (as seen in
debian/changelog)
uscan info: package="javaparser" version="1.0.11" (no epoch/revision)
uscan info: ./debian/changelog sets package="javaparser" version="1.0.11"
uscan info: Process watch file at: debian/watch
package = javaparser
version = 1.0.11
pkg_dir = .
uscan info: opts: mode=git,repack,compression=xz
uscan info: line: https://github.com/javaparser/javaparser
refs/tags/javaparser(?:-parent)?-([\d\.]+)
uscan info: Parsing mode=git
uscan info: Parsing repack
uscan info: Parsing compression=xz
uscan info: line: https://github.com/javaparser/javaparser
refs/tags/javaparser(?:-parent)?-([\d\.]+)
uscan info: Last orig.tar.* tarball version (from debian/changelog): 1.0.11
uscan info: Download the --download-version specified version: 2.5.1
uscan info: Execute: git ls-remote https://github.com/javaparser/javaparser
uscan info: Found the following matching refs:
...
refs/tags/javaparser-parent-3.1.2 (3.1.2)
refs/tags/javaparser-parent-3.1.1 (3.1.1)
refs/tags/javaparser-parent-3.1.0 (3.1.0)
refs/tags/javaparser-parent-3.0.1 (3.0.1)
refs/tags/javaparser-parent-3.0.0 (3.0.0)
refs/tags/javaparser-parent-2.5.1 (2.5.1)
refs/tags/javaparser-parent-2.5.0 (2.5.0)
refs/tags/javaparser-parent-2.4.0 (2.4.0)
refs/tags/javaparser-parent-2.3.0 (2.3.0)
refs/tags/javaparser-parent-2.2.2 (2.2.2)
...
uscan info: Looking at $base = https://github.com/javaparser/javaparser with
$filepattern = refs/tags/javaparser(?:-parent)?-([\d\.]+) found
$newfile = refs/tags/javaparser-parent-2.5.1
$newversion = 2.5.1 which is newer than
$lastversion = 1.0.11
uscan info: Upstream URL(+tag) to download is identified as
https://github.com/javaparser/javaparser refs/tags/javaparser-parent-2.5.1
uscan info: Filename (filenamemangled) for downloaded file:
javaparser-2.5.1.tar.xz
uscan: Newest version of javaparser on remote site is 2.5.1, specified download
version is 2.5.1
uscan info: Downloading upstream package: javaparser-2.5.1.tar.xz
uscan info: Execute: git clone --bare --depth=1
https://github.com/javaparser/javaparser ../javaparser-temporary.10008.git
Cloning into bare repository '../javaparser-temporary.10008.git'...
remote: Counting objects: 2256, done.
remote: Compressing objects: 100% (1512/1512), done.
remote: Total 2256 (delta 1120), reused 1090 (delta 568), pack-reused 0
Receiving objects: 100% (2256/2256), 7.00 MiB | 3.15 MiB/s, done.
Resolving deltas: 100% (1120/1120), done.
uscan info: Execute: git --git-dir=../javaparser-temporary.10008.git archive
--format=tar --prefix=javaparser-2.5.1/
--output=/home/ben/debian/javaparser/../javaparser-2.5.1.tar
refs/tags/javaparser-parent-2.5.1
fatal: Not a valid object name
uscan die: git archive failed
Regards
Benjamin
-- Package-specific info:
--- /etc/devscripts.conf ---
--- ~/.devscripts ---
export DEBSIGN_KEYID=FFA943F1
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) (ignored: LC_ALL set to
en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages devscripts depends on:
ii dpkg-dev 1.19.0.5
ii libc6 2.27-3
ii libfile-homedir-perl 1.004-1
ii perl 5.26.2-6
ii python3 3.6.6-1
ii sensible-utils 0.0.12
Versions of packages devscripts recommends:
ii apt 1.6.2
ii at 3.1.20-6
ii curl 7.60.0-2
ii dctrl-tools 2.24-2+b1
ii debian-keyring 2018.06.24
ii dput 1.0.2
ii equivs 2.1.0
ii fakeroot 1.22-2
ii file 1:5.33-3
ii gnupg 2.2.8-3
ii gnupg2 2.2.8-3
ii libdistro-info-perl 0.18
ii libdpkg-perl 1.19.0.5
ii libencode-locale-perl 1.05-1
ii libgit-wrapper-perl 0.048-1
ii liblist-compare-perl 0.53-1
ii liblwp-protocol-https-perl 6.07-2
ii libsoap-lite-perl 1.27-1
ii libstring-shellquote-perl 1.04-1
ii libtry-tiny-perl 0.30-1
ii liburi-perl 1.74-1
ii libwww-perl 6.34-1
ii licensecheck 3.0.31-2
ii lintian 2.5.91
ii man-db 2.8.3-2
ii patch 2.7.6-2
ii patchutils 0.3.4-2
ii python3-apt 1.6.1+b1
ii python3-debian 0.1.32
ii python3-magic 2:0.4.15-1
ii python3-requests 2.18.4-2
ii python3-unidiff 0.5.4-1
ii python3-xdg 0.25-4
ii strace 4.21-1
ii unzip 6.0-21
ii wdiff 1.2.2-2+b1
ii wget 1.19.5-1
ii xz-utils 5.2.2-1.3
Versions of packages devscripts suggests:
pn adequate <none>
pn autopkgtest <none>
pn bls-standalone <none>
ii build-essential 12.5
pn check-all-the-things <none>
pn cvs-buildpackage <none>
pn devscripts-el <none>
pn diffoscope <none>
pn disorderfs <none>
pn dose-extra <none>
pn duck <none>
pn faketime <none>
pn gnuplot <none>
ii gpgv 2.2.8-3
pn how-can-i-help <none>
ii libauthen-sasl-perl 2.1600-1
ii libfile-desktopentry-perl 0.22-1
pn libnet-smtps-perl <none>
pn libterm-size-perl <none>
ii libtimedate-perl 2.3000-2
pn libyaml-syck-perl <none>
ii mailutils [mailx] 1:3.4-1+b1
pn mozilla-devscripts <none>
ii mutt 1.10.0-1
ii openssh-client [ssh-client] 1:7.7p1-2
pn piuparts <none>
pn postgresql-client <none>
ii quilt 0.65-1
pn ratt <none>
pn reprotest <none>
pn svn-buildpackage <none>
ii w3m 0.5.3-36+b1
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 2.18.7
Hi,
The issue as reported could not be reproduced with the current version
of devscripts (2.25.5):
```
$ git clone https://salsa.debian.org/java-team/javaparser.git
$ cd javaparser
$ cat debian/watch
version=4
opts="mode=git,repack,dversionmangle=auto,compression=xz" \
https://github.com/javaparser/javaparser
refs/tags/javaparser(?:-parent)?-([\d\.]+)
$ uscan --download-version 2.5.1 --rename -v
uscan info: uscan (version 2.25.5) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="javaparser" version="3.26.1-1" (as seen in
debian/changelog)
uscan info: package="javaparser" version="3.26.1" (no epoch/revision)
uscan info: ./debian/changelog sets package="javaparser"
version="3.26.1"
uscan info: Process watch file at: debian/watch
package = javaparser
version = 3.26.1
pkg_dir = .
uscan info: opts: mode=git,repack,dversionmangle=auto,compression=xz
uscan info: line: https://github.com/javaparser/javaparser
refs/tags/javaparser(?:-parent)?-([\d\.]+)
uscan info: Parsing mode=git
uscan info: Parsing repack
uscan info: Parsing dversionmangle=auto
uscan info: Parsing compression=xz
uscan info: line: https://github.com/javaparser/javaparser
refs/tags/javaparser(?:-parent)?-([\d\.]+)
uscan info: Last orig.tar.* tarball version (from debian/changelog):
3.26.1
uscan info: Download the --download-version specified version:
(uversionmangled): 2.5.1
uscan info: Execute: git ls-remote
https://github.com/javaparser/javaparser
uscan info: Found the following matching refs:
refs/tags/javaparser-parent-3.26.3 (3.26.3)
[...snip...]
refs/tags/javaparser-parent-2.24.0 (2.24.0)
refs/tags/javaparser-parent-2.5.1 (2.5.1)
refs/tags/javaparser-parent-2.5.0 (2.5.0)
[...snip...]
uscan info: Looking at $base = https://github.com/javaparser/javaparser
with
$filepattern = refs/tags/javaparser(?:-parent)?-([\d\.]+) found
$newfile = refs/tags/javaparser-parent-2.5.1
$newversion = 2.5.1
$lastversion = 3.26.1
uscan info: Upstream URL(+tag) to download is identified as
https://github.com/javaparser/javaparser
refs/tags/javaparser-parent-2.5.1
uscan info: Filename (filenamemangled) for downloaded file:
javaparser-2.5.1.tar.xz
Newest version of javaparser on remote site is 2.5.1, specified download
version is 2.5.1
uscan info: Downloading upstream package: javaparser-parent-2.5.1
Cloning into bare repository '../javaparser-temporary.1215994.git'...
remote: Enumerating objects: 226, done.
remote: Counting objects: 100% (226/226), done.
remote: Compressing objects: 100% (175/175), done.
remote: Total 226 (delta 108), reused 99 (delta 37), pack-reused 0 (from
0)
Receiving objects: 100% (226/226), 182.79 KiB | 2.77 MiB/s, done.
Resolving deltas: 100% (108/108), done.
uscan info: Successfully downloaded upstream package:
javaparser-parent-2.5.1
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): 2.5.1
uscan info: Launch mk-origtargz with options:
--package javaparser --version 2.5.1 --rename --repack --compression
xz --directory .. --copyright-file debian/copyright
../javaparser-2.5.1.tar.xz
uscan warn: No files matched excluded pattern as the last matching glob:
*.jar
uscan warn: No files matched excluded pattern as the last matching glob:
*.aar
uscan warn: No files matched excluded pattern as the last matching glob:
.mvn/*
uscan warn: No files matched excluded pattern as the last matching glob:
mvnw*
Successfully renamed ../javaparser-2.5.1.tar.xz to
../javaparser_2.5.1.orig.tar.xz.
uscan info: New orig.tar.* tarball version (after mk-origtargz): 2.5.1
uscan info: Removing git repo (../javaparser-temporary.1215994.git)
uscan info: Scan finished
```
It looks like the reported issue is the same as #910709 that was fixed
with the release of devscripts 2.18.7 on 2018-10-25 so I will close this
bug report now.
Thank you for reporting the bug, which will now be closed. If you have
further comments please address them to [email protected], and the
maintainer will reopen the bug report if appropriate.
Best regards,
--
Julien Plissonneau Duquène
--- End Message ---