Hi Simon,

Thanks a lot for the merge, the signed branches and the Maintainer
role. From now on I'll work directly in debian/leancrypto, and the
tags I push will be signed (commits too).

I'm leaving debian-devel and Andreas out of this one, as you suggest.
Whether GnuTLS should link to leancrypto is a separate discussion, and
I'll bring it up with the GnuTLS maintainers in its own thread once
leancrypto is in the archive.

> As a minimal change, I suggest using 'major' (instead of
> 'major.minor') as the SONAME version for simplicity. Maybe you can
> make a patch to achieve that?

I can, but I'm afraid of what it would hide. Upstream's own version
policy, at the top of meson.build, says this about minor releases:

  "API compatible, ABI may change [...] Yet, consumer must be
  re-linked."

And it isn't just theory: the 1.9.0 changelog lists ABI changes in
lc_x509_cert_get_keyusage() and lc_x509_cert_oid_to_eku(), with the
same symbol names. If we ship libleancrypto.so.1, a future 1.10 with a
change like that would replace 1.9 under the same SONAME, and the
programs built against 1.9 would keep loading it and break at runtime,
instead of failing to install. The version nodes in version.lds don't
help there, since the symbol names and nodes can stay the same while
the arguments change. The package name would also become
libleancrypto1, so we couldn't have both versions installed during a
transition.

So I'd rather keep upstream's SONAME for now and try to get the fix
upstream: a library ABI that is stable within a major version, with
new version nodes for additions, and then a major-only SONAME makes
sense everywhere, not just in Debian. I'll add the documentation links
you mention to the upstream issue (#102).

As long as there are only a couple of reverse dependencies, a
transition on each minor release should be cheap. But if you still
prefer the Debian patch, I'll write it, and add a symbols file so that
at least dpkg-gensymbols tells us when a symbol disappears.

> Thanks for disclosing that. It puts me off to spend human review
> time right now

Understood, and fair enough. To save you some of that time: the
separate review pass I mentioned went over debian/copyright from a
fresh clone, including every file without Stephan's header, and it did
find real problems, all of them fixed before I wrote to you:

 * third-party code that had ended up under Files: * (binutils' pe.h,
   getopt, timecop.h, the IETF ASN.1 modules, part of the
   dilithium-cortexm code, the rustls self-tests, .clang-format);

 * a few wrong attributions from my generator script (for example a
   pure MIT assembly file labelled CC0, and build files picking up
   licenses by keyword);

 * catch-all aliases in d/lrc.config that were hiding exactly those
   gaps from licenserecon. They're gone, and licenserecon is still
   clean without them;

 * non-free documents that the first repack had left in.

What's left are judgment calls rather than errors, and that's where
your eyes would be most useful:

 1. internal/api/ext_x86_*.h, "derived in parts from GCC and LLVM"
    (point 2 in my previous mail). The GCC and LLVM exceptions in the
    Comment are my inference, the headers don't name them.

 2. rustls/src/self_tests.rs: MPL-2.0. The header only names the
    origin (fortanix/rustls-mbedtls-provider); I checked that the
    original file has no header either and that the repository is
    MPL-2.0. The Rust bindings aren't built anyway.

 3. Kyber, Dilithium and SPHINCS+ headers say "Public Domain" with a
    link to CC0. I mapped all of them to CC0-1.0, with a Comment.

Cheers,

David

-- 
David Marín Carreño <[email protected]>
gnoMint: https://davefx.github.io/gnoMint/

Reply via email to