• Mandatory README.source for rust packages ?

    From Matthias Geiger@21:1/5 to All on Fri Mar 7 18:10:02 2025
    This is a MIME formatted message with attachments. Use a MIME-compliant client to view it properly.
    This is a MIME formatted message with attachments. Use a MIME-compliant client to view it properly.
    --bzz_bzz__bzz__49c1yc14x2dwsrj7m7ofq2v5hs3g
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset=utf-8; format=flowed

    Hi all,
    I'd like to adopt a mandatory README.source for rust packages. This
    details how d/control should be updated automatically with
    debcargo. I attached my draft. Let me know if you have any thoughts/comments/critique. If no-one objects I'll add it to every rust
    gnome app so future updates can happen more streamlined.
    In my experience updating it like that saves a lot of time for new
    upstream releases.

    best,

    werdahias
    --bzz_bzz__bzz__49c1yc14x2dwsrj7m7ofq2v5hs3g
    Content-Type: text/x-readme; name="README.source"; charset="utf-8" Content-Disposition: attachment
    Content-Transfer-Encoding: 8bit

    Updating debian/control
    =======================

    After the post-import of a new upstream release the build-dependencies should be updated.
    To automate the process of parsing Cargo.toml you can use debcargo (>= 2.7.8) like this:
    $ debcargo deb-dependencies Cargo.toml | xclip (or | wl-copy).
    Note that Cargo.toml might be in a subdirectory, so adjust the absolute path accordingly.
    Then update d/control from the debcargo-generated dependencies. Note that you might need to match
    the dependencies with the current pacakged ones with a patch relaxing the crate version(s) as usual.
    In that case, add / refresh the patch, apply it, and re-run above command. This ensures no dependency is
    missed.
    --bzz_bzz__bzz__49c1yc14x2dwsrj7m7ofq2v5hs3g--
    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCZ8sl/QAKCRDsvtu2B7my viOMAQDOX6tJ9bdi5pEk84NwPmqyeQBEWu7Q5vAVLF+/cs06vAEAh5nb1jPp22xb +sRjWieJeDe/FaPVc3L+XJhtrOV1NQ8=
    =tiU9
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to [email protected] on Sat Mar 29 01:40:01 2025
    On Fri, Mar 7, 2025 at 12:00 PM Matthias Geiger <[email protected]> wrote:
    I'd like to adopt a mandatory README.source for rust packages. This
    details how d/control should be updated automatically with
    debcargo. I attached my draft. Let me know if you have any thoughts/comments/critique. If no-one objects I'll add it to every rust
    gnome app so future updates can happen more streamlined.
    In my experience updating it like that saves a lot of time for new
    upstream releases.

    Yes, you can add debian/README.source to packages.

    Is it possible to simplify the version number so instead of this:
    librust-uuid-1+v4-dev (>= 1.10-~~)
    it looks like this:
    librust-uuid-1+v4-dev (>= 1.10)

    That example is from the debian/control for the fragments Debian package.

    Thank you,
    Jeremy Bícha

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