Package: devscripts Version: 2.26.5 Control: found -1 devscripts/2.25.22~bpo13+1
With (d/watch): Version: 5 Source: https://github.com/tecnickcom/TCPDF.git Matching-Pattern: refs/tags/@ANY_VERSION@ Git-Export: all Mode: git Pgp-Mode: none Dversion-Mangle: auto Filename-Mangle: auto Repack: yes Repacksuffix: +dfsg Compression: xz End of output: uscan debug: line: get_newfile_base() uscan info: Matching target for filenamemangle: tcpdf-6.11.0.tar.xz uscan debug: safe_replace input="tcpdf-6.11.0.tar.xz" uscan debug: safe_replace with regexp=".*?[-_]*((?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))", replacement="tcpdf-$1", and flags="" uscan debug: After filenamemangle: tcpdf-6.11.0.tar.xz uscan die: filenamemangle failed for tcpdf-6.11.0.tar.xz [Devscripts::Uscan::Modes::_vcs: 34] at /usr/share/perl5/Devscripts/Uscan/Output.pm line 83, <REFS> line 185. In the manual it says: > You can use here "Filename-Mangle: auto", this is exactly the same than > "Filename-Mangle: s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/" So I apply: Filename-Mangle: s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/ And then it outputs: uscan debug: line: get_newfile_base() uscan info: Matching target for filenamemangle: tcpdf-6.11.0.tar.xz uscan debug: safe_replace input="tcpdf-6.11.0.tar.xz" uscan debug: safe_replace with regexp=".*?((?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))", replacement="tcpdf-$1", and flags="" uscan debug: After filenamemangle: tcpdf--6.11.0.tar.xz uscan info: Filename (filenamemangled) for downloaded file: tcpdf--6.11.0.tar.xz uscan debug: line: cmp_versions() Newest version of tcpdf on remote site is 6.11.0, local version is 6.10.1+dfsg (mangled local version is 6.10.1) => Newer package available from: => https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 uscan debug: line: download_file_and_sig() uscan info: Not downloading, using existing file: tcpdf--6.11.0.tar.xz uscan info: Missing OpenPGP signature. uscan info: New orig.tar.* tarball version (oversionmangled): 6.11.0 uscan debug: line: mkorigtargz() uscan info: Launch mk-origtargz with options: --package tcpdf --version 6.11.0 --repack-suffix +dfsg --repack --compression xz --directory .. --copyright-file debian/copyright ../tcpdf--6.11.0.tar.xz Successfully repacked ../tcpdf--6.11.0.tar.xz as ../tcpdf_6.11.0+dfsg.orig.tar.xz, deleting 36 files from it. uscan info: New orig.tar.* tarball version (after mk-origtargz): 6.11.0+dfsg uscan debug: Keep git repo (../tcpdf-temporary.89862.git) uscan info: Scan finished I tried: Filename-Mangle: s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/$1/ And then it outputs: uscan debug: line: get_newfile_base() uscan info: Matching target for filenamemangle: tcpdf-6.11.0.tar.xz uscan debug: safe_replace input="tcpdf-6.11.0.tar.xz" uscan debug: safe_replace with regexp=".*?((?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))", replacement="$1", and flags="" uscan debug: After filenamemangle: -6.11.0.tar.xz uscan info: Filename (filenamemangled) for downloaded file: -6.11.0.tar.xz uscan debug: line: cmp_versions() Newest version of tcpdf on remote site is 6.11.0, local version is 6.10.1+dfsg (mangled local version is 6.10.1) => Newer package available from: => https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 uscan debug: line: download_file_and_sig() uscan info: Downloading upstream package: https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 Use of uninitialized value in subroutine entry at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 135, <REFS> line 185. uscan debug: Execute: git clone --bare --depth=1 -b 6.11.0 https://github.com/tecnickcom/TCPDF.git ../tcpdf-temporary.90182.git... Clonage dans le dépôt nu '../tcpdf-temporary.90182.git' remote: Enumerating objects: 406, done. remote: Counting objects: 100% (406/406), done. remote: Compressing objects: 100% (311/311), done. remote: Total 406 (delta 132), reused 285 (delta 91), pack-reused 0 (from 0) Réception d'objets: 100% (406/406), 14.69 Mio | 8.69 Mio/s, fait. Résolution des deltas: 100% (132/132), fait. uscan debug: git --git-dir=. rev-parse --git-path info/ uscan debug: git --git-dir=. rev-parse --git-path info/attributes Use of uninitialized value $ver in concatenation (.) or string at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 265. Use of uninitialized value $ver in concatenation (.) or string at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 265. uscan debug: Execute: git --git-dir=. archive --format=tar --prefix=tcpdf-/ --output=/mnt/Dev/@debian/@phpmyadmin-team/tcpdf/tcpdf-.tar refs/tags/6.11.0... uscan debug: Execute: rm -fr tcpdf-temporary.90182.git... uscan info: Successfully downloaded upstream package: https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 uscan info: Renamed upstream package to: -6.11.0.tar.xz uscan info: Missing OpenPGP signature. uscan info: New orig.tar.* tarball version (oversionmangled): 6.11.0 uscan debug: line: mkorigtargz() uscan info: Launch mk-origtargz with options: --package tcpdf --version 6.11.0 --repack-suffix +dfsg --repack --compression xz --directory .. --copyright-file debian/copyright ../-6.11.0.tar.xz uscan error: Could not read ../-6.11.0.tar.xz: No such file or directory [Devscripts::Config: 364] I do not understand why it adds a "-", the previous example does it too. I tried: Filename-Mangle: s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@[email protected]/ And then it outputs: uscan debug: line: get_newfile_base() uscan info: Matching target for filenamemangle: tcpdf-6.11.0.tar.xz uscan debug: safe_replace input="tcpdf-6.11.0.tar.xz" uscan debug: safe_replace with regexp=".*?((?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz)))", replacement="tcpdf.xz", and flags="" uscan debug: After filenamemangle: tcpdf.xz uscan info: Filename (filenamemangled) for downloaded file: tcpdf.xz uscan debug: line: cmp_versions() Newest version of tcpdf on remote site is 6.11.0, local version is 6.10.1+dfsg (mangled local version is 6.10.1) => Newer package available from: => https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 uscan debug: line: download_file_and_sig() uscan info: Downloading upstream package: https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 Use of uninitialized value in subroutine entry at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 135, <REFS> line 185. uscan debug: Execute: git clone --bare --depth=1 -b 6.11.0 https://github.com/tecnickcom/TCPDF.git ../tcpdf-temporary.90909.git... Clonage dans le dépôt nu '../tcpdf-temporary.90909.git' remote: Enumerating objects: 406, done. remote: Counting objects: 100% (406/406), done. remote: Compressing objects: 100% (311/311), done. remote: Total 406 (delta 132), reused 286 (delta 91), pack-reused 0 (from 0) Réception d'objets: 100% (406/406), 14.70 Mio | 7.90 Mio/s, fait. Résolution des deltas: 100% (132/132), fait. uscan debug: git --git-dir=. rev-parse --git-path info/ uscan debug: git --git-dir=. rev-parse --git-path info/attributes Use of uninitialized value $ver in concatenation (.) or string at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 265. Use of uninitialized value $ver in concatenation (.) or string at /usr/share/perl5/Devscripts/Uscan/Downloader.pm line 265. uscan debug: Execute: git --git-dir=. archive --format=tar --prefix=tcpdf-/ --output=/mnt/Dev/@debian/@phpmyadmin-team/tcpdf/tcpdf-.tar refs/tags/6.11.0... uscan debug: Execute: rm -fr tcpdf-temporary.90909.git... uscan info: Successfully downloaded upstream package: https://github.com/tecnickcom/TCPDF.git refs/tags/6.11.0 uscan info: Renamed upstream package to: tcpdf.xz uscan info: Missing OpenPGP signature. uscan info: New orig.tar.* tarball version (oversionmangled): 6.11.0 uscan debug: line: mkorigtargz() uscan info: Launch mk-origtargz with options: --package tcpdf --version 6.11.0 --repack-suffix +dfsg --repack --compression xz --directory .. --copyright-file debian/copyright ../tcpdf.xz uscan error: Could not read ../tcpdf.xz: No such file or directory [Devscripts::Config: 364] Weird. Anyway you can see that the tracker also has the same issue in some way: https://tracker.debian.org/pkg/tcpdf "filenamemangle failed for tcpdf-6.10.1.tar.xz" I tried: Filename-Mangle: auto #Compression: xz And everything works when you disable the compression. This is weird, because it is the second time that the manual says something and when you force the default value then the behavior changes. For example "The default method is currently xz." and "Compression: xz". -- William Desportes

