Open gregoa opened 3 years ago
This seems to be a load order issue. A fix is to change line 5 of List::Objects::WithUtils::Role::Array::WithJunctions from this:
use List::Objects::WithUtils::Array::Junction ();
To this:
require List::Objects::WithUtils::Array::Junction;
Sadly @avenj died a few years ago and I don't think anybody has taken over maintaining this distribution, so it may be a while before a fixed version is released on CPAN.
On Thu, 21 Jan 2021 15:24:28 -0800, Toby Inkster wrote:
This seems to be a load order issue. A fix is to change line 5 of List::Objects::WithUtils::Role::Array::WithJunctions from this:
use List::Objects::WithUtils::Array::Junction ();
To this:
require List::Objects::WithUtils::Array::Junction;
Indeed! Thanks for this quick fix.
Cheers, gregor
--
.''. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
. ' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
- NP: Dire Straits: Communiqué
Latest Role::Tiny may make this patch unnecessary...
On Sun, 24 Jan 2021 12:58:29 -0800, Toby Inkster wrote:
Latest Role::Tiny may make this patch unnecessary... https://metacpan.org/release/Role-Tiny
With librole-tiny-perl_2.002004 I still get
List::Objects::WithUtils::Role::Array::WithJunctions is not a Role::Tiny at /build/liblist-objects-withutils-perl-2.028003/blib/lib/List/Objects/WithUtils/Array.pm line 6.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl-base/parent.pm line 16.
BEGIN failed--compilation aborted at /build/liblist-objects-withutils-perl-2.028003/blib/lib/List/Objects/WithUtils/Array/Junction.pm line 8.
Compilation failed in require at /build/liblist-objects-withutils-perl-2.028003/blib/lib/List/Objects/WithUtils/Role/Array/WithJunctions.pm line 5.
BEGIN failed--compilation aborted at /build/liblist-objects-withutils-perl-2.028003/blib/lib/List/Objects/WithUtils/Role/Array/WithJunctions.pm line 5.
Compilation failed in require at /usr/share/perl5/Role/Tiny.pm line 51.
Compilation failed in require at (eval 46) line 1.
BEGIN failed--compilation aborted at (eval 46) line 1.
--
.''. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
. ' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
- NP: Sinéad O'Connor: Jerusalem
Ah, then patch it is. I'll see if I can take over maintenance of this distribution to get it patched on CPAN.
On Mon, 25 Jan 2021 01:50:54 -0800, Toby Inkster wrote:
Ah, then patch it is. I'll see if I can take over maintenance of this distribution to get it patched on CPAN.
Great, thank you.
We have the following bug reported to the Debian package of List-Objects-WithUtils, c.f. https://bugs.debian.org/980682
It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks!
My hunch is that this broke with an update of Role::Tiny from 2.001004 to 2.002003 in Debian.
------8<-----------8<-----------8<-----------8<-----------8<-----
------8<-----------8<-----------8<-----------8<-----------8<-----
Thanks for considering, gregor herrmann, Debian Perl Group