Skip Menu |

This queue is for tickets about the Gtk2-Spell CPAN distribution.

Report information
The Basics
Id: 59485
Status: resolved
Priority: 0/
Queue: Gtk2-Spell

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

Bug Information
Severity: Important
Broken in: 1.03
Fixed in: (no value)



Subject: Invalid version format (non-numeric data) during Makefile.PL
This bug has been noted on Gentoo building under Perl 5.12.1 For more information on this bug see here: https://bugs.gentoo.org/show_activity.cgi?id=328723 The problem appears to be the version strings in "our %build_reqs" in Makefile.PL, namely the 'rc2' suffixes. * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/tmp/portage/dev-perl/gtk2-spell-1.03/image/ Invalid version format (non-numeric data) at /usr/lib64/perl5/5.12.1/Exporter/Heavy.pm line 120. BEGIN failed--compilation aborted at (eval 6) line 1. I skimmed through the Git repository and found somebody made a fix similar to the one somebody suggested we try, dated 2003, http://git.gnome.org/browse/perl-Gtk2-Spell/commit/?id=caa0ef46bbb2ce81cd92ef80f3547b15803e05c6 Hopefully this is a useful bug report =).
Subject: fix for Invalid version format (non-numeric data) during Makefile.PL
I just made this quick patch with diff -crB to fix the Makefile.PL . I was able to build Gtk2::Spell on Perl 5.12.3.
Subject: makepl.patch
*** Makefile.PL 2003-09-21 20:45:59.000000000 -0400 --- ../Gtk2-Spell-1.03-18f5oi/Makefile.PL 2011-08-18 03:25:29.506878876 -0400 *************** *** 11,18 **** our %build_reqs = ( 'perl-ExtUtils-Depends' => '0.1', 'perl-ExtUtils-PkgConfig' => '0.1', ! 'perl-Glib' => '1.00rc2', ! 'perl-Gtk2' => '1.00rc2', 'GtkSpell' => '2.0.0', ); --- 11,18 ---- our %build_reqs = ( 'perl-ExtUtils-Depends' => '0.1', 'perl-ExtUtils-PkgConfig' => '0.1', ! 'perl-Glib' => '1.00', ! 'perl-Gtk2' => '1.00', 'GtkSpell' => '2.0.0', ); *************** *** 33,44 **** . "1") { warn "$@\n"; WriteMakefile( ! PREREQ_FATAL => 1, ! PREREQ_PM => { ! Glib:: => $build_reqs{'perl-Glib'}, ! Gtk2:: => $build_reqs{'perl-Gtk2'}, ! ExtUtils::Depends:: => $build_reqs{'perl-ExtUtils-Depends'}, ! ExtUtils::PkgConfig:: => $build_reqs{'perl-ExtUtils-PkgConfig'}, }, ); exit 1; # not reached --- 33,44 ---- . "1") { warn "$@\n"; WriteMakefile( ! 'PREREQ_FATAL' => 1, ! 'PREREQ_PM' => { ! 'Glib' => $build_reqs{'perl-Glib'}, ! 'Gtk2' => $build_reqs{'perl-Gtk2'}, ! 'ExtUtils::Depends' => $build_reqs{'perl-ExtUtils-Depends'}, ! 'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'}, }, ); exit 1; # not reached
I can confirm this behaviour causes the build to fail, at least under 5.14.1. The patch above resolves the problem; I've also pushed it out on github at: https://github.com/RsrchBoy/Gtk2- Spell/commit/3ff488a91113984e7a63734b3301930e266dd09e ...as I'll probably need it again at some point in the future :)
On Sun Sep 18 01:32:22 2011, RSRCHBOY wrote: Show quoted text
> I can confirm this behaviour causes the build to fail, at least under > 5.14.1. The patch above resolves the problem; I've also pushed it out on > github at: > > https://github.com/RsrchBoy/Gtk2- > Spell/commit/3ff488a91113984e7a63734b3301930e266dd09e > > ...as I'll probably need it again at some point in the future :)
These changes have actually already been in our source repository for quite a while, they just were never released. Fixed now with version 1.04.