Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBC: Blead Breaks Sub::Exporter #21269

Closed
cjg-cguevara opened this issue Jul 20, 2023 · 101 comments
Closed

BBC: Blead Breaks Sub::Exporter #21269

cjg-cguevara opened this issue Jul 20, 2023 · 101 comments
Labels
BBC Blead Breaks CPAN - changes in blead broke a cpan module(s) Closable? We might be able to close this ticket, but we need to check with the reporter

Comments

@cjg-cguevara
Copy link

This is a bug report for perl from "Carlos Guevara" [email protected],
generated with the help of perlbug 1.43 running under perl 5.39.1.


BBC: Blead Breaks Sub::Exporter

Please see http://fast-matrix.cpantesters.org/?dist=Sub::Exporter


Flags

  • category=core
  • severity=low

Perl configuration

Site configuration information for perl 5.39.1:

Configured by cpan at Wed Jul 19 23:35:05 EDT 2023.

Summary of my perl5 (revision 5 version 39 subversion 1) configuration:
  Commit id: 923dde9b8ebe55ba73323ed675156712bc0062c9
  Platform:
    osname=linux
    osvers=5.15.120-0-lts
    archname=x86_64-linux-thread-multi
    uname='linux cjg-alpine3 5.15.120-0-lts #1-alpine smp wed, 05 jul 2023 18:59:57 +0000 x86_64 linux '
    config_args='-des -Dprefix=/home/cpan/bin/perl -Dscriptdir=/home/cpan/bin/perl/bin -Dusedevel -Duse64bitall -Duseithreads'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='12.2.1 20220924'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib /lib
    libs=-lpthread -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=/usr/lib/libc.a
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


---
@INC for perl 5.39.1:
    /home/cpan/bin/perl/lib/site_perl/5.39.1/x86_64-linux-thread-multi
    /home/cpan/bin/perl/lib/site_perl/5.39.1
    /home/cpan/bin/perl/lib/5.39.1/x86_64-linux-thread-multi
    /home/cpan/bin/perl/lib/5.39.1

---
Environment for perl 5.39.1:
    HOME=/home/cpan
    LANG=C.UTF-8
    LANGUAGE (unset)
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/cpan/bin/perl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash
@demerphq
Copy link
Collaborator

This is a bug in Sub::Exporter's test suite, and is fixed by rjbs/Sub-Exporter#17

@demerphq
Copy link
Collaborator

demerphq commented Jul 20, 2023

Happy Birthday @rjbs.

@jkeenan
Copy link
Contributor

jkeenan commented Jul 20, 2023

This is a bug in Sub::Exporter's test suite, and is fixed by rjbs/Sub-Exporter#17

Bisecting shows that this failure shows up in blead at this commit:

commit 2dcf3cf50d7cb67422ffe2c2a3e2d3dc404ea6c4 (HEAD, refs/bisect/bad)
Author:     Yves Orton <[email protected]>
AuthorDate: Mon Feb 14 12:24:21 2022 +0100
Commit:     Yves Orton <[email protected]>
CommitDate: Tue Jul 18 20:26:14 2023 +0200

    Fix assorted bugs related to not having a UNIVERSAL::import

... which is consistent with @demerphq's explanation. I suspect that since this commit went into blead just two days ago, we'll see other CPAN breakage connected to that commit and have to file tickets for other distros upstream.

@jkeenan jkeenan added BBC Blead Breaks CPAN - changes in blead broke a cpan module(s) and removed Needs Triage labels Jul 20, 2023
@demerphq
Copy link
Collaborator

I suspect that since this commit went into blead just two days ago, we'll see other CPAN breakage connected to that commit and have to file tickets for other distros upstream.

Yep. Very very likely. This patch is specifically intended to detect people doing stuff that wouldn't be detected prior to it.

@rjbs
Copy link
Member

rjbs commented Jul 20, 2023

Hey, thanks! I'm out of town on business, but this all looks like Yves is probably right, and I'll dig into it pretty soon.

@andk
Copy link
Contributor

andk commented Jul 21, 2023

Also affected: LEONT/CPAN-Meta-Check-0.017.tar.gz
@Leont please take note

@demerphq
Copy link
Collaborator

Re CPAN::Meta::Check:

------------------------------
PROGRAM OUTPUT
------------------------------

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 "/tmp/basesmoker-reloperl-uCLf/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Attempt to call undefined import method with arguments via package "CPAN::Meta::Prereqs" (Perhaps you forgot to load the package?) at /tmp/loop_over_bdir-101935-CrkcWo/CPAN-Meta-Check-0.017-0/blib/lib/CPAN/Meta/Check.pm line 12.
BEGIN failed--compilation aborted at /tmp/loop_over_bdir-101935-CrkcWo/CPAN-Meta-Check-0.017-0/blib/lib/CPAN/Meta/Check.pm line 12.
Compilation failed in require at t/10-basics.t line 8.
BEGIN failed--compilation aborted at t/10-basics.t line 8.
t/10-basics.t ......... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
Attempt to call undefined import method with arguments via package "CPAN::Meta::Prereqs" (Perhaps you forgot to load the package?) at /tmp/loop_over_bdir-101935-CrkcWo/CPAN-Meta-Check-0.017-0/blib/lib/CPAN/Meta/Check.pm line 12.
BEGIN failed--compilation aborted at /tmp/loop_over_bdir-101935-CrkcWo/CPAN-Meta-Check-0.017-0/blib/lib/CPAN/Meta/Check.pm line 12.
Compilation failed in require at t/20-undef-version.t line 6.
BEGIN failed--compilation aborted at t/20-undef-version.t line 6.
t/20-undef-version.t .. 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 

Test Summary Report
-------------------
t/10-basics.t       (Wstat: 65280 (exited 255) Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
t/20-undef-version.t (Wstat: 65280 (exited 255) Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=2, Tests=0,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.14 cusr  0.02 csys =  0.17 CPU)
Result: FAIL
Failed 2/2 test programs. 0/0 subtests failed.
make: *** [Makefile:873: test_dynamic] Error 255

@demerphq
Copy link
Collaborator

Re: CPAN::Meta::Check, the offending line of code is

use CPAN::Meta::Prereqs '2.132830';

I guess this is intended to be a version Check, but since it's not a number it gets treated as an argument to import. We could probably handle this case more gracefully in UNIVERSAL::import(), but I'm not sure if we should, it seems preferable to keep it very simple. But perhaps we could add a bespoke error for this case to make it easier to understand what is going on.

Again, given the highly experienced nature of the author of this code it seems likely we will discover quite a bit more code where people thought they were doing something that were actually no-ops in disguise.

@jkeenan
Copy link
Contributor

jkeenan commented Jul 21, 2023

The impact of this breakage is massive. On both FreeBSD and Linux, I built perls from the v5.39.1 tag, attempted to install Task::CPAN::Reporter against them and generate CPANtesters reports from a list of 500 modules. Because Sub::Exporter is a prereq to Test::Reporter::Transport::Metabase, even though the modules were actually tested, no reports were sent and all were marked DISCARD.

We should consider reverting the breaking commit until we can better assess the impact of the change.

@demerphq
Copy link
Collaborator

demerphq commented Jul 21, 2023

We should consider reverting the breaking commit until we can better assess the impact of the change.

That sounds like an over-reaction to me personally. When @rjbs can roll a new release of Sub-Exporter things will go back to normal. Presumably if he wasn't on holiday this would be fixed already. We can wait a few days IMO.

Just force install Sub::Exporter for now. The only thing broken there is a test that doesn't quite do what he thought it did.

@dur-randir
Copy link
Member

Looks like Moose is also hit by this

#   Failed test '... got the right list of applicable methods for Foo'
#   at t/cmop/methods.t line 211.
#     Structures begin differing at:
#          $got->[28] = 'import'
#     $expected->[28] = 'isa'

#   Failed test '... got the right list of applicable methods for Bar'
#   at t/cmop/methods.t line 302.
#     Structures begin differing at:
#          $got->[28] = 'import'
#     $expected->[28] = 'isa'
# Looks like you failed 2 tests of 81.

Out of my to-install list, I see ~80 failures, but didn't dive into them thoroughly.

@demerphq
Copy link
Collaborator

demerphq commented Jul 21, 2023

@dur-randir it would be helpful if you could look into the different cases you are seeing and give us some kind of summary of the error modes you see.

The Moose one is interesting, it is enumerating the list of methods in a given class, and is now seeing an import method that didn't used to exist. This is interesting because it is really a very different type of error compared to the errors that are expected from this and possibly we can fix it without breaking the intent of this change.

Cases where people really are calling non-existent imports with arguments thinking they are doing something useful, like a version check or import, really should be errors, even if it is irritating that so many cases are to be found in key parts of the CPAN toolchain. Those can be managed for the time being in the internals where they are important.

So have a breakdown of the different causes of this would be very useful if possible.

@Leont
Copy link
Contributor

Leont commented Jul 21, 2023

Also affected: LEONT/CPAN-Meta-Check-0.017.tar.gz
@Leont please take note

Released a fixed version

@dur-randir
Copy link
Member

dur-randir commented Jul 21, 2023

  • JSON::Any, Template::Toolkit, Perl::Critic, Catalyst::Stuff: Attempt to call undefined import method with arguments via package "..." (Perhaps you forgot to load the package?)

  • Data::Printer

#   at t/011-class.t line 275.
#          got: 'Foo  {
#     parents: Bar
#     public methods (11): bar (Bar), baz, borg, can (UNIVERSAL), DOES (UNIVERSAL), foo, import (UNIVERSAL), isa (UNIVERSAL), new, unimport (UNIVERSAL), VERSION (UNIVERSAL)
#     private methods (2): _moo (Bar), _other
#     internals: {
#         test   42
#     }
# }'
#     expected: 'Foo  {
#     parents: Bar
#     public methods (9): bar (Bar), baz, borg, can (UNIVERSAL), DOES (UNIVERSAL), foo, isa (UNIVERSAL), new, VERSION (UNIVERSAL)
#     private methods (2): _moo (Bar), _other
#     internals: {
#         test   42
#     }
# }'
  • TAP::Formatter::TeamCity - no idea what's going on, but it's bug queue is empty

@andk
Copy link
Contributor

andk commented Jul 21, 2023

Also affected: XAVIER/Graphics-ColorNames-Mozilla-0.11.tar.gz
Sample report: http://www.cpantesters.org/cpan/report/3f34e38e-27b2-11ee-888a-1af50765aee6

@andk
Copy link
Contributor

andk commented Jul 21, 2023

Also affected: PMAKHOLM/Encode-IMAPUTF7-1.05.tar.gz
Sample fail report: http://www.cpantesters.org/cpan/report/cc70611e-27b3-11ee-8776-32f80765aee6

@demerphq
Copy link
Collaborator

demerphq commented Jul 21, 2023

Graphics-ColorNames-Mozilla

This has broken code in its test logic. It is attempting to import a sub from a class.

Issue reported in: https://rt.cpan.org/Ticket/Display.html?id=149090

Encode-IMAPUTF7

This also appears to be broken test logic. It attempts to import subs, but it does not use Exporter or define its own import method. It inherits from Encode::Encoding which also appears to not use Exporter or provide an import method.

Issue report in: https://rt.cpan.org/Ticket/Display.html?id=149091

Author is asking for a new owner and has issues that are over a decade old.

@demerphq
Copy link
Collaborator

I will push a patch shortly which will make the new UNIVERSAL::import() method handle version numbers the same as Exporter would, and silently convert

Thing->import("1.234");

into

Thing->VERSION("1.234");

Which should cover some of the issues reported here.

Basically there are three classes of issues that the UNIVERSAL::import() patch has surfaced:

  1. places where people are doing Thing->import("1.234") and expecting Exporter style behavior. Or writing use Thing "1.234"; and expecting it to be the same as use Thing 1.234; (this case may be combined with case 2)
  2. places where people are doing use Thing qw(blah); when there is not import method defined, and the blah isnt being used in any way.
  3. Places where people are testing the methods that are expected to be populated in a package, and seeing the new import/unimport methods and getting confused.

Case 1 should be fixed by my latest patch in #21279. Case 2 is a legit problem with the code that we report is broken, and that code should simply be fixed. Case 3 is a bit of a grey zone. I see broadly two positions one could take: A) You could argue that we should be able to add special methods to UNIVERSAL so people should just ignore any methods which are defined in it. B) You could also argue that since we have not defined a UNIVERSAL::import/UNIVERSAL::unimport for a long time that we should continue to not define it and do some other trick to achieve the goals we are trying to achieve here. I lean towards the A) interpretation.

@dur-randir
Copy link
Member

TAP::Formatter::TeamCity also fails on 5.36, so it's a red herring.

@haarg
Copy link
Contributor

haarg commented Jul 21, 2023

Fix for JSON-Any at karenetheridge/JSON-Any#3

@haarg
Copy link
Contributor

haarg commented Jul 21, 2023

@andk
Copy link
Contributor

andk commented Jul 21, 2023

Also affected: TEVERETT/Class-Prototyped-1.13.tar.gz
Sample "unknown" report (fails during call of Build.PL): http://www.cpantesters.org/cpan/report/3fa170f8-2785-11ee-87ea-7996116755ad

@haarg
Copy link
Contributor

haarg commented Jul 21, 2023

moose/Moose#183

@demerphq
Copy link
Collaborator

Patched Perl::Critic: Perl-Critic/Perl-Critic#1037

@andk
Copy link
Contributor

andk commented Jul 21, 2023

Also affected: IBB/Acme-Damn-0.08.tar.gz
Sample fail report: http://www.cpantesters.org/cpan/report/b90db89a-27ec-11ee-bc75-9caf0865aee6

@andk
Copy link
Contributor

andk commented Aug 22, 2023

Also affected:

GFUJI/UNIVERSAL-DOES-0.005.tar.gz
http://www.cpantesters.org/cpan/report/7170c3e0-29ab-11ee-9e37-7999c10ab3e

@andk
Copy link
Contributor

andk commented Aug 22, 2023

Also affected (with 5.39.[12]):

GWILLIAMS/Attean-0.033.tar.gz
http://www.cpantesters.org/cpan/report/500bf05a-409c-11ee-a060-513a8910a41d

@kasei, please take note

@Corion
Copy link

Corion commented Aug 22, 2023

While the changed behaviour has long been documented to be otherwise, do we have a plan what to do with the breakage?

I found fixing this mostly to be makework, and I'm an active maintainer.

I think we should have a plan for when to revert 2dcf3cf or how to mitigate the breakage well before the next stable release.

@demerphq
Copy link
Collaborator

demerphq commented Aug 22, 2023 via email

@andk
Copy link
Contributor

andk commented Aug 25, 2023

Also affected:

OALDERS/App-perlimports-0.000052.tar.gz

Fail with 5.39.1: http://www.cpantesters.org/cpan/report/000be336-4122-11ee-9721-b8056e8775ea

Pass with 5.39.2: http://www.cpantesters.org/cpan/report/bcb2a7b4-4135-11ee-afe7-8ff06d8775ea

In the pass report the warning: Attempt to call undefined import method with arguments ("new") via package "LWP::UserAgent" (Perhaps you forgot to load the package?) at (eval 439) line 2.

@perl-ide this may be interesting for you for https://github.com/perl-ide/App-perlimports

@andk
Copy link
Contributor

andk commented Aug 25, 2023

Also affected:

KHEDIN/MVC-Neaf-0.2901.tar.gz
http://www.cpantesters.org/cpan/report/f8430b74-4334-11ee-b3ca-214d25d88efe

JDS/DBIx-Table-TestDataGenerator-0.005.tar.gz
http://www.cpantesters.org/cpan/report/9015de56-4310-11ee-b0db-c64c23d88efe

Both fail reports are with 5.39.2, both have no tests with 5.39.1 because they were not testable due broken dependencies.

@andk
Copy link
Contributor

andk commented Aug 27, 2023

Also affected:

IPENBURG/WWW-Wookie-v1.1.4.tar.gz
http://www.cpantesters.org/cpan/report/3da8319a-44b0-11ee-b9c5-651d20db1981

The FAIL report is with 5.39.2, code was not testable with 5.39.1 due broken dependencies

@haarg
Copy link
Contributor

haarg commented Aug 27, 2023

INGY/Alt-Acme-Math-XS-ZillaDist-0.0.5.tar.gz
http://www.cpantesters.org/cpan/report/5d7781dc-29d6-11ee-ae28-bc3fc20ab3ee

ingydotnet/acme-math-xs-pm#11 via ingydotnet/inline-module-pm#36

WINFINIT/Net-MCMP-0.08.tar.gz
http://www.cpantesters.org/cpan/report/07e03dbc-29d7-11ee-bd4d-4682c20ab3ee

https://rt.cpan.org/Ticket/Display.html?id=149525

MARNANEL/Lingua-EN-Alphabet-Shaw-0.64.tar.gz
http://www.cpantesters.org/cpan/report/cae8dd4a-29e2-11ee-97ac-ac3bc30ab3ee

https://rt.cpan.org/Ticket/Display.html?id=149526

BMORROW/Exporter-NoWork-0.03.tar.gz
http://www.cpantesters.org/cpan/report/59f7e368-29e4-11ee-9ec9-df3ec30ab3ee

mauzo/Exporter-NoWork#1 via mauzo/Test-Exports#1

KARMAN/CatalystX-CRUD-0.57.tar.gz
http://www.cpantesters.org/cpan/report/0b77511e-29e5-11ee-9f93-2f41c30ab3ee

Fixed: karpet/catalystx-crud#1

NOHUHU/DT-0.5.0.tar.gz
http://www.cpantesters.org/cpan/report/0f6c917e-29f1-11ee-ad59-a778c30ab3ee

nohuhu/DT#4

DONEILL/Log-Syslog-Abstract-1.200.tar.gz
http://www.cpantesters.org/cpan/report/a8a9eef4-29fb-11ee-995a-484d3199d815

https://rt.cpan.org/Ticket/Display.html?id=149539

BINARY/Protocol-FIX-0.08.tar.gz
http://www.cpantesters.org/cpan/report/ca27784a-29ff-11ee-a51d-de563199d815
@binary-com please take note

deriv-com/perl-Protocol-FIX#21

DOOM/IPC-Capture-0.06.tar.gz
http://www.cpantesters.org/cpan/report/cf6cea74-29ff-11ee-a51d-de563199d815

https://rt.cpan.org/Ticket/Display.html?id=149540

MUTANT/Test-MockObject-Extra-0.001.tar.gz
http://www.cpantesters.org/cpan/report/45b7327c-2a08-11ee-847c-116b3199d815

https://rt.cpan.org/Ticket/Display.html?id=149541

JEFFOBER/Queue-Priority-1.tar.gz
http://www.cpantesters.org/cpan/report/10178378-2a09-11ee-9600-a46c3199d815

https://rt.cpan.org/Ticket/Display.html?id=149542

MATISSE/Perl-Metrics-Simple-v1.0.1.tar.gz
http://www.cpantesters.org/cpan/report/24c30d66-2a0d-11ee-8f95-2e763199d815

Fixed: matisse/Perl-Metrics-Simple#16

HOREA/WWW-ClickSource/WWW-ClickSource-1.0002.tar.gz
http://www.cpantesters.org/cpan/report/a70ae6bc-2a0e-11ee-b4eb-387a3199d815

gliganh/WWW-ClickSource#2

ESTRABD/Sphinx-Config-Builder-1.03.tgz
http://www.cpantesters.org/cpan/report/26660dce-2a14-11ee-80c0-25873199d815

357r4bd/perl-Sphinx-Config-Builder#3

YANICK/PPIx-EditorTools-0.21.tar.gz
http://www.cpantesters.org/cpan/report/28229218-2a14-11ee-80c0-25873199d815
@yanick please take note

yanick/PPIx-EditorTools#11

JUSTNOXX/Test-VirtualModule-0.01.tar.gz
http://www.cpantesters.org/cpan/report/93607878-2a15-11ee-99bb-428a3199d815

justnoxx/test-virtualmodule#1

BEANZ/AnyEvent-MockTCPServer-1.172150.tar.gz
http://www.cpantesters.org/cpan/report/8314fb5e-2a26-11ee-8f11-c5af3199d815

beanz/anyevent-mocktcpserver-perl#1

CAFEGRATZ/DBIx-EAV-0.11.tar.gz
http://www.cpantesters.org/cpan/report/00db0ed6-2a2a-11ee-8214-a9b83199d815

cafe01/dbix-eav#2

INGY/Alt-Acme-Math-XS-ModuleBuild-0.0.6.tar.gz
http://www.cpantesters.org/cpan/report/6599f17c-2a32-11ee-8356-e7cb3199d815

https://rt.cpan.org/Ticket/Display.html?id=149543 via ingydotnet/inline-module-pm#36

TEX/Log-Tree-0.18.tar.gz
http://www.cpantesters.org/cpan/report/e098c2e2-2a35-11ee-ae32-e1d33199d815

dominikschulz/Log-Tree#5

VLADIMIRZ/JIP-Spy-Events-v0.0.4.tar.gz
http://www.cpantesters.org/cpan/report/066f92bc-2a49-11ee-a6cf-f8ff3199d815

outtaspace/jip_spy_events#1

VOJ/PICA-Data-2.09.tar.gz
http://www.cpantesters.org/cpan/report/9132923c-2a58-11ee-abeb-77243299d815

gbv/PICA-Data#137

NICWOLFF/HTML-DataTable-0.54.tar.gz
http://www.cpantesters.org/cpan/report/a47a1f7c-2a58-11ee-abeb-77243299d815

https://rt.cpan.org/Ticket/Display.html?id=149545

GRYPHON/Log-Dispatch-Email-Mailer-1.12.tar.gz
http://www.cpantesters.org/cpan/report/a3fc8812-2a5f-11ee-ab36-61353299d815

gryphonshafer/Log-Dispatch-Email-Mailer#5 via gryphonshafer/exact#4

TMILLER/App-Sandy-0.23.tar.gz
http://www.cpantesters.org/cpan/report/e0c88aca-2a5f-11ee-ab36-61353299d815

galantelab/sandy#8

NICDOYE/WebService-IFConfig-Client-1.001.tar.gz
http://www.cpantesters.org/cpan/report/19561a14-2a61-11ee-8750-b8383299d815

https://rt.cpan.org/Ticket/Display.html?id=149546

JSMITH/Module-Require-0.05.tar.gz
http://www.cpantesters.org/cpan/report/278f4afc-2a6a-11ee-810e-db6f3399d815

https://rt.cpan.org/Ticket/Display.html?id=83629

BECKUS/WebShortcutUtil-0.22.tar.gz
http://www.cpantesters.org/cpan/report/1d229178-2a6a-11ee-810e-db6f3399d815

https://rt.cpan.org/Ticket/Display.html?id=149547

MIGO/Arch-0.5.2.tar.gz
http://www.cpantesters.org/cpan/report/3a72d01e-2a6d-11ee-bcd1-30763399d815

https://rt.cpan.org/Ticket/Display.html?id=149548

SHELLING/Class-Implant-0.01.tar.gz
http://www.cpantesters.org/cpan/report/db092d7a-2a6d-11ee-9ba4-f0773399d815

https://rt.cpan.org/Ticket/Display.html?id=149549

SAMCV/overload-open-1.9.6.tar.gz
http://www.cpantesters.org/cpan/report/83aeaa3e-2a7a-11ee-9458-af943399d815

samcv/perl-overload-open#3

FRANCKC/CatalystX-Dispatcher-AsGraph-0.03.tar.gz
http://www.cpantesters.org/cpan/report/6d60938e-2a82-11ee-b417-b1a53399d815

https://rt.cpan.org/Ticket/Display.html?id=149553

JV/Data-BiaB-0.10.3.tar.gz
http://www.cpantesters.org/cpan/report/068a25ac-2a83-11ee-9707-3ba73399d815

Fixed in 0.11 (https://metacpan.org/release/JV/Data-BiaB-0.11/changes#L5)

JDDPAUSE/MarpaX-Database-Terminfo-0.012.tar.gz
http://www.cpantesters.org/cpan/report/51793fc0-2a89-11ee-b8aa-21b53399d815

jddurand/MarpaX-Database-Terminfo#3

MIKKOI/IO-Iron-0.13.tar.gz
http://www.cpantesters.org/cpan/report/6a3edd4c-2a8b-11ee-b95b-5eb93399d815

mikkoi/io-iron#1

BEANZ/AnyEvent-SerialPort-1.130171.tar.gz
http://www.cpantesters.org/cpan/report/881d0076-2a8d-11ee-adfa-afbe3399d815

beanz/anyevent-serialport-perl#1

TOMYHERO/Catalyst-Model-CacheFunky-Loader-0.06.tar.gz
http://www.cpantesters.org/cpan/report/5c05db88-2a8e-11ee-b9c9-3ac03399d815

https://rt.cpan.org/Ticket/Display.html?id=149554

ISHIGAKI/Catalyst-Model-Jifty-DBI-0.06.tar.gz
http://www.cpantesters.org/cpan/report/883bc518-2a94-11ee-a9c0-27ce3399d815

https://rt.cpan.org/Ticket/Display.html?id=149555

@andk
Copy link
Contributor

andk commented Sep 8, 2023

Also affected:

COUDOT/Lemonldap-NG-Manager-2.17.0.tar.gz
http://www.cpantesters.org/cpan/report/1e73bac8-4d99-11ee-abcf-3e994a96da87

KIMOTO/SPVM-0.989040.tar.gz
http://www.cpantesters.org/cpan/report/fa212d74-4c8d-11ee-b124-0b50773870b7

Both fails with 5.39.2, both pkgs here not testable with 5.39.1 due broken dependencies

@jkeenan
Copy link
Contributor

jkeenan commented Nov 21, 2023

I think we're actually in good shape with respect to this BBC ticket. In the last few days I installed a plain, unthreaded perl-5.39.5 on Ubuntu Linux 22.04 LTS, installed Task-CPAN-Reporter, and began generating CPANtesters reports for the modules cited herein. Together with their prerequisites, I've installed over 1700 modules. All the ones that are still FAILing due to the issues raised in this ticket have issues, pull requests or patches prepared against them.

I'm going to mark this ticket as Closable ... but it's the sort of thing we should probably keep open until our preparations for perl-5.40.0 ramp up in April.

@jkeenan jkeenan added the Closable? We might be able to close this ticket, but we need to check with the reporter label Nov 21, 2023
@haarg
Copy link
Contributor

haarg commented Nov 22, 2023

Changing from an exception to a warning stopped the majority of these failures, but there are still many things broken just from the addition of a UNIVERSAL::import method. And while this is currently marked as a deprecation, I'm not sure we can actually commit to converting it to an exception at the end of a deprecation cycle.

There are still many modules impacted that I want to file patches for. And I think we should consider changing to just a normal warning rather than a deprecation.

@Leont
Copy link
Contributor

Leont commented Nov 25, 2023

There are still many modules impacted that I want to file patches for. And I think we should consider changing to just a normal warning rather than a deprecation.

I agree.

@jkeenan
Copy link
Contributor

jkeenan commented Nov 25, 2023

There are still many modules impacted that I want to file patches for. And I think we should consider changing to just a normal warning rather than a deprecation.

I agree.

@haarg, @Leont: Could one of you open a separate ticket for that? (The current ticket is getting long in the tooth.) thanks.

@jkeenan
Copy link
Contributor

jkeenan commented Jan 11, 2024

There are still many modules impacted that I want to file patches for. And I think we should consider changing to just a normal warning rather than a deprecation.

I agree.

@haarg, @Leont: Could one of you open a separate ticket for that? (The current ticket is getting long in the tooth.) thanks.

@haarg, @Leont ... any thoughts on the above ^^ ? Thanks.

@jkeenan
Copy link
Contributor

jkeenan commented Feb 12, 2024

@haarg, @Leont ... any thoughts on the above ^^ ? Thanks.

@haarg, @Leont ... any thoughts on the above ^^ ? Thanks.

@haarg
Copy link
Contributor

haarg commented Feb 22, 2024

I would still like to send out more patches to address the warnings, and I don't see a need to create a new issue for the same problem.

We're considering changing the warning from a deprecation to a normal warning a release blocker. I hope to address that soon.

@haarg haarg removed the Closable? We might be able to close this ticket, but we need to check with the reporter label Feb 22, 2024
zmughal added a commit to zmughal-contrib/attean that referenced this issue Mar 2, 2024
zmughal added a commit to zmughal-contrib/attean that referenced this issue Mar 10, 2024
Move the `Exporter::Tiny` setup before loading anything else so that the
`import()` is visible. Use `require` for `Attean` so that
`Attean->import()` is not called.

Fixes <kasei#167>.

See also <Perl/perl5#21269>.
@jkeenan jkeenan added the Closable? We might be able to close this ticket, but we need to check with the reporter label Jun 18, 2024
@jkeenan
Copy link
Contributor

jkeenan commented Jun 18, 2024

I conducted a review of this ticket over the past few days. I installed blead perl at a commit a little bit after the 5.40.0 release, install Task::CPAN::Reporter against that perl, then attempted to install a list of 131 modules identified in this ticket. With prerequisites, that amounted to a total of 788 CPAN distributions attempted. The distros which were not graded PASS were:

$ ack -v '^test PASS' reports-sent.db
make UNKNOWN App-PerlXLock-0.08 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test DISCARD App-Sandy-0.25 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Assert-Refute-0.17 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Attean-0.033 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
PL DISCARD GSSAPI-0.28 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL CPAN-Test-Reporter-0.02 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
PL DISCARD GraphViz-2.26 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
PL DISCARD ExtUtils-PkgConfig-1.16 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
PL DISCARD GD-2.82 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test DISCARD DBIx-EAV-0.11 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Dependencies-Searcher-0.065 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Devel-TraceRun-0.003 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Encode-IMAPUTF7-1.05 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Exporter-NoWork-0.03 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Convert-Bencode_XS-0.06 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL MarpaX-Database-Terminfo-0.012 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL maybe-0.0202 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Protocol-FIX-0.08 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test UNKNOWN RTSP-Lite-0.1 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Test-Class-Moose-0.99 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test DISCARD TAP-Formatter-TeamCity-0.13 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL thanks-0.005 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Thread-Queue-Duplex-0.92 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test DISCARD Thread-Apartment-0.51 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL UNIVERSAL-DOES-0.005 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test DISCARD WWW-Wookie-v1.1.4 (perl-5.41.1) x86_64-linux 6.5.0-35-generic
test FAIL Xporter-0.1.2 (perl-5.41.1) x86_64-linux 6.5.0-35-generic

I then explored the distros on this list to see whether bug reports or pull requests had been filed at their issue trackers. In some cases I re-ran the test suites and got a PASS on the second attempt. In some but not all cases I installed missing prerequisites. There was one distribution, Dependencies-Searcher, for which no bug report had been filed; I did so. You can see my analysis in this gist.

The long and short of this is that I see no reason to keep this ticket open, as everything which Perl 5 Porters can reasonably be asked to do on the ticket we have done. @haarg, if you would still like to keep this ticket open, can you please self-assign it and specify the conditions that would have to be met in order to close the ticket? Thank you very much.

@toddr
Copy link
Member

toddr commented Jun 21, 2024

Template 3.102 released.

@haarg haarg closed this as completed Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BBC Blead Breaks CPAN - changes in blead broke a cpan module(s) Closable? We might be able to close this ticket, but we need to check with the reporter
Projects
None yet
Development

No branches or pull requests