Debian Bug report logs - #828737
Please support passing in numeric form the version of the library that should be wrapped

version graph

Package: libglib-object-introspection-perl; Maintainer for libglib-object-introspection-perl is Debian Perl Group <[email protected]>; Source for libglib-object-introspection-perl is src:libglib-object-introspection-perl (PTS, buildd, popcon).

Reported by: Wouter Verhelst <[email protected]>

Date: Mon, 27 Jun 2016 11:30:02 UTC

Severity: wishlist

Tags: upstream

Found in version libglib-object-introspection-perl/0.040-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Perl Group <[email protected]>:
Bug#828737; Package libglib-object-introspection-perl. (Mon, 27 Jun 2016 11:30:05 GMT) (full text, mbox, link).


Acknowledgement sent to Wouter Verhelst <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Perl Group <[email protected]>. (Mon, 27 Jun 2016 11:30:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Wouter Verhelst <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Glib::Object::Introspection is locale-sensitive
Date: Mon, 27 Jun 2016 13:26:37 +0200
Package: libglib-object-introspection-perl
Version: 0.040-2
Severity: normal

Hi,

On my machine, the following code:

eval {
	Glib::Object::Introspection->setup(
		basename => "Notify",
		version => 0.7,
		package => "Fdpowermon::Notify",
	);
}
if ($@) {
	print "notify setup failed: $@\n";
}

produces:

notify setup failed: Typelib file for namespace 'Notify', version '0,7' not found at /usr/lib/x86_64-linux-gnu/perl5/5.22/Glib/Object/Introspection.pm line 108.

The obvious reason is that version is not "0,7", but "0.7"; in the dutch
locale, a comma is used as a decimal separator, rather than a point.
Passing the version number as a string rather than a number fixes the
problem -- but I think that shouldn't be necessary.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unreleased'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, m68k, arm64

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libglib-object-introspection-perl depends on:
ii  libc6                       2.22-12
ii  libextutils-depends-perl    0.405-1
ii  libextutils-pkgconfig-perl  1.15-1
ii  libffi6                     3.2.1-4
ii  libgirepository-1.0-1       1.48.0-2
ii  libglib-perl                3:1.320-2
ii  libglib2.0-0                2.48.1-1
ii  perl                        5.22.2-1
ii  perl-base [perlapi-5.22.1]  5.22.2-1

libglib-object-introspection-perl recommends no packages.

libglib-object-introspection-perl suggests no packages.

-- no debconf information



Information forwarded to [email protected], Debian Perl Group <[email protected]>:
Bug#828737; Package libglib-object-introspection-perl. (Mon, 27 Jun 2016 12:24:24 GMT) (full text, mbox, link).


Acknowledgement sent to intrigeri <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Perl Group <[email protected]>. (Mon, 27 Jun 2016 12:24:24 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: intrigeri <[email protected]>
To: Wouter Verhelst <[email protected]>
Cc: [email protected]
Subject: Re: Bug#828737: Glib::Object::Introspection is locale-sensitive
Date: Mon, 27 Jun 2016 13:56:54 +0200
Control: retitle -1 Please support passing in numeric form the version of the library that should be wrapped
Control: tag -1 + upstream
Control: severity -1 wishlist

Hi Wouter,

Wouter Verhelst wrote (27 Jun 2016 11:26:37 GMT) :
> Passing the version number as a string rather than a number fixes the
> problem -- but I think that shouldn't be necessary.

The POD for this module explicitly states the need to pass the version
as a string:

    version => $version
        The particular version of the library that should be wrapped, in
        string form. For "Gtk-3.0.typelib", it is '3.0'.

… so the bug you're experiencing only occurs when using the library in
a way that is explicitly not supported. Therefore, I'm going to handle
this as a feature request. FWIW upstream bug tracker lives there:
https://bugzilla.gnome.org/ (the component is gnome-perl IIRC).

Cheers,
--
intrigeri



Changed Bug title to 'Please support passing in numeric form the version of the library that should be wrapped' from 'Glib::Object::Introspection is locale-sensitive'. Request was from intrigeri <[email protected]> to [email protected]. (Mon, 27 Jun 2016 12:24:24 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from intrigeri <[email protected]> to [email protected]. (Mon, 27 Jun 2016 12:24:25 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from intrigeri <[email protected]> to [email protected]. (Mon, 27 Jun 2016 12:24:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:45:19 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.