QFileIconProvider undefined in qdirmodel.sip

Bug #708706 reported by CrayzeeWulf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-qt4

The file with problem is /usr/share/sip/PyQt4/QtGui/qdirmodel.sip. The method setIconProvider of class QDirModel has a parameter of type "QFileIconProvider *". However, QFileIconProvider is not declared before SIP encounters this method. The result is that SIP chokes with the following error message:

sip: QFileIconProvider is undefined

A quick and easy way to reproduce this problem is to place the following two lines in a file named "bug-test.sip":

%Module tmp
%Import QtGui/QtGuimod.sip

Then run the following command:

sip -t WS_X11 -t Qt_4_7_0 -I /usr/share/sip/PyQt4 -I /usr/share/sip/PyQt4/QtGui bug-test.sip

This produces the following output:

sip: QFileIconProvider is undefined

The fix is to put the following statement at line#31 in the file /usr/share/sip/PyQt4/QtGui/qdirmodel.sip:

class QFileIconProvider ;

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-qt4-dev 4.7.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Thu Jan 27 07:36:13 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-qt4

Revision history for this message
CrayzeeWulf (mpagey) wrote :
Revision history for this message
Thorben Kroeger (thorben-kroeger) wrote :

I'm also seeing this bug.

Is the above fix really correct?

I came upon this bug trying to build VTK from their git repository. Now that I have applied the fix from above, at least vtk compiles, but on 'import vtk' I get a segfault in sip.so...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.