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 [uscan] problem with creating orig.tar from git tag
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.1
Severity: normal

Hi,

uscan in version 2.18.1 is no longer able to create a new orig.tar from a tag in a git repository.

At the end are the results from version 2.17.12, which is doing fine.

  Thorsten


debian@devel:~/devscript-bug$ LANG=C dpkg -l devscripts
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version           Architecture      Description
+++-========================-=================-=================-======================================================
ii  devscripts               2.18.1            amd64             scripts to 
make the life of a Debian Package maintaine


debian@devel:~/devscript-bug$ LANG=C apt-get source osmo-trx=0.2.0-2
Reading package lists... Done
NOTICE: 'osmo-trx' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian-mobcom-team/osmo-trx.git
Please use:
git clone https://salsa.debian.org/debian-mobcom-team/osmo-trx.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 140 kB of source archives.
Get:1 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (dsc) 
[2275 B]
Get:2 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (tar) 
[132 kB]
Get:3 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (diff) 
[5660 B]
Fetched 140 kB in 1s (94.3 kB/s)
dpkg-source: info: extracting osmo-trx in osmo-trx-0.2.0
dpkg-source: info: unpacking osmo-trx_0.2.0.orig.tar.xz
dpkg-source: info: unpacking osmo-trx_0.2.0-2.debian.tar.xz
dpkg-source: info: applying 02_no_march_native.patch

debian@devel:~/devscript-bug$ cd osmo-trx-0.2.0/

debian@devel:~/devscript-bug/osmo-trx-0.2.0$ LANG=C uscan --verbose --download

uscan info: uscan (version 2.18.1) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="osmo-trx" version="0.2.0-2" (as seen in debian/changelog)
uscan info: package="osmo-trx" version="0.2.0" (no epoch/revision)
uscan info: ./debian/changelog sets package="osmo-trx" version="0.2.0"
uscan info: Process watch file at: debian/watch
    package = osmo-trx
    version = 0.2.0
    pkg_dir = .
uscan info: opts: mode=git, dversionmangle=s/\+ds//
uscan info: line: https://git.osmocom.org/osmo-trx refs/tags/([\d\.]+) debian 
uupdate
uscan info: Parsing mode=git
uscan info: Parsing  dversionmangle=s/\+ds//
uscan info: line: https://git.osmocom.org/osmo-trx refs/tags/([\d\.]+) debian 
uupdate
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.2.0
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.2.0
uscan info: Execute: git ls-remote https://git.osmocom.org/osmo-trx
uscan info: Found the following matching refs:
     refs/tags/0.3.0 (0.3.0)
     refs/tags/0.2.0 (0.2.0)
     HEAD ()
     refs/heads/achemeris/2sector ()
     refs/heads/achemeris/diversity ()
     refs/heads/achemeris/empty-bursts ()
     refs/heads/achemeris/load_testing ()
     refs/heads/achemeris/phase_err_meas ()
     refs/heads/achemeris/poweroff_hack ()
     refs/heads/achemeris/ramp-mask ()
     refs/heads/achemeris/rtmd ()
     refs/heads/achemeris/stable_threads ()
     refs/heads/coverity ()
     refs/heads/fairwaves/625 ()
     refs/heads/fairwaves/WIP-decoder ()
     refs/heads/fairwaves/master ()
     refs/heads/fairwaves/master-old ()
     refs/heads/fairwaves/no-demod ()
     refs/heads/fairwaves/old-master ()
     refs/heads/fix-osmogsmtester ()
     refs/heads/kluchnikov/recv-timeout-fix ()
     refs/heads/laforge/lime ()
     refs/heads/master ()
     refs/heads/max/fix ()
     refs/heads/ms ()
     refs/heads/pmaier/cpudetect ()
     refs/heads/ramp-mask ()
     refs/heads/rel-0.3.0 ()
     refs/heads/ttsou/master-compat ()
     refs/heads/ttsou/siggen ()
     refs/tags/fairwaves/0.1.10-1 ()
     refs/tags/fairwaves/0.1.10-2 ()
     refs/tags/fairwaves/0.1.10-3 ()
     refs/tags/fairwaves/0.1.11 ()
     refs/tags/fairwaves/0.1.9 ()
     refs/tags/fairwaves/0.1.9-1 ()
uscan info: Looking at $base = https://git.osmocom.org/osmo-trx with
    $filepattern = refs/tags/([\d\.]+) found
    $newfile     = refs/tags/0.3.0
    $newversion  = 0.3.0 which is newer than
    $lastversion = 0.2.0
uscan info: Upstream URL(+tag) to download is identified as    
https://git.osmocom.org/osmo-trx refs/tags/0.3.0
uscan info: Filename (filenamemangled) for downloaded file: 
osmo-trx-0.3.0.tar.xz
uscan: Newest version of osmo-trx on remote site is 0.3.0, local version is 
0.2.0
uscan:    => Newer package available from
      https://git.osmocom.org/osmo-trx refs/tags/0.3.0
uscan info: Downloading upstream package: osmo-trx-0.3.0.tar.xz
uscan info: Execute: git clone --bare --depth=1 
https://git.osmocom.org/osmo-trx ../osmo-trx-temporary.2327.git
Cloning into bare repository '../osmo-trx-temporary.2327.git'...
fatal: dumb http transport does not support shallow capabilities
uscan info: Execute: git --git-dir=../osmo-trx-temporary.2327.git archive 
--format=tar --prefix=osmo-trx-0.3.0/ 
--output=/home/debian/devscript-bug/osmo-trx-0.2.0/../osmo-trx-0.3.0.tar 
refs/tags/0.3.0
fatal: Not a git repository: '../osmo-trx-temporary.2327.git'
uscan die: git archive failed



=======================================================================



debian@devel:~/devscript-bug$ LANG=C dpkg -l devscripts Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version           Architecture      Description
+++-========================-=================-=================-======================================================
ii  devscripts               2.17.12           amd64             scripts to 
make the life of a Debian Package maintaine


debian@devel:~/devscript-bug$ LANG=C apt-get source osmo-trx=0.2.0-2
Reading package lists... Done
NOTICE: 'osmo-trx' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian-mobcom-team/osmo-trx.git
Please use:
git clone https://salsa.debian.org/debian-mobcom-team/osmo-trx.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 140 kB of source archives.
Get:1 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (dsc) 
[2275 B]
Get:2 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (tar) 
[132 kB]
Get:3 http://ftp2.de.debian.org/debian unstable/main osmo-trx 0.2.0-2 (diff) 
[5660 B]
Fetched 140 kB in 1s (164 kB/s)
dpkg-source: info: extracting osmo-trx in osmo-trx-0.2.0
dpkg-source: info: unpacking osmo-trx_0.2.0.orig.tar.xz
dpkg-source: info: unpacking osmo-trx_0.2.0-2.debian.tar.xz
dpkg-source: info: applying 02_no_march_native.patch


debian@devel:~/devscript-bug$ cd osmo-trx-0.2.0/

uscan info: uscan (version 2.17.12) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="osmo-trx" version="0.2.0-2" (as seen in debian/changelog)
uscan info: package="osmo-trx" version="0.2.0" (no epoch/revision)
uscan info: ./debian/changelog sets package="osmo-trx" version="0.2.0"
uscan info: Process ./debian/watch (package=osmo-trx version=0.2.0)
uscan info: opts: mode=git, dversionmangle=s/\+ds//
uscan info: line: https://git.osmocom.org/osmo-trx refs/tags/([\d\.]+) debian 
uupdate
uscan info: Parsing mode=git
uscan info: Parsing  dversionmangle=s/\+ds//
uscan info: line: https://git.osmocom.org/osmo-trx refs/tags/([\d\.]+) debian 
uupdate
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.2.0
uscan info: Last orig.tar.* tarball version (dversionmangled): 0.2.0
uscan info: Execute: git ls-remote https://git.osmocom.org/osmo-trx
uscan info: Found the following matching refs:
     refs/tags/0.3.0 (0.3.0)
     refs/tags/0.2.0 (0.2.0)
     HEAD ()
     refs/heads/achemeris/2sector ()
     refs/heads/achemeris/diversity ()
     refs/heads/achemeris/empty-bursts ()
     refs/heads/achemeris/load_testing ()
     refs/heads/achemeris/phase_err_meas ()
     refs/heads/achemeris/poweroff_hack ()
     refs/heads/achemeris/ramp-mask ()
     refs/heads/achemeris/rtmd ()
     refs/heads/achemeris/stable_threads ()
     refs/heads/coverity ()
     refs/heads/fairwaves/625 ()
     refs/heads/fairwaves/WIP-decoder ()
     refs/heads/fairwaves/master ()
     refs/heads/fairwaves/master-old ()
     refs/heads/fairwaves/no-demod ()
     refs/heads/fairwaves/old-master ()
     refs/heads/fix-osmogsmtester ()
     refs/heads/kluchnikov/recv-timeout-fix ()
     refs/heads/laforge/lime ()
     refs/heads/master ()
     refs/heads/max/fix ()
     refs/heads/ms ()
     refs/heads/pmaier/cpudetect ()
     refs/heads/ramp-mask ()
     refs/heads/rel-0.3.0 ()
     refs/heads/ttsou/master-compat ()
     refs/heads/ttsou/siggen ()
     refs/tags/fairwaves/0.1.10-1 ()
     refs/tags/fairwaves/0.1.10-2 ()
     refs/tags/fairwaves/0.1.10-3 ()
     refs/tags/fairwaves/0.1.11 ()
     refs/tags/fairwaves/0.1.9 ()
     refs/tags/fairwaves/0.1.9-1 ()
uscan info: Upstream URL (downloadurlmangled):
   https://git.osmocom.org/osmo-trx refs/tags/0.3.0
uscan info: Newest upstream tarball version selected for download 
(uversionmangled): 0.3.0
uscan info: Download filename (filenamemangled): osmo-trx-0.3.0.tar.xz
uscan: Newest version of osmo-trx on remote site is 0.3.0, local version is 
0.2.0
uscan:    => Newer package available from
      https://git.osmocom.org/osmo-trx refs/tags/0.3.0
uscan info: Downloading upstream package: osmo-trx-0.3.0.tar.xz
uscan info: Execute: git clone --bare https://git.osmocom.org/osmo-trx 
../osmo-trx.4086.git
Cloning into bare repository '../osmo-trx.4086.git'...
uscan info: Execute: git archive --format=tar --prefix=osmo-trx-0.3.0/ 
--output=/home/debian/devscript-bug/osmo-trx-0.2.0/../osmo-trx-0.3.0.tar 
refs/tags/0.3.0
uscan info: Execute: xz osmo-trx-0.3.0.tar
uscan info: Successfully downloaded package: osmo-trx-0.3.0.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.3.0
uscan info: Executing internal command:
   mk-origtargz --package osmo-trx --version 0.3.0 --compression xz --directory 
.. --copyright-file debian/copyright ../osmo-trx-0.3.0.tar.xz
uscan info: New orig.tar.* tarball version (after mk-origtargz): 0.3.0
uscan info: Successfully repacked ../osmo-trx-0.3.0.tar.xz as 
../osmo-trx_0.3.0.orig.tar.xz, deleting 1 files from it.
uscan info: Executing user specified script:
   uupdate -f --verbose --upstream-version 0.3.0
uupdate: PACKAGE     = "osmo-trx" is in the top of debian/changelog
uupdate: VERSION     = "0.2.0-2" is in the top of debian/changelog
uupdate: EPOCH       = "" is epoch part of $VERSION
uupdate: SVERSION    = "0.2.0-2" is w/o-epoch part of $VERSION
uupdate: UVERSION    = "0.2.0" the upstream portion w/o-epoch of $VERSION
uupdate: Old: <epoch:><version>-<revision> = 0.2.0-2
uupdate: Old: <epoch:> = uupdate: Old: <version>-<revision> = 0.2.0-2
uupdate: Old:         <version>            = 0.2.0
uupdate: New:         <version>            = 0.3.0
uupdate: -> Copy to      osmo-trx_0.3.0-1.debian.tar.xz
dpkg-source: info: extracting osmo-trx in osmo-trx-0.3.0
dpkg-source: info: unpacking osmo-trx_0.3.0.orig.tar.xz
dpkg-source: info: unpacking osmo-trx_0.3.0-1.debian.tar.xz
uupdate: Remember: Your current directory is changed back to the old source 
tree!
uupdate: Do a "cd ../osmo-trx-0.3.0" to see the new source tree and
    edit it to be nice Debianized source.
uscan info: Scan finished

--- 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 ---

Reply via email to