Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-12 Thread Mark Hindley
Hi, On Tue, Jul 12, 2022 at 07:31:48AM +0100, Mark Hindley wrote: > > Corresponding untested patch against apt-cacher attached. > > The problem with this approach is that errors from apt-cacher's own evals will > be skipped as well. I think the patch below might be a better approach. It preserve

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread Mark Hindley
Niko, On Mon, Jul 11, 2022 at 09:26:12PM +0300, Niko Tyni wrote: > [apt-cacher maintainers: the context here is that URI.pm introduced an > optional dependency on Regexp::IPv6 by requiring it in an eval block, > but the apt-cacher __DIE__ handler exits when the require fails.] Thanks for includin

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread Niko Tyni
[apt-cacher maintainers: the context here is that URI.pm introduced an optional dependency on Regexp::IPv6 by requiring it in an eval block, but the apt-cacher __DIE__ handler exits when the require fails.] On Mon, Jul 11, 2022 at 05:35:17PM +0200, gregor herrmann wrote: > So we have: > - do noth

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread gregor herrmann
Thanks for your investigations and mails, that makes it a bit clearer for me :) Still, I'm not sure how to proceed: On Mon, 11 Jul 2022 11:11:16 +0100, Niko Tyni wrote: > apt-cacher is using $SIG{__DIE__}, which triggers even in eval blocks, > and doing an exit(1) from there. […] > I'd say this

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread Robert Luberda
gregor herrmann pisze: I'm a bit surprised, because the new code in 5.11 should behave better if Regexp::IPv6 is not available: Yes, but it looks like apt-cacher seems to set its own SIG{__DIE__} handler. +our $IPv6_re; + +sub _looks_like_raw_ip6_address { + my $addr = shift; + + if ( !$I

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread Niko Tyni
On Mon, Jul 11, 2022 at 10:36:30AM +0200, gregor herrmann wrote: > On Mon, 11 Jul 2022 00:12:11 +0200, Robert Luberda wrote: > > The following information is printed into apt-cacher.log: > > Mon Jul 11 00:02:52 2022|error [18513]: Can't locate Regexp/IPv6.pm in @INC > > (you may need to install t

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-11 Thread gregor herrmann
On Mon, 11 Jul 2022 00:12:11 +0200, Robert Luberda wrote: > The following information is printed into apt-cacher.log: > Mon Jul 11 00:02:52 2022|error [18513]: Can't locate Regexp/IPv6.pm in @INC > (you may need to install the Regexp:: > IPv6 module) Thanks for your bug report. I'm a bit surpri

Bug#1014730: liburi-perl: Breaks apt-cacher with "Can't locate Regexp/IPv6.pm" error

2022-07-10 Thread Robert Luberda
Package: liburi-perl Version: 5.11-1 Severity: serious Justification: Policy 7.2 Control: affects -1 apt-cacher After recent upgrade I've noticed that apt-cached does no longer work: Err:2 http://apt-testing.vox:3142/apt-cacher/debian bookworm InRelease 502 apt-cacher internal e