From: | dam [...] cpan.org |
Subject: | Please support passing in numeric form the version of the library that should be wrapped |
We have the following bug reported to the Debian package of
Glib-Object-Introspection (https://bugs.debian.org/828737):
It doesn't seem to be a bug in the packaging, so you may want to take
a look. Thanks!
------8<-----------8<-----------8<-----------8<-----------8<-----
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
------8<-----------8<-----------8<-----------8<-----------8<-----
Thanks for considering,
Damyan Ivanov,
Debian Perl Group