Given that we've had to patch only 3 packages (in pkg-perl) over the[...] Maybe a wrapper could be tought for packages that have some optional dep on that? [...]
last decades and that the patch is trivial, and given that a
Mozilla::CA package doing different things on Debian than upstream
would cause confusion, I recommend against going that way.
Let's see what others on the list say.
Mmmmhhh, it's me or the idea of potentially patching 79 rev-deps on >Mozilla::CA seems not a great idea?
https://metacpan.org/module/Mozilla::CA/requires?p=1&size=100
Of course, probably some rdeps could be adaptive and skip Mozilla::CA
when not available, but anyway...
Gregor Hermann writes:
On Mon, 18 Sep 2023 17:48:33 +0200, Francesco P. Lovergine wrote:
Given that we've had to patch only 3 packages (in pkg-perl) over the[...] Maybe a wrapper could be tought for packages that have some optional dep on that? [...]
last decades and that the patch is trivial, and given that a
Mozilla::CA package doing different things on Debian than upstream
would cause confusion, I recommend against going that way.
Let's see what others on the list say.
For example, the Mozilla::CA requirement can be removed from >Alien::Build::Plugin::Fetch::HTTPTiny in libalien-build-perl and be
replaced by a dependency on ca-certificates.
https://github.com/PerlAlien/Alien-Build/blob/cfdc0e74364c05d62c50ed77345b480c93eb90ce/lib/Alien/Build/Plugin/Fetch/HTTPTiny.pm#L62
HTTP::Tiny uses the system's certificates if Mozilla::CA is not available.
https://github.com/chansen/p5-http-tiny/blob/2f17ba0a6c979b8c37feef830861eeb633484358/lib/HTTP/Tiny.pm#L1640
I've been using a personal libalien-build-perl package without
Mozilla::CA for a long time.
I would simply patch Mozilla::CA to have SSL_ca_file() returning the
Debian directory /usr/share/ca-certificates/mozilla instead of the
cacert.pem file. That would avoid to patch third-parties code that
eventually use explicitly the modules. This is compatible with the IO::Socket::SSL module.
Does it make sense?
Francesco P. Lovergine wrote:
I would simply patch Mozilla::CA to have SSL_ca_file() returning the
Debian directory /usr/share/ca-certificates/mozilla instead of the >>cacert.pem file. That would avoid to patch third-parties code that >>eventually use explicitly the modules. This is compatible with the >>IO::Socket::SSL module.
Does it make sense?
Fedora patches Mozilla::CA: >https://src.fedoraproject.org/rpms/perl-Mozilla-CA/tree/rawhide
I'd use /etc/ssl/certs/ca-certificates.crt instead of >/usr/share/ca-certificates/mozilla, though.
Francesco P. Lovergine wrote:
I would simply patch Mozilla::CA to have SSL_ca_file() returning theFedora patches Mozilla::CA: https://src.fedoraproject.org/rpms/perl-Mozilla-CA/tree/rawhide
Debian directory /usr/share/ca-certificates/mozilla instead of the cacert.pem file. That would avoid to patch third-parties code that eventually use explicitly the modules. This is compatible with the IO::Socket::SSL module.
Does it make sense?
I'd use /etc/ssl/certs/ca-certificates.crt instead of /usr/share/ca-certificates/mozilla, though.
On Wed, 20 Sep 2023 08:06:57 +0200, Andreas Vögele wrote:
Francesco P. Lovergine wrote:
I would simply patch Mozilla::CA to have SSL_ca_file() returning theFedora patches Mozilla::CA:
Debian directory /usr/share/ca-certificates/mozilla instead of the
cacert.pem file. That would avoid to patch third-parties code that
eventually use explicitly the modules. This is compatible with the
IO::Socket::SSL module.
Does it make sense?
https://src.fedoraproject.org/rpms/perl-Mozilla-CA/tree/rawhide
I'd use /etc/ssl/certs/ca-certificates.crt instead of
/usr/share/ca-certificates/mozilla, though.
I'm still not convinced that this is actually useful but if we go
that way, I also suggest to use /etc/ssl/certs/ca-certificates.crt.
Cf. liblwp-protocol-https-perl/debian/patches/cert.patch:
(Simplified pseudo-patch)
- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
+ $ssl_opts{SSL_ca_file} = '/etc/ssl/certs/ca-certificates.crt';
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 50:52:06 |
| Calls: | 12,115 |
| Calls today: | 6 |
| Files: | 15,010 |
| Messages: | 6,518,557 |
| Posted today: | 1 |