Skip Menu |

This queue is for tickets about the Module-Build-Tiny CPAN distribution.

Report information
The Basics
Id: 105931
Status: resolved
Priority: 0/
Queue: Module-Build-Tiny

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc: ether [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.039
Fixed in: (no value)



Subject: GetOptionsFromArray: 1st parameter is not an array reference
Running test for module 'Dist::Zilla::Role::ErrorLogger' Running make for V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz CPAN.pm: Building V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz Creating new 'Build' script for 'Dist-Zilla-Role-ErrorLogger' version '0.005' (C:\strawberry160\perl\bin\perl.exe Build.PL exited with 0) CPAN::Reporter: Build.PL result is 'pass', No errors. Show quoted text
---- Unsatisfied dependencies detected during ---- ---- VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz ---- Software::License::GPL_3::or_later [build_requires] ...
---- Unsatisfied dependencies detected during ---- ---- VDB/Software-License-OrLaterPack-0.009.tar.gz ---- Module::Build::Tiny [build_requires] Running make test Make had some problems, won't test Delayed until after prerequisites Running test for module 'Module::Build::Tiny' Running make for L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz ... Running Build for V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz Has already been unwrapped into directory C:\strawberry160\cpan\build\Dist-Zilla-Role-ErrorLogger-0.005-P4etZn CPAN.pm: Building V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz GetOptionsFromArray: 1st parameter is not an array reference (C:\strawberry160\perl\bin\perl.exe ./Build exited with 65280) Module::Build::Tiny is 0.030, but Software::License::GPL_3::or_later (dependency Dist::Zilla::Role::ErrorLogger) requires 0.039, so _build_params is created by 0.030 and used by 0.039. If I upgrade Module::Build::Tiny before testing Dist::Zilla::Role::ErrorLogger problem does not appear. -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #105931] GetOptionsFromArray: 1st parameter is not an array reference
Date: Sat, 18 Jul 2015 10:20:01 +0200
To: bug-Module-Build-Tiny [...] rt.cpan.org
From: Leon Timmermans <leont [...] cpan.org>
On Sat, Jul 18, 2015 at 9:54 AM, Alexandr Ciornii via RT < bug-Module-Build-Tiny@rt.cpan.org> wrote: Show quoted text
> Running test for module 'Dist::Zilla::Role::ErrorLogger' > Running make for V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz > > CPAN.pm: Building V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz > > Creating new 'Build' script for 'Dist-Zilla-Role-ErrorLogger' version > '0.005' > (C:\strawberry160\perl\bin\perl.exe Build.PL exited with 0) > CPAN::Reporter: Build.PL result is 'pass', No errors. > ---- Unsatisfied dependencies detected during ---- > ---- VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz ---- > Software::License::GPL_3::or_later [build_requires] > > ... > > ---- Unsatisfied dependencies detected during ---- > ---- VDB/Software-License-OrLaterPack-0.009.tar.gz ---- > Module::Build::Tiny [build_requires] > Running make test > Make had some problems, won't test > Delayed until after prerequisites > Running test for module 'Module::Build::Tiny' > Running make for L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz > > ... > > Running Build for V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz > Has already been unwrapped into directory > C:\strawberry160\cpan\build\Dist-Zilla-Role-ErrorLogger-0.005-P4etZn > > CPAN.pm: Building V/VD/VDB/Dist-Zilla-Role-ErrorLogger-0.005.tar.gz > > GetOptionsFromArray: 1st parameter is not an array reference > (C:\strawberry160\perl\bin\perl.exe ./Build exited with 65280) > > > Module::Build::Tiny is 0.030, but Software::License::GPL_3::or_later > (dependency Dist::Zilla::Role::ErrorLogger) requires 0.039, so > _build_params is created by 0.030 and used by 0.039. If I upgrade > Module::Build::Tiny before testing Dist::Zilla::Role::ErrorLogger problem > does not appear. >
Thanks for the detailed report, it had been observed before at least once but proved rather hard to reproduce. I will release a fix soon. Leon
For anyone else who finds their way to this ticket -- the problem is caused by the _build_params file (which MBT uses to store configs for itself between the configure (perl Build.PL) and build (./Build) phases having changed formats between versions -- and somewhere between these two phases, something downstream caused MBT to be upgraded, so it doesn't understand its own config file. The solution is two-fold: upstream Build.PL generators (e.g. Dist::Zilla::Plugin::ModuleBuildTiny) forcing a dependency on a more recent MBT, and also MBT changing so it can understand older versions of its config file.
On 2015-11-24 16:53:57, ETHER wrote: Show quoted text
> For anyone else who finds their way to this ticket -- the problem is > caused by the _build_params file (which MBT uses to store configs for > itself between the configure (perl Build.PL) and build (./Build) > phases having changed formats between versions -- and somewhere > between these two phases, something downstream caused MBT to be > upgraded, so it doesn't understand its own config file. > > The solution is two-fold: upstream Build.PL generators (e.g. > Dist::Zilla::Plugin::ModuleBuildTiny) forcing a dependency on a more > recent MBT, and also MBT changing so it can understand older versions > of its config file.
See also https://rt.cpan.org/Ticket/Display.html?id=100335