Bug#942274: uscan: handling several levels of http links

2023-12-22 Thread P. J. McDermott
On Sun, 13 Oct 2019 18:36:51 +0200 Samuel Thibault  wrote:
> Package: devscripts
> Version: 2.19.6
> Severity: wishlist
> 
> Hello,
> 
> For the hwloc package, there is on single webpage that references all
> releases.
> 
[...]
> 
> But this doesn't seem supported. Am I missing something or is handling
> several levels of http links not supported?

I've run into this with the 7kaa-music package:
https://salsa.debian.org/games-team/7kaa-music

Upstream lists versions at:
https://www.7kfans.com/download/
That page links to pages such as:
https://www.7kfans.com/download/v2.15.6.html
And those pages link to the tar archive:
https://www.7kfans.com/downloads/7kaa-music-2.15.tar.bz2

So I need uscan to somehow recurse from the main download page to the
latest version's page to find the tar archive link.

-- 
Patrick "P. J." McDermott:  http://www.pehjota.net/
Lead Developer, ProteanOS:  http://www.proteanos.com/
Founder and CEO, Libiquity: http://www.libiquity.com/



Bug#942274: uscan: handling several levels of http links

2019-10-13 Thread Samuel Thibault
Package: devscripts
Version: 2.19.6
Severity: wishlist

Hello,

For the hwloc package, there is on single webpage that references all
releases.

For instance,
https://www.open-mpi.org/projects/hwloc/

points at both
https://www-lb.open-mpi.org/software/hwloc/v2.1/
https://www-lb.open-mpi.org/software/hwloc/v2.0/

And those do provide links to the files. I had hardcoded the
https://www-lb.open-mpi.org/software/hwloc/v2.0/ in debian/watch, but
that doesn't catch the 2.1 release of course.

I tried something  like

https://www.open-mpi.org/software/hwloc/ \
https://www-lb.open-mpi.org/software/hwloc/(v[\d\.]+)/ \
https://download.open-mpi.org/release/hwloc/(v[\d\.]+)/hwloc(?:[_\-]v?|)@ANY_VERSION@@ARCHIVE_EXT@

But this doesn't seem supported. Am I missing something or is handling
several levels of http links not supported?

Samuel

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
DEBSIGN_KEYID="0xDB550E89F0FA54F3!"
DEBCHANGE_AUTO_NMU=no
DEBSIGN_PROGRAM="gpg --use-agent"

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-proposed-updates-debug'), (500, 'testing-proposed-updates'), (500, 
'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 
'proposed-updates'), (500, 'oldstable-proposed-updates-debug'), (500, 
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), 
(500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages devscripts depends on:
ii  dpkg-dev   1.19.7
ii  fakeroot   1.24-1
ii  file   1:5.37-5
ii  gnupg  2.2.17-3
ii  gnupg2 2.2.17-3
ii  gpgv   2.2.17-3
ii  libc6  2.29-2
ii  libfile-homedir-perl   1.004-1
ii  libfile-which-perl 1.23-1
ii  libipc-run-perl20180523.0-1
ii  libmoo-perl2.003004-2
ii  libstring-shellquote-perl  1.04-1
ii  libwww-perl6.39-1
ii  patchutils 0.3.4-2+b1
ii  perl   5.28.1-6
ii  python33.7.5-1
ii  sensible-utils 0.0.12
ii  wdiff  1.2.2-2+b1

Versions of packages devscripts recommends:
ii  apt 1.8.4
ii  at  3.1.23-1+b1
ii  curl7.66.0-1
ii  dctrl-tools 2.24-3+b1
ii  debian-keyring  2019.09.24
ii  dput-ng [dput]  1.28
ii  dupload 2.9.4
ii  equivs  2.2.0
ii  libdistro-info-perl 0.22
ii  libdpkg-perl1.19.7
ii  libencode-locale-perl   1.05-1
ii  libgit-wrapper-perl 0.048-1
ii  libgitlab-api-v4-perl   0.22-1
ii  liblist-compare-perl0.53-1
ii  liblwp-protocol-https-perl  6.07-2
ii  libsoap-lite-perl   1.27-1
ii  libtry-tiny-perl0.30-1
ii  liburi-perl 1.76-1
ii  licensecheck3.0.31-3
ii  lintian 2.25.0
ii  man-db  2.8.7-3
ii  patch   2.7.6-6
ii  python3-apt 1.8.4
ii  python3-debian  0.1.36
ii  python3-magic   2:0.4.15-2
ii  python3-requests2.21.0-1
ii  python3-unidiff 0.5.5-2
ii  python3-xdg 0.25-5
ii  strace  4.26-0.2
ii  unzip   6.0-25
ii  wget1.20.3-1+b1
ii  xz-utils5.2.4-1+b1

Versions of packages devscripts suggests:
ii  adequate 0.15.2
ii  autopkgtest  5.11
pn  bls-standalone   
ii  bsd-mailx [mailx]8.1.2-0.20180807cvs-1+b1
ii  build-essential  12.8
pn  check-all-the-things 
pn  cvs-buildpackage 
ii  debhelper12.6.1
pn  devscripts-el
pn  diffoscope   
pn  disorderfs   
pn  dose-extra   
ii  duck 0.13
ii  faketime 0.9.7-3
ii  gnuplot  5.2.7+dfsg1-5
ii  gnuplot-x11 [gnuplot]5.2.7+dfsg1-5
pn  how-can-i-help   
ii  libauthen-sasl-perl  2.1600-1
ii  libdbd-pg-perl   3.10.0-1
ii  libfile-desktopentry-perl0.22-1
pn  libnet-smtps-perl
pn  libterm-size-perl
ii  libtimedate-perl 2.3000-2
ii  libyaml-syck-perl1.31-1+b1
ii  mailutils [mailx]