Bug#688069: liblocale-subcountry-perl: Version checks fail ("our $VERSION" moved before "package Locale::SubCountry")

Ivan Kohler ivan-debian at 420.am
Fri Oct 26 09:20:24 UTC 2012


On Wed, Oct 24, 2012 at 08:41:54PM +0200, gregor herrmann wrote:
> On Tue, 18 Sep 2012 13:54:35 -0700, Ivan Kohler wrote:
> 
> > $ perl -e 'use Locale::SubCountry 54'
> > Locale::SubCountry does not define $Locale::SubCountry::VERSION--version check failed at -e line 1.
> > 
> > Sometime after version 1.50, "our $VERSION = 1.xx" was moved to the top of
> > the code, above any "package" declaration.  It is therefore not declaring
> > $Locale::SubCountry::VERSION, and previously-working version checks like
> > "use Locale::SubCountry 1.42" now throw a fatal error.
> > 
> > The patch below adds a "package Locale::SubCountry" to the beginning of the
> > code.  This seems like typical / best practice for modules, to avoid any
> > symbol exports from the intial "use" statements from polluting the main::
> > namespace.
> 
> Are you going to upload the fixed package? Or should someone else go
> ahead?

Since wheezy isn't affected (or released) and upstream hasn't yet 
responded/updated, I guess I was more in a holding pattern over here 
with regard to this.

Anyone else may feel free to go ahead and upload.

-- 
_ivan



More information about the pkg-perl-maintainers mailing list