• Re: Help with a watchfile for MUT

    From Soren Stoutner@21:1/5 to Debian Mentors List on Thu May 2 15:12:14 2024
    Copy: merkys@debian.org (Andrius Merkys)

    This is a multi-part message in MIME format.

    --nextPart2933808.shPVshEnxK
    Content-Transfer-Encoding: 7Bit
    Content-Type: text/plain; charset="us-ascii"

    Andrius,

    I am very much not a uscan expert, but the attached watch file appears to do what you want.

    Key changes are:

    1. Adding a dversionmangle line to each entry that modifies the Debian version number to extract the information that should be used for each upstream tarball. Your case is a little interesting because one of the tarballs has a different numbering scheme.

    2. Change the version entries to remove `group` and use `ignore` on the last entry.

    3. Add `uupdate` as the script at the end of the file.

    There are probably many other ways you could accomplish this.

    Soren

    PS. I find the following as a good way to test:

    uscan -vv --download-current-version

    For best results, delete all previously downloaded tarballs prior to running the command. -vv generally provides the right about of debugging verbosity.

    On Thursday, May 2, 2024 2:58:39 AM MST Andrius Merkys wrote:
    Hello,

    I am writing a watchfile for vst3sdk, you can find it on salsa [1]. I
    cannot get 'same' components downloaded, 'uscan
    --download-current-version' fails with the following:

    uscan warn: In debian/watch no matching hrefs for version in watch line
    https://github.com/steinbergmedia/vst3_base/tags (?:.*?/)?v([0-9\.]+_build_\d+)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|
    tar\.zstd?|
    zip|tgz|tbz|txz)) same

    It is strange that uscan does not seem to know the version to download (notice the empty space after 'no matching hrefs for version' in the
    error message).

    I would appreciate any help with this.

    [1] https://salsa.debian.org/merkys/vst3sdk/-/raw/master/debian/watch

    Best,
    Andrius


    --
    Soren Stoutner
    soren@debian.org
    --nextPart2933808.shPVshEnxK
    Content-Disposition: attachment; filename="watch"
    Content-Transfer-Encoding: 7Bit
    Content-Type: text/plain; charset="x-UTF_8J"; name="watch"

    version=4 opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-$1$2%, uversionmangle=s/_build_/\./, dversionmangle=s/\+.*//" \
    https://github.com/steinbergmedia/vst3sdk/tags \
    (?:.*?/)?v([0-9\.]+_build_\d+)@ARCHIVE_EXT@

    opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-base-$1$2%, uversionmangle=s/_build_/\./, dversionmangle=s/\+.*//, component=base" \
    https://github.com/steinbergmedia/vst3_base/tags \
    (?:.*?/)?v([0-9\.]+_build_\d+)@ARCHIVE_EXT@ same

    opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-cmake-$1$2%, uversionmangle=s/_build_/\./, dversionmangle=s/\+.*//, component=cmake" \
    https://github.com/steinbergmedia/vst3_cmake/tags \
    (?:.*?/)?v([0-9\.]+_build_\d+)@ARCHIVE_EXT@ same

    ## doc/ contains a lot of files diagnosed as source-is-missing by lintian
    # opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-doc-$1$2%, dversionmangle=s/\+.*//, component=doc" \
    # https://github.com/steinbergmedia/vst3_doc/tags \
    # (?:.*?/)?v?@ANY_VERSION@_build_\d+@ARCHIVE_EXT@ same

    opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-pluginterfaces-$1$2%, uversionmangle=s/_build_/\./, dversionmangle=s/\+.*//, component=pluginterfaces" \
    https://github.com/steinbergmedia/vst3_pluginterfaces/tags \
    (?:.*?/)?v([0-9\.]+_build_\d+)@ARCHIVE_EXT@ same

    opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-public.sdk-$1$2%, uversionmangle=s/_build_/\./, dversionmangle=s/\+.*//, component=public.sdk" \
    https://github.com/steinbergmedia/vst3_public_sdk/tags \
    (?:.*?/)?v([0-9\.]+_build_\d+)@ARCHIVE_EXT@ same

    # opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-tutorials-$1$2%, dversionmangle=s/\+.*//, component=tutorials" \
    # https://github.com/steinbergmedia/vst3_tutorials/tags \
    # (?:.*?/)?v?@ANY_VERSION@_build_\d+@ARCHIVE_EXT@ same

    opts="filenamemangle=s%v@ANY_VERSION@_build_\d+(@ARCHIVE_EXT@)%@PACKAGE@-vstgui4-$1$2%, dversionmangle=s/.*~//, uversionmangle=s/_/\./g, component=vstgui4" \
    https://github.com/steinbergmedia/vstgui/tags \
    (?:.*?/)?vstgui(4_\d+_\d+)@ARCHIVE_EXT@ ignore uupdate

    --nextPart2933808.shPVshEnxK--

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmY0D74ACgkQwufLJ66w tgOzLRAAlk6Jukq3T4zQkDrzTc3aWovgdWH2JmY6ST4YzMo9mFFMtmH7uuXSVDJK SDGhUXNc33X5vdjhgsdocyWq+/diz2dyOoz/GpvzMuNtcbkTDgSVgZghXPjPM291 5ShsnN3qUiVYH/QEVNiiXQjs+iDPQWVzcnfM9vqwgwahhJipcwcUw6y1d+z098DE XvI0cPL1xkV7Cq9MIDF2gqbVyZwL4srjMonP/BSQt2QrUKiTgtD5vELL2xpdzV/u bKFIoMA6S/LjEb4RkFVNNTtG16uW5WECH/uGonXYRuInl6mlF2uz9MKhufAV+oJx jD7bvGZwOgwEAAj0HwYJMRkzpFt6X7Ra5B7mDun4Jms5QVHUfdB+0dpHotH7JAsR diOdG43N+O2g0Id9p++0kB6aqQV7A4ahvvqaeHfMnbls2VfiEKF9J14KOfWg+Sqk hSUrKbYttNQXq99Gz+qYakl4gkFV3iqJY3n/4O+uA5TIe/iyP38MvRhMXT4rh/JD 5bMrZOF4eriQp+zhOXQSv/BrOoDaftPnf5a0o7cc9bI7ICpK5BShwK+65/Cdnim0 0ZxLe8q2QZR4qKjjnS3cLgu2HQjUubEyl7wtb2Dw4dD4ARKFV1VNNdO1sB+tHt7+ N+ROUMg41vlPenIWMvxax+TyC+nMXcCV3xAgjMb8SvVlLUq3KCo=
    =DMqJ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)