config-model icon indicating copy to clipboard operation
config-model copied to clipboard

Feature "switch" is not supported by Perl 5.41.4 at lib/Config/Model/Value.pm line 16.

Open eserte opened this issue 1 year ago • 1 comments

Build fails with perl 5.41.x (e.g. 5.41.4):

Output from './Build':

Feature "switch" is not supported by Perl 5.41.4 at lib/Config/Model/Value.pm line 16.
BEGIN failed--compilation aborted at lib/Config/Model/Value.pm line 16.
Compilation failed in require at lib/Config/Model/Dumper.pm line 18.
BEGIN failed--compilation aborted at lib/Config/Model/Dumper.pm line 18.
Compilation failed in require at lib/Config/Model/Node.pm line 22.
BEGIN failed--compilation aborted at lib/Config/Model/Node.pm line 22.
Compilation failed in require at lib/Config/Model/Instance.pm line 27.
BEGIN failed--compilation aborted at lib/Config/Model/Instance.pm line 27.
Compilation failed in require at lib/Config/Model.pm line 24.
BEGIN failed--compilation aborted at lib/Config/Model.pm line 24.
Compilation failed in require at lib/Config/Model/Utils/GenClassPod.pm line 21.
BEGIN failed--compilation aborted at lib/Config/Model/Utils/GenClassPod.pm line 21.
Compilation failed in require.
BEGIN failed--compilation aborted.
gen-class-pod failed: 65280 at /home/e/eserte/.cpan/build/2024092909/Config-Model-2.154-0/_build/lib/Module/Build/Custom.pm line 8.

switch was recently removed from perl.

eserte avatar Sep 29 '24 15:09 eserte

It seems that the switch feature in the problematic module is not needed and may be safely removed. See https://www.cpan.org/authors/id/S/SR/SREZIC/patches/Config-Model-2.154-issue35.patch

eserte avatar Sep 29 '24 16:09 eserte

Indeed. Thanks for the heads-up

dod38fr avatar Nov 23 '24 17:11 dod38fr