https://bugzilla.redhat.com/show_bug.cgi?id=2453339



--- Comment #12 from Ben Beasley <[email protected]> ---
(In reply to Parag Nemade from comment #11)
> I believe I have done the needed thing from my side and if anything is still
> remaining then I need help for
> https://bugzilla.redhat.com/show_bug.cgi?id=2455091

It looks like that review still needs something done about the Adobe Glyph List
license:

> - The new agl feature (“Support for mapping glyph names <-> unicode via the
>   Adobe glyph list”) relies on “code” (really, just a data table in Rust 
> source
>   form, data/generated/generated_agl.rs) generated from data/glyphlist.txt, 
> the
>   “Adobe Glyph List,” which is licensed BSD-3-Clause. This would seem to
>   require the license expression in Cargo.toml to be patched from “MIT OR
>   Apache-2.0” to “(MIT OR Apache-2.0) AND BSD-3-Clause”.
> 
>   I suggested this change upstream in
>   https://github.com/googlefonts/fontations/pull/1859. I think you need to
>   patch the license expression downstream in your cargo metadata patch, adding
>   a comment to package.cargo-toml-patch-comments linking the upstream PR.

----

(In reply to Parag Nemade from comment #11)
> I really don't know who will need https://github.com/harfbuzz/harfrust in
> future
> but my aim was to add this tool in Fedora which got stuck with package
> review of rust-read-fonts

Hmm, I do wonder if it’s worth building up and maintaining this tree of
libraries just in case an application comes along that wants them. I do expect
that they may be needed eventually, but there is no guarantee, and you may find
yourself maintaining them for several years before that happens.

----

(In reply to Parag Nemade from comment #11)
> Yes I used bugzilla commands and some other commands to auto update packages.
> I never liked rpmautospec, hence never thought to update my scripts for
> rpmautospec.
> I like more verbose way of adding Changelog in SPEC file itself.

Note that (if you’re not already doing so) Rust library packages need to be
updated by using rust2rpm to re-generate the spec file every time, because
changes in the upstream crate may need to be reflected in the package. For
example, upstream adding a new feature means the spec file gets a new
metapackage for that feature.

----

(In reply to Parag Nemade from comment #11)
> Sorry but I did not understand this. Probably can you give any specific
> example
> to understand this better? I know about packages which need compat package
> when 
> doing soname bump.

The docs for Rust’s flavor of SemVer are at
https://doc.rust-lang.org/cargo/reference/resolver.html#semver-compatibility.

If I am updating a Rust library from 1.1.3 to 1.2.0, that’s fine, and I don’t
have to coordinate it. If I am updating from 0.1.7 to 0.1.8, that’s also
compatible and fine (in contrast to regular SemVer, where any pre-1.0 update
could have breaking changes).

If I update a Rust library (let’s call it bogolib) from 0.1.7 to 0.2.0, now I
need to coordinate this with anything that depends on it. One option that
doesn’t require coordination is to simultaneously request a rust-bogolib0.1
compat package, and build rust-bogolib-0.2.0 and rust-bogolib0.1-0.1.7 in the
same side tag and ship them in the same update. The accumulation of compat
packages increases the maintenance burden, though, so it’s nice to avoid them
when they aren’t necessary. So suppose I use cratedeps to learn:

  rust-bogocli : (crate(bogolib/default) >= 0.1.3 with crate(bogolib/default) <
0.2.0~)

Now maybe we have rust-bogocli 1.2.3 packaged, but there’s an update available
to 1.2.4 that updates the bogolib dependency from 0.1.3 to 0.2.0. Then the
easiest thing I can do is to update bogolib and bogocli at the same time,
building them together in a side tag with "fedpkg chain-build" to ensure that
the SemVer-breaking library update is accompanied by any changes needed to keep
everything compatible.

If the latest rust-bogocli still wants bogolib 0.1 but I still want to update
the packaged bogolib to 0.2 (maybe because something else needs that version?),
and I really want to avoid the compat package, maybe I can patch rust-bogocli
to allow bogolib 0.2. This requires a bit more care and understanding, as I
have to verify that it isn’t affected by any breaking changes. I can read the
bogolib changelogs to see what triggered the SemVer bump: maybe it was just for
MSRV (minimum supported Rust version) reasons, or gross API changes where if
something compiles, it must not use the affected API, cases that are easy to
validate. (The harder case is where the SemVer break involves subtle behavioral
changes and the reverse dependency’s test suite might not be detailed enough to
catch them.) Ideally I would also send a PR upstream to the bogocli project
suggesting the bogolib 0.2 update. Again, the patched bogocli needs to be
shipped in the same side tag.

Sometimes I might update bogolib from 0.1.10 to 0.1.11 (compatible) and bogocli
from 1.4.5 to 1.5.0 (compatible), but bogocli 1.5 requires a minimum bogolib
version of 0.1.11. Again, a side tag keeps me from having to wait for the
bogolib update to go stable before I can ship bogocli. This kind of thing
happens a lot with tightly-coupled libraries that are developed in the same
source repository and where upstream often releases updates to multiple crates
at the same time.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2453339

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202453339%23c12

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to