Debian Bug report logs - #481642
PerlQt-based applications refuse to start !

version graph

Package: libqt-perl; Maintainer for libqt-perl is (unknown);

Reported by: Vincent Fourmond <fourmond@debian.org>

Date: Sat, 17 May 2008 16:03:05 UTC

Severity: grave

Tags: confirmed, help, patch, upstream

Found in version libqt-perl/3.008-3

Fixed in version libqt-perl/3.008-3.1

Done: Marc 'HE' Brockschmidt <he@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://rt.cpan.org/Public/Bug/Display.html?id=36045

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Vincent Fourmond <fourmond@debian.org>:
New Bug report received and forwarded. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vincent Fourmond <fourmond@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: PerlQt-based applications refuse to start !
Date: Sat, 17 May 2008 18:00:35 +0200
Package: libqt-perl
Version: 3.008-3+b1
Severity: grave


  Hello,

  Applications based on Perl/Qt now refuse to start with an error in the spirit
of

~ perl progress.pl 
--- No method to call for :
        QApplication::new('Qt::Applic...', ARRAY(0x622db8))
at /usr/lib/perl5/Qt.pm line 464.

  This includes the examples. I don't know if examples used to work, but my
own applications used to ;-)... Severity Grave because nothing based on 
Perl/Qt seems to work anymore.

  I'm a bit awkward about downgrading it, since that implies switching back to
perl 5.8...

  Feel free to ask for more information...

       Vincent
  

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Shell: /bin/sh linked to /bin/dash

Versions of packages libqt-perl depends on:
ii  libaudio2              1.9.1-2           Network Audio System - shared libr
ii  libc6                  2.7-11            GNU C Library: Shared libraries
ii  libfontconfig1         2.5.0-2           generic font configuration library
ii  libfreetype6           2.3.5-1+b1        FreeType 2 font engine, shared lib
ii  libgcc1                1:4.3.0-4         GCC support library
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libqt3-mt              3:3.3.8b-5        Qt GUI Library (Threaded runtime v
ii  libsm6                 2:1.0.3-1+b1      X11 Session Management library
ii  libsmokeqt1            4:3.5.9-1+b1      SMOKE Binding Library to Qt
ii  libstdc++6             4.3.0-4           The GNU Standard C++ Library v3
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxcursor1            1:1.1.9-1         X cursor management library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxft2                2.1.12-2          FreeType-based font drawing librar
ii  libxi6                 2:1.1.3-1         X11 Input extension library
ii  libxinerama1           2:1.0.3-1         X11 Xinerama extension library
ii  libxrandr2             2:1.2.2-1         X11 RandR extension library
ii  libxrender1            1:0.9.4-1         X Rendering Extension client libra
ii  libxt6                 1:1.0.5-3         X11 toolkit intrinsics library
ii  perl                   5.10.0-10         Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.1 5.10.0-10         The Pathologically Eclectic Rubbis
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

libqt-perl recommends no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Bart Martens <bartm@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #10 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Bart Martens <bartm@debian.org>
To: 481642@bugs.debian.org
Subject: libqt-perl: PerlQt-based applications refuse to start
Date: Sun, 18 May 2008 10:40:46 +0200
[Message part 1 (text/plain, inline)]
tags 481642 confirmed help
stop


The example "perl progress.pl" works with libqt-perl version 3.008-3 and
perl 5.8.  It does not work with libqt-perl version 3.008-3+b1 and perl
5.10.  0-day delay NMU to fix this bug is most welcome.

[signature.asc (application/pgp-signature, inline)]

Tags added: confirmed, help Request was from Bart Martens <bartm@debian.org> to control@bugs.debian.org. (Sun, 18 May 2008 08:42:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Vincent Fourmond <fourmond@debian.org>:
Extra info received and forwarded to list. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #17 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Vincent Fourmond <fourmond@debian.org>
To: 481642@bugs.debian.org, control@bugs.debian.org
Subject: Bug481642: working on it
Date: Mon, 19 May 2008 20:05:09 +0200
claim 481642 !
thanks

[please don't forget the -submitter, so I'm aware of your replies ;-)...]

  It seems I have found at least one of the causes of the problem. The

my $a=Qt::Application(\@ARGV);

statement in perl 5.8 causes do_autoload to be called with the following
arguments:

'Qt::Application' 'QApplication' '4'

while in perl 5.10, it is called thus:

'Qt::Application' 'new' '4'

Surely can't work that well...

  I'll try to find a fix or a workaround as soon as possible.

  Cheers,

	Vincent

-- 
Vincent Fourmond, Debian Developer
http://vince-debian.blogspot.com/

find(1):

 A `%' at the end of the format argument causes undefined behaviour
 since there is no following character. In some locales, it may
 hide your door keys, while in others it may remove the final page
 from the novel you are reading.





Information forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Vincent Fourmond <fourmond@debian.org>:
Extra info received and forwarded to list. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #22 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Vincent Fourmond <fourmond@debian.org>
To: 481642@bugs.debian.org
Subject: Bug #481642: escapes my poor perl knowledge
Date: Mon, 19 May 2008 22:12:52 +0200
  Hello,

  I can get it the example to run a little further, but not much
further, and it produces errors I don't understand. We'll need Perl 5.8
to 5.10 transition wizards for that... I'm afraid this problem is way
beyond my Perl skills.

  Cheers,

	Vincent

-- 
Vincent Fourmond, Debian Developer
http://vince-debian.blogspot.com/

find(1):

 A `%' at the end of the format argument causes undefined behaviour
 since there is no following character. In some locales, it may
 hide your door keys, while in others it may remove the final page
 from the novel you are reading.





Information forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Gunnar Wolf <gwolf@gwolf.org>:
Extra info received and forwarded to list. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #27 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Gunnar Wolf <gwolf@gwolf.org>
To: control@bugs.debian.org, 481642@bugs.debian.org
Subject: Re: PerlQt-based applications refuse to start !
Date: Tue, 20 May 2008 10:52:02 -0500
tags 481642 + upstream
thanks

Forwarded to the CPAN Request Tracker,
http://rt.cpan.org/Ticket/Display.html?id=36045 

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF




Tags added: upstream Request was from Gunnar Wolf <gwolf@gwolf.org> to control@bugs.debian.org. (Tue, 20 May 2008 15:54:05 GMT) (full text, mbox, link).


Noted your statement that Bug has been forwarded to http://rt.cpan.org/Public/Bug/Display.html?id=36045. Request was from bartm@debian.org to control@bugs.debian.org. (Tue, 17 Jun 2008 10:54:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Steve Cotton <steve0001@s.cotton.clara.co.uk>:
Extra info received and forwarded to list. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #36 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Steve Cotton <steve0001@s.cotton.clara.co.uk>
To: 481642@bugs.debian.org
Subject: Appears to be caused by a circular dependency
Date: Sat, 30 Aug 2008 15:50:19 +0100
[Message part 1 (text/plain, inline)]
There's a circular dependency between Qt.pm and Qt/debug.pm.
Combining that with this complex autoloader seems to be the source
of the problem.

Forcing the debug module to load before main module works:
  perl -MQt::debug ./aclock.pl
  perl -MQt::debug -MQt ./aclock.pl
the following fails:
  perl -MQt -MQt::debug ./aclock.pl

Breaking the circular dependency by removing either module's "use"
statement makes the module work.

  However, removing it from the debug.pm file means that
  attempting to turn debugging on with either of
    perl -MQt::debug ./aclock.pl
    perl -MQt::debug=verbose ./aclock.pl
  crashes.

  Removing it from the main Qt.pm sounds wrong but seems ok -
  Qt.pm checks the debugging module's variables, but uses fully
  qualified names to do it.  (patch attached)

I haven't understood how this packages's autoloading code does
what it's supposed to, but my cargo cult can get cargo to land.

Steve
[libqt-perl_481642_break_circular_dependency.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bart Martens <bartm@debian.org>:
Bug#481642; Package libqt-perl. (full text, mbox, link).


Acknowledgement sent to Steve Cotton <steve0001@s.cotton.clara.co.uk>:
Extra info received and forwarded to list. Copy sent to Bart Martens <bartm@debian.org>. (full text, mbox, link).


Message #41 received at 481642@bugs.debian.org (full text, mbox, reply):

From: Steve Cotton <steve0001@s.cotton.clara.co.uk>
To: control@bugs.debian.org
Cc: 481642@bugs.debian.org
Subject: 481642 patched
Date: Mon, 1 Sep 2008 18:42:13 +0100
tags 481642 + patch
quit

Delayed over marking this as patched due to the cargo-cultery of
my change.  But it will be better to get it built and tested than
to leave it for a final "what do we do with these RC bugs" sweep.

Leaving it tagged "help" for now.

Steve




Tags added: patch Request was from Steve Cotton <steve0001@s.cotton.clara.co.uk> to control@bugs.debian.org. (Mon, 01 Sep 2008 17:48:04 GMT) (full text, mbox, link).


Reply sent to Marc 'HE' Brockschmidt <he@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Vincent Fourmond <fourmond@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #48 received at 481642-close@bugs.debian.org (full text, mbox, reply):

From: Marc 'HE' Brockschmidt <he@debian.org>
To: 481642-close@bugs.debian.org
Subject: Bug#481642: fixed in libqt-perl 3.008-3.1
Date: Sat, 06 Sep 2008 21:17:40 +0000
Source: libqt-perl
Source-Version: 3.008-3.1

We believe that the bug you reported is fixed in the latest version of
libqt-perl, which is due to be installed in the Debian FTP archive:

libqt-perl_3.008-3.1.diff.gz
  to pool/main/libq/libqt-perl/libqt-perl_3.008-3.1.diff.gz
libqt-perl_3.008-3.1.dsc
  to pool/main/libq/libqt-perl/libqt-perl_3.008-3.1.dsc
libqt-perl_3.008-3.1_i386.deb
  to pool/main/libq/libqt-perl/libqt-perl_3.008-3.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 481642@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marc 'HE' Brockschmidt <he@debian.org> (supplier of updated libqt-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 06 Sep 2008 22:09:32 +0200
Source: libqt-perl
Binary: libqt-perl
Architecture: source i386
Version: 3.008-3.1
Distribution: unstable
Urgency: low
Maintainer: Bart Martens <bartm@debian.org>
Changed-By: Marc 'HE' Brockschmidt <he@debian.org>
Description: 
 libqt-perl - Perl bindings for the Qt library
Closes: 481642
Changes: 
 libqt-perl (3.008-3.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Use patch from Steve Cotton <steve0001@s.cotton.clara.co.uk>
     to break a ``use'' cycle between Qt and Qt::debug. Closes: #481642
Checksums-Sha1: 
 a7c4447721eaba2f3ecb8f41bf6a8676683f7dc8 1148 libqt-perl_3.008-3.1.dsc
 e2aba21496abd3f1c8d3db1aa88e9e5cae409116 5064 libqt-perl_3.008-3.1.diff.gz
 accba75d0f19201a612710219f2fab9df42c2ca9 243510 libqt-perl_3.008-3.1_i386.deb
Checksums-Sha256: 
 b58c014db55f75a7cf4085df7843a76e071ed7b009ab6a2dc828f4585666c758 1148 libqt-perl_3.008-3.1.dsc
 f72e7dae6ad27549740797350eb16a3d0b2d8f476dd3c4586e0445e23aa13dcb 5064 libqt-perl_3.008-3.1.diff.gz
 d5458378e2f84e2f0e433e61c50d3cfb8636a7a1b9fb5f2609a4f2123356efe3 243510 libqt-perl_3.008-3.1_i386.deb
Files: 
 b307f6357326d9ce0202310ef2d5f45f 1148 perl optional libqt-perl_3.008-3.1.dsc
 0ad4f4b47f24adf40b998ca569bd2907 5064 perl optional libqt-perl_3.008-3.1.diff.gz
 2fff09e1a861340d41ca84a37a31bbdf 243510 perl optional libqt-perl_3.008-3.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIwuYqmO5zOp3h7rERAkYsAJwJxX0RQW4icIzCLZYpCC8Bej2jXQCghdJ8
YJSxoMe2xjTwfj8HLQlApzI=
=RPzE
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 06 Nov 2008 07:27:58 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 01:35:43 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.