• uscan - inherit version number of component from main package (SVN)

    From Andreas Metzler@21:1/5 to All on Sat Oct 7 15:30:01 2023
    Hello,

    I would like to convert netpbm-free to a multiple component package, one
    for the main code http://netpbm.svn.code.sourceforge.net/p/netpbm/code/release_number/
    which is versioned
    and the docs from http://netpbm.svn.code.sourceforge.net/p/netpbm/code/userguide/
    with HEAD as matching‐pattern.

    The obvious problem is the versioning, I would like to make uscan simply use the main version for the userguide but afaik I cannot refer to it in uversionmangle.

    I can do
    uversionmangle=s/^0\.0/20.00/
    to makes uscan always (well unless upstream hits 20.00) consider
    userguide outdate and save it as
    ../netpbm-free_${netpbm main version}.orig-userguide.tar.xz
    with directory name
    netpbm-free-20.00~svn${revision}

    Afaik dpkg-source will ignore the dirname anyway, so this part should not
    be a problem.

    Is there anything else I am missing, is there a better approach?

    TIA, cu Andreas
    --
    `What a good friend you are to him, Dr. Maturin. His other friends are
    so grateful to you.'
    `I sew his ears on from time to time, sure'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Metzler@21:1/5 to hugh.mcmaster@outlook.com on Sun Oct 8 14:00:02 2023
    On 2023-10-08 Hugh McMaster <hugh.mcmaster@outlook.com> wrote:
    [...]
    Try this in your d/watch file:
    [...]
    # netpbm-free user guide
    opts="mode=svn, pgpmode=none, \
    component=userguide" \
    https://svn.code.sf.net/p/netpbm/code/userguide \
    HEAD ignore

    ----

    You want to match against HEAD to download the most recent version,
    and specify the 'ignore' keyword to avoid restricting the secondary
    tarball version.

    "ignore" was the missing piece. Thanks!

    You'll probably want to adjust the userguide tarball name (not the
    symlink) with filenamemangle.

    The default version (netpbm-free-0.0~svn4637.tar.xz) looks as good as
    any other static string I can think of. Only $version_found_for_netpbm-free would be a real (but minimal) improvement, but that seems to be impossible.

    cu Andreas
    --
    `What a good friend you are to him, Dr. Maturin. His other friends are
    so grateful to you.'
    `I sew his ears on from time to time, sure'

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