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

perl 5.36 cpan | tests fail for CPANPLUS #64

Closed
shawnlaffan opened this issue Mar 11, 2023 · 5 comments
Closed

perl 5.36 cpan | tests fail for CPANPLUS #64

shawnlaffan opened this issue Mar 11, 2023 · 5 comments

Comments

@shawnlaffan
Copy link
Contributor

The CPANPLUS tests are failing in the CPAN step.

I have not yet looked into these. Possibly it needs prereqs or other scripts run (see start of log below test fails).

t/08_CPANPLUS-Backend.t ....................... ok
t/00_CPANPLUS-Internals-Utils.t ............... ok

#   Failed test '   Found C:\spbuild\msys64\.cpanm\work\1678493856.1956\CPANPLUS-0.9914\t\dummy-cpanplus\CPANPLUS\Config
\Test1764.pm in %INC'
#   at t/01_CPANPLUS-Configure.t line 100.
# Looks like you failed 1 test of 316.
t/01_CPANPLUS-Configure.t .....................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/316 subtests
t/02_CPANPLUS-Internals.t ..................... ok
t/031_CPANPLUS-Internals-Source-SQLite.t ...... skipped: SQLite engine not available
t/032_CPANPLUS-Internals-Source-via-sqlite.t .. skipped: SQLite engine not available
t/03_CPANPLUS-Internals-Source.t .............. ok

#   Failed test '   Tested prereqs'
#   at t/04_CPANPLUS-Module.t line 309.
# Looks like you failed 1 test of 124.
t/04_CPANPLUS-Module.t ........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/124 subtests
        (less 12 skipped subtests: 111 okay)
t/05_CPANPLUS-Internals-Fetch.t ............... ok
t/06_CPANPLUS-Internals-Constants.t ........... ok
t/07_CPANPLUS-Internals-Extract.t ............. ok
t/09_CPANPLUS-Internals-Search.t .............. ok
t/10_CPANPLUS-Error.t ......................... ok
t/15_CPANPLUS-Shell.t ......................... ok
Can't locate object method "new" via package "CPANPLUS::Dist::MM" (perhaps you forgot to load "CPANPLUS::Dist::MM"?) at
C:/spbuild/msys64/.cpanm/work/1678493856.1956/CPANPLUS-0.9914/t/../lib/CPANPLUS/Module.pm line 809.
# Looks like your test exited with 2 just after 34.
t/19_CPANPLUS-Dist.t ..........................
Dubious, test returned 2 (wstat 512, 0x200)
All 34 subtests passed
t/20_CPANPLUS-Dist-MM.t ....................... ok
t/21_CPANPLUS-Dist-No-Build.t ................. ok
t/25_CPANPLUS.t ............................... ok
t/30_CPANPLUS-Internals-Selfupdate.t .......... ok

--> Working on CPANPLUS
Fetching https://cpan.metacpan.org/authors/id/B/BI/BINGOS/CPANPLUS-0.9914.tar.gz ... OK
Configuring CPANPLUS-0.9914 ... Warning: prerequisite Log::Message 0.01 not found.
Warning: prerequisite Object::Accessor 0.44 not found.
Warning: prerequisite Package::Constants 0.01 not found.
Warning: prerequisite Term::UI 0.18 not found.

### IMPORTANT! ######################################################


As of CPANPLUS 0.070, configuration during 'perl Makefile.PL'
is no longer required. A default config is now shipped that
should work out of the box on most machines, for priviliged
and unprivileged users.

If you wish to configure CPANPLUS to your environment, you can
either do that from the interactive shell after installation:

    $ cpanp
    CPAN Terminal> s reconfigure

Or you can invoke this program as follows, to do it now:

    $ C:\strawberry\perl\bin\perl.exe Makefile.PL --setup

This also means that any config created by any CPANPLUS older
than 0.070 will no longer work, and you are required to
reconfigure. See the ChangeLog file for details.

We appologize for the inconvenience.


### PLEASE NOTE ###################################################

CPANPLUS also ships a 'boxed' cpanp client, so you can run it
out of it's extraction dir, by typing:

    $ perl bin/cpanp-boxed

This may help you with bootstrap issues, or other situations
where you need to use CPANPLUS but can not use a system installation.

You can install all of CPANPLUS' dependencies like this, before
installing CPANPLUS itself by running:

    $ perl bin/cpanp-boxed -s selfupdate dependencies

All the modules bundled are found in the 'inc/bundle' directory. If
you, for whatever reason, wish to not install these from cpan, you
could include them into your environment as such (using tcsh):

    $ setenv PERL5LIB C:/spbuild/msys64/.cpanm/work/1678493856.1956/CPANPLUS-0.9914/inc/bundle

###################################################################



### IMPORTANT! ######################################################

Your site and core script locations are different. We will be put the
scripts provided by this distribution in the site location.

Please ensure that the site location is in your PATH.

#####################################################################


@shawnlaffan shawnlaffan changed the title perl 5.36 | tests fail for CPANPLUS perl 5.36 cpan | tests fail for CPANPLUS Mar 11, 2023
@shawnlaffan
Copy link
Contributor Author

A follow-up question is whether we still need to provide CPANPLUS with Strawberry Perl?

shawnlaffan added a commit that referenced this issue Mar 13, 2023
…o not build

Devel::Declare is deprecated.  #70

CPANPLUS fails to build locally, disable for now.  #64

Alien::Libxml2: set PKG_CONFIG_DIR. #71

Other test files are disabled on a per file basis.
Most of these pass on a local copy of the build.
Includes #65, #66, #67, #68 and #73
@shawnlaffan
Copy link
Contributor Author

CPANPLUS is now passing when using cpanm on the 5.36 docker version, probably due to 09df569 (see discussion in #73).

@genio - I'll re-enable it in the builds unless there is reason to not include it any more.

@genio
Copy link
Member

genio commented Mar 16, 2023

hm. While I don't personally use it, for something like cpanplus I'd say we probably need to continue including it if it has been in the past.

@shawnlaffan
Copy link
Contributor Author

I don't use it either but I think it might be used by some of the cpan testers for reporting.

I've re-enabled it on my system so it will be on the repo when next I push changes.

@shawnlaffan
Copy link
Contributor Author

Re-enabled in e5a3732 (should really have been in its own commit).

Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants