Bug 190189 (PyQt4) - Review Request: PyQt4: Python bindings for Qt4
Summary: Review Request: PyQt4: Python bindings for Qt4
Keywords:
Status: CLOSED ERRATA
Alias: PyQt4
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 214193 289321
Blocks: 240373
TreeView+ depends on / blocked
 
Reported: 2006-04-28 16:50 UTC by Rex Dieter
Modified: 2009-07-02 18:46 UTC (History)
10 users (show)

Fixed In Version: 4.2-8.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-15 21:29:42 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)
rpmlint output for PyQt4-devel package (24.50 KB, text/plain)
2007-05-15 21:51 UTC, Bryan O'Sullivan
no flags Details

Comment 1 Rex Dieter 2006-04-28 16:52:41 UTC
For devel/fc6 branch only, since it requires sip >= 4.4.2
Also requires qt4 (see bug #188180)

Comment 2 Rex Dieter 2006-05-12 17:20:13 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4-4.0-0.6.beta1.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.0-0.6.beta1.src.rpm

%changelog
* Fri May 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.6.beta1
- drop BR: qt4-MySQL qt4-ODBC qt4-PostgreSQL
- drop usage of (undefined) %%sip_min

Comment 3 Rex Dieter 2006-07-19 15:41:35 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.0.1-1.src.rpm

%changelog
* Sun Jul 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-1
- PyQt-4.0.1

* Mon Jun 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-1
- PyQt-4.0(final)
- BR: sip-devel >= 4.4.4 (see bug #199430)


Comment 4 John Mahowald 2006-07-29 22:03:30 UTC
Not building on x86_64:

+ /usr/bin/python configure.py -q /usr/bin/qmake4
Error: /usr/bin/qmake4 failed to create a makefile. Make sure you have a
working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a
working Qt v4 qmake.
Determining the layout of your Qt installation...

Comment 5 Rex Dieter 2006-07-30 18:13:22 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.0.1-2.src.rpm

%changelog
* Sat Jul 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-2
- fix reference(s) to qmake(4)


Comment 6 John Mahowald 2006-08-18 16:54:53 UTC
Build failed. devel x86_64.

Traceback (most recent call last):
  File "configure.py", line 1132, in ?
    main(sys.argv)
  File "configure.py", line 1099, in main
    pyqt.check_modules()
  File "configure.py", line 124, in check_modules
    check_module("QtGui", "qwidget.h", "QWidget()")
  File "configure.py", line 403, in check_module
    if check_class(incfile, ctor, mname):
  File "configure.py", line 430, in check_class
    return compile_qt_program(cfgtest, mname)
  File "configure.py", line 359, in compile_qt_program
    exe, build = makefile.build_command(name)
  File "/usr/lib64/python2.4/site-packages/sipconfig.py", line 1622, in
build_command
    build.append(self.required_string("CXX"))
  File "/usr/lib64/python2.4/site-packages/sipconfig.py", line 781, in
required_string
    raise ValueError, "\"%s\" must have a non-empty value" % name
ValueError: "CXX" must have a non-empty value


Comment 7 Rex Dieter 2006-08-18 17:26:43 UTC
Offhand, I'd say looks like a bug in sip.  It's not returning a value for CXX.

Comment 8 Rex Dieter 2006-08-18 17:30:07 UTC
On my rhel4 box, with latest sip
/usr/lib/python2.3/site-packages/sipconfig.py contains
   'CXX':                      'g++'

What does your sipconfig contain?

Comment 9 Rex Dieter 2006-08-28 12:20:55 UTC
FYI, PyQt4 doesn't build against qt4-4.2 (yet), so don't bother trying to build
on/for fc6.

Comment 10 Rex Dieter 2006-08-28 12:24:13 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.0.1-3.src.rpm

%changelog
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-3
- BR: qt4-devel < 4.2


Comment 11 Rex Dieter 2006-10-11 14:26:31 UTC
qt4-4.2.0 support appears imminent:
http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ChangeLog
*cross fingers*

Comment 12 Rex Dieter 2006-11-06 14:26:45 UTC
Woo hoo, the wait is finally over.  The bad news is that PyQt4-4.1 requires sip-4.5

Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.1-1.src.rpm

%changelog
* Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1-1
- PyQt4-4.1


Comment 13 Rex Dieter 2006-11-06 21:35:43 UTC
FYI, sip-4.5 has been added to rawhide, see bug #214193

Comment 14 Rex Dieter 2006-11-29 17:59:50 UTC
Yay, sip-4.5 will also be landing on FC-5/FC-6 soon too (currently in
updates-testing), see bug #208847



Comment 15 Neal Becker 2006-12-08 01:09:11 UTC
rpmbuild --rebuild PyQt4-4.1-1.src.rpm 
[ ... chug ...]
ERROR   0001: file '/usr/bin/pylupdate4' contains a standard 
rpath '/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/pyrcc4' contains a standard rpath '/usr/lib64' in 
[/usr/lib64]

Comment 16 Neal Becker 2006-12-08 12:50:47 UTC
I'm trying /usr/share/doc/PyQt4-devel-4.1/examples/tools/qtdemo/qtdemo.py.

Don't know who's causing this, but view an example, (say, main window), and 
click on "Show Documentation" doesn't work.  Shows raw xml and complains about 
not being able to find stuff under PyQt3-something.

Comment 17 Rex Dieter 2006-12-08 14:53:27 UTC
AFAICT, the qtdemo.py example likely only works 100% if you have qt4-doc
installed (it worksforme).  Then, you can compare qtdemo.oy against how
qtdemo-qt works (it should be identical).

Comment 18 Neal Becker 2006-12-08 14:57:16 UTC
rpm -q qt4-doc
qt4-doc-4.2.2-1.fc6

Must be some other problem.

Comment 19 Rex Dieter 2006-12-08 14:59:49 UTC
you may also have qt-devel-docs installed (?), which may be interfering (they
both provide something called qtdemo).

Comment 20 Neal Becker 2006-12-08 15:02:28 UTC
rpm -q qt-devel-docs
package qt-devel-docs is not installed


Comment 21 Rex Dieter 2006-12-08 15:11:39 UTC
OK, it's qt-devel's 'assistant' running interference (not qt's qtdemo) here.

Comment 22 Rex Dieter 2006-12-08 15:13:59 UTC
Root cause of problems running with "Show Documentation", is that it assumes the
presence of qt4's assistant, which we install as assistant-qt4 (to avoid file
conflicts with qt(3)'s assistant).

Comment 23 Rex Dieter 2006-12-08 16:30:36 UTC
Here's a quick-n-dirty workaround:
export PATH=/usr/lib/qt4/bin:$PATH (or /usr/lib64/qt4/bin if on x86_64)
before running qtdemo.py


Comment 24 Rex Dieter 2006-12-14 16:32:29 UTC
PyQt4-4.1.1 hit the streets, (haven't had a chance to track down the rpath
issue(s) yet):

%changelog
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]usres.sf.net> 4.1.1-1
- PyQt4-4.1.1
- BR: sip-devel >= 4.5.1

Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.1.1-1.src.rpm

Bad news, is that this *again* needs a sip upgrade.  *sigh*.  Maybe we'll have
to resign ourselves to target this only for F*7.


Comment 25 Rex Dieter 2007-04-12 14:27:00 UTC
%changelog
* Wed Apr 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-1
- PyQt4-4.2

Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.stable/PyQt4-4.2-1.src.rpm




Comment 26 Bryan O'Sullivan 2007-05-15 21:18:10 UTC
SPEC URL problem: You don't have permission to access
/apt/kde-redhat/SPECS/PyQt4.spec on this server.

Comment 27 Bryan O'Sullivan 2007-05-15 21:51:04 UTC
Source RPM passes rpmlint OK, but there are problems with the binary packages:

$ rpmlint /home/bos/downloads/RPMS/x86_64/PyQt4-4.2-1.fc7.x86_64.rpm
E: PyQt4 non-executable-script
/usr/lib/python2.5/site-packages/PyQt4/uic/pyuic.py 0644
E: PyQt4 script-without-shebang /usr/bin/pyuic4
E: PyQt4 binary-or-shlib-defines-rpath
/usr/lib/python2.5/site-packages/PyQt4/QtDesigner.so
['/home/bos/downloads/BUILD/PyQt-x11-gpl-4.2/qpy/QtDesigner']

The first of these is a non-problem, but the second two are definitely issues. 
You can use chrpath to remove the rpath from the shared object if necessary.

I'm attaching the rpmlint warnings for the -devel package, because they're
voluminous.  Some of them can be ignored (the dependency on /usr/bin/env), but
the spurious perms should be fixed.

Comment 28 Bryan O'Sullivan 2007-05-15 21:51:38 UTC
Created attachment 154779 [details]
rpmlint output for PyQt4-devel package

Comment 29 Rex Dieter 2007-05-16 15:37:47 UTC
thanks, it'll likely be a few days (at least) before I get to updating anything
here (working on F7 kde stuff), so any other feedback, MUST blockers you find in
the meantime would be helpful.



Comment 30 Alex Lancaster 2007-07-11 02:34:08 UTC
Any movement on this package?  It would be great to get PyQt4 into Fedora >=7
because I need it for packaging the new version of Picard (MusicBrainz tagger):  

http://wiki.musicbrainz.org/PicardQt

I can pick up the review, if necessary.

Comment 31 Bryan O'Sullivan 2007-07-11 02:54:52 UTC
Alex: feel free to reassign to yourself, if you have time for this :-)

Comment 32 Alex Lancaster 2007-07-11 03:04:02 UTC
(In reply to comment #31)
> Alex: feel free to reassign to yourself, if you have time for this :-)

Thanks, I'll wait until I hear from Rex about the status of the package and see
how much time I have then... ;)  Otherwise, will you continue to review the package?

Comment 33 Rex Dieter 2007-07-11 11:37:41 UTC
all that's missing is a review(er), only outstanding issues are those from
comment #27.  Patches welcome. :)

Comment 34 Bryan O'Sullivan 2007-07-16 23:30:21 UTC
Rex: I have time to review this, but not to generate patches against the
problems in comment #27.  Given that, how would you like to proceed?

Comment 35 Rex Dieter 2007-07-16 23:34:45 UTC
review, as usual, I'll (eventually) deal with all blockers (oddly, I didn't see
any rpath issues in my own mock builds, but maybe I missed something).

Comment 36 Neal Becker 2007-07-17 00:03:11 UTC
I tried this on fc7 and needed a couple of changes.  I don't know what are the 
best fixes.
diff -r f680525e26ba PyQt4.spec
--- a/PyQt4.spec	Mon Jul 16 20:02:14 2007 -0400
+++ b/PyQt4.spec	Mon Jul 16 20:02:27 2007 -0400
@@ -57,8 +57,9 @@ fi
 %build
 
 #QT4DIR="$(pkg-config --variable=prefix QtCore || echo %{_libdir}/qt4)"
-QT4DIR=%{_qt4_prefix}
-PATH=%{_qt4_bindir}:$PATH ; export PATH
+#QT4DIR=%{_qt4_prefix}
+QT4DIR=/usr/lib64/qt4
+PATH=$QT4DIR/bin:$PATH ; export PATH
 # configure.py isn't smart enough to either use qmake or QMAKEPATH
 QMAKESPEC=$QT4DIR/mkspecs/linux-g++; export QMAKESPEC
 %if "%{_lib}" == "lib64"
@@ -75,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT
 
+chrpath --delete 
$RPM_BUILD_ROOT/usr/lib/python2.5/site-packages/PyQt4/QtDesigner.so 
 
 %clean
 rm -rf $RPM_BUILD_ROOT

Comment 37 Rex Dieter 2007-07-17 12:58:32 UTC
%_qt4_prefix,%_qt4_bindir is (should be!) defined by qt4-devel's
/etc/rpm/macros.qt4, but %{_qt4_bindir} is broken in qt4 < 4.3.0-8 (4.3.0-8 is
currently in updates-testing).

I'll fix it so that it "just works", and add the chrpath in the next build. 
Still awaiting review blockers... (Bryan?).



Comment 38 Rex Dieter 2007-07-17 19:26:12 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4-4.2-2.src.rpm

%changelog
* Tue Jul 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-2
- remove rpath from QtDesigner.so
- BR: qt4-devel > 4.3.0-8


Comment 39 Neal Becker 2007-07-17 21:04:26 UTC
Will this work on f7?  yum  --enablerepo=updates-testing info qt4-devel
shows only qt4-devel-4.3.0-2.bc7

Comment 40 Rex Dieter 2007-07-17 21:08:28 UTC
qt-4.3.0-8 had been in updates-testing for ~1 week, pushed to stable today.

Comment 41 Bernhard Schauer 2007-07-24 09:07:00 UTC
In the spec file that comes with #38 there is an error in the install section:

# fix/remove rpath
chrpath --delete $RPM_BUILD_ROOT%{_python_sitelib}/PyQt4/QtDesigner.so

_python_sitelib should be python_site_lib, cause the first one is never defined.

Comment 42 Bernhard Schauer 2007-07-24 09:11:32 UTC
ok. also my version was wrong: python_sitelib should be the name...

Comment 43 Rex Dieter 2007-07-30 20:31:00 UTC
fyi, PyQt-4.3 released today, but it requires sip-3.7 (not yet in rawhide), so
please continue with review of PyQt4-4.2.

Alex, Bryan?




Comment 44 Bryan O'Sullivan 2007-07-30 20:41:06 UTC
I'll have a more complete review up later today.

Comment 45 Bryan O'Sullivan 2007-07-30 21:06:26 UTC
OK, here's my review.

The following files most likely belong in the -devel package, not the main PyQt4
package:

/usr/bin/pylupdate4
/usr/bin/pyrcc4
/usr/bin/pyuic4

Must fix rpmlint errors:

E: PyQt4 non-executable-script
/usr/lib/python2.5/site-packages/PyQt4/uic/pyuic.py 0644
E: PyQt4 script-without-shebang /usr/bin/pyuic4
E: PyQt4 binary-or-shlib-defines-rpath
/usr/lib/python2.5/site-packages/PyQt4/QtDesigner.so
['/home/bos/rpms/BUILD/PyQt-x11-gpl-4.2/qpy/QtDesigner']

Also, it would be good to fix the 228 (!) rpmlint warnings on the -devel
package, which I attached several months ago.

Beyond the above, all other MUSTs look good.

Comment 46 Rex Dieter 2007-08-02 18:16:36 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4-4.2-3.src.rpm

%changelog
* Thu Aug 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-3
- fix python_sitelib typo (wrt chrpath call)
- move %%_bindir stuff to -devel
- mark %%doc examples non-executable
- add shebang to %%_bindir/pyuic4


Comment 47 Rex Dieter 2007-08-17 12:16:44 UTC
ping Bryan, afaict, I've fixed the MUST items you asked for...

Comment 48 Mamoru TASAKA 2007-08-17 17:55:08 UTC
I just did a quick look and have not rechecked this package
fully, however:

* Rebuild fails at least on ppc64
  http://koji.fedoraproject.org/koji/taskinfo?taskID=107108
* This package contains arch-dependent modules and putting them under
  python_sitelib is not proper.
* Please update license tag.
* Would you have any idea what is causing rpath issue?
  the build log on i386 can be found under:
  http://koji.fedoraproject.org/koji/taskinfo?taskID=107155
  (I have not checked the build log)

Comment 49 Rex Dieter 2007-08-17 19:52:49 UTC
> sitelib, license tag

Will have to wait till next week when/if I have time (at least the sitelib 
part).

> * Rebuild fails at least on ppc64

some qt4 stuff has issues there, maybe not PyQt4's fault, but hard to 
speculate based on the build.log.

> rpath issue?
should be gone, we're now using chrpath -delete



Comment 50 Mamoru TASAKA 2007-08-26 06:06:44 UTC
ping?

Comment 51 Rex Dieter 2007-08-26 17:07:57 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4-4.2-4.src.rpm

%changelog
* Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-4
- use %%python_sitearch
- License: GPLv2


Comment 52 Rex Dieter 2007-08-26 17:11:30 UTC
The previous ppc64 issue was qt4's fault, which should be fixed latest qt4 
builds.

Comment 53 Mamoru TASAKA 2007-08-26 17:42:17 UTC
Still seems to not okay? (I just tried to rebuild -4 and
have not checked -4 yet)

http://koji.fedoraproject.org/koji/taskinfo?taskID=130289

Comment 54 Rex Dieter 2007-08-26 20:49:48 UTC
specfile had a typo in python_sitearch macro. respun .spec,srpm.

Comment 55 Rex Dieter 2007-08-26 22:30:07 UTC
ok, respun a second time, with successful build to confirm (see x86_64 dir in
spec/srpm URL).

Comment 56 Mamoru TASAKA 2007-08-27 01:30:42 UTC
(In reply to comment #55)
> ok, respun a second time, with successful build to confirm (see x86_64 dir in
> spec/srpm URL).

Do you mean the following?
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/x86_64/PyQt4-4.2-4.fc8.src.rpm

If so it is not okay yet.
http://koji.fedoraproject.org/koji/taskinfo?taskID=130842

Comment 57 Rex Dieter 2007-08-27 01:58:37 UTC
OK, so ppc64 is screwed atm, that isn't a blocker, i hope?

Comment 58 Mamoru TASAKA 2007-08-27 02:17:28 UTC
Well, then I will recheck -4 after I have lunch.

Comment 59 Mamoru TASAKA 2007-08-27 06:08:52 UTC
For 4.2-4:

** First from build log:
* Possibly missing files
----------------------------------------------------------
make[1]: Entering directory `/builddir/build/BUILD/PyQt-x11-gpl-4.2/designer'
install -m 755 -p "libpythonplugin.so"
"/usr/lib/qt4/plugins/designer/libpythonplugin.so"
install: cannot create regular file
`/usr/lib/qt4/plugins/designer/libpythonplugin.so': Permission denied
make[1]: [install_target] Error 1 (ignored)
cp -f -r /builddir/build/BUILD/PyQt-x11-gpl-4.2/designer/python
/usr/lib/qt4/plugins/designer/
cp: cannot create directory `/usr/lib/qt4/plugins/designer/python': Permission
denied
make[1]: [install_python] Error 1 (ignored)
----------------------------------------------------------
   - And it seems all files which may supposed to be installed
     under %_libdir/qt4/plugins/designer are missing.

* Dependency for -devel subpackage
  - I don't know about *.sip files well, however it seems that
    *.sip files included in -devel subpackage requires qt4-devel
    for "Requires".

* About "Qt License Agreement"
  - What does the following statement mean? (what is "valid
    Qt License Agreement"?)
#############################################################################
##
## Copyright (C) 2006-2006 Trolltech ASA. All rights reserved.
##
## This file is part of the example classes of the Qt Toolkit.
##
## Licensees holding a valid Qt License Agreement may use this file in
## accordance with the rights, responsibilities and obligations
## contained therein.  Please consult your licensing agreement or
## contact sales if any conditions of this licensing
## agreement are not clear to you.
##
## Further information about Qt licensing is available at:
## http://www.trolltech.com/products/qt/licensing.html or by
## contacting info.
##
## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
##
#############################################################################

* Source
  - I tried to download source tarball from URL written as Source0,
    however it is not found.
    Also, the newest seems 4.3.

Comment 60 Rex Dieter 2007-08-27 19:22:11 UTC
> licensing

http://www.trolltech.com/products/qt/licensing.html
"Qt Open Source Edition Licensing"
addesses that, in short, qt(4) can/is dual licensed QPL/GPLv2, but as far as
fedora is concerned, it's only GPLv2


> Re: -devel Requires: qt4-devel

agreed.


> Re: designer plugin issue(s)

My builds mention:
The Designer plugin will be installed in /usr/lib64/qt4/plugins/designer
near the beginning, but then doesn't actually ever does anything with it. ??


> Re:  the newest seems 4.3.

Which requires a newer version of sip than we have in fedora/rawhide atm (per
comment #43 )


Comment 61 Mamoru TASAKA 2007-08-28 01:36:21 UTC
(In reply to comment #60)

> > Re: designer plugin issue(s)
> 
> My builds mention:
> The Designer plugin will be installed in /usr/lib64/qt4/plugins/designer
> near the beginning,
This is the same for i386 (with /usr/lib64 changed to /usr/lib)

> but then doesn't actually ever does anything with it. ??
The real issue is that, rebuild tries to install some files under
%_libdir/qt4/plugins/designer _directly_, not under 
$RPM_BUILD_ROOT%_libdir/qt4/plugins/designer.

> 
> > Re:  the newest seems 4.3.
> 
> Which requires a newer version of sip than we have in fedora/rawhide atm (per
> comment #43 )
Okay.
> 



Comment 62 Mamoru TASAKA 2007-09-05 15:36:32 UTC
ping?

Comment 63 Rex Dieter 2007-09-05 15:57:06 UTC
%changelog
* Mon Aug 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-5
- -devel: Requires: qt4-devel

spec (same URL): http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec

Re: designer plugin:   it's not building, so nothing gets installed, no failures
here.  Long term, this can/should be fixed, but hopefully it's not a blocker (I
don't have the time/nrg to debug this atm).

Comment 64 Mamoru TASAKA 2007-09-06 12:47:52 UTC
(In reply to comment #63)
> Re: designer plugin:   it's not building, so nothing gets installed,
> no failures here. 
  - Well, what do you mean here? build.log shows:
-----------------------------------------------
rm -f libpythonplugin.so
g++ -shared -o libpythonplugin.so pluginloader.o moc_pluginloader.o   
-L/usr/lib -lpython2.5 -lQtScript -lQtXml -lQtGui -L/usr/X11R6/lib -lQtCore
-lQtDesigner -lpthread 
make[1]: Leaving directory `/builddir/build/BUILD/PyQt-x11-gpl-4.2/designer'
-----------------------------------------------
   So the seemingly-plugin "libpythonplugin.so" seems to be created
   actually, however installing this fails due to the issue
   on comment 59.

Comment 65 Rex Dieter 2007-09-06 13:34:52 UTC
my build.log doesn't include that, nor do my builds fail.  ??
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/x86_64/build.log

Comment 66 Mamoru TASAKA 2007-09-06 14:12:09 UTC
(In reply to comment #65)
> my build.log doesn't include that, nor do my builds fail.  ??
> http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/x86_64/build.log

Umm.. Actually it seems that ( for 4.2-5 ) libpythonplugin.so is 
built on both i386, ppc, but not on x86_64.

http://koji.fedoraproject.org/koji/getfile?taskID=149620&name=build.log
http://koji.fedoraproject.org/koji/getfile?taskID=149622&name=build.log
http://koji.fedoraproject.org/koji/getfile?taskID=149624&name=build.log

I found that on x86_64 build log says:
-----------------------------------------------------
Creating pyrcc4 Makefile...
Qt Designer plugin disabled because Python library is static <====
Creating pyqtconfig.py...
+ make -j2
------------------------------------------------------
Perhaps this needs investigating (on i386, ppc this comment is not seen)

Comment 67 Rex Dieter 2007-09-13 13:35:44 UTC
per comment #47...
ping Bryan, afaict, I've fixed the MUST items you asked for...

Comment 68 Mamoru TASAKA 2007-09-13 13:40:26 UTC
Rex, so how do you deal with libpythonplugin.so?

Comment 69 Rex Dieter 2007-09-13 13:52:28 UTC
It appears the configure.py isn't 64bit clean, hard-coding some library paths
-L.../lib looking for libpython, hopefully shouldn't be too hard to fix.

Comment 70 Rex Dieter 2007-09-13 13:56:35 UTC
Arg, looks like a bug in sip,
/usr/lib64/python2.5/site-packages/sipconfig.py
contains:
    'py_lib_dir':       '/usr/lib/python2.5/config',
should be:
    'py_lib_dir':       '/usr/lib64/python2.5/config',

Comment 71 Mamoru TASAKA 2007-10-01 12:59:47 UTC
Rex, now sip is updated (for rawhide/F-7, F-7 sip is perhaps
waiting for being pushed), would you check if your PyQt srpm works
with the newest sip?

Comment 72 Rex Dieter 2007-10-03 15:35:16 UTC
sync'd my local rawhide mirror, testing builds now...

Comment 73 Rex Dieter 2007-10-03 16:47:31 UTC
Ugh, still broken, must be something else now.

Brian hasn't responded for 2+ mos, removing his review assignment so that
someone else can step in.

Comment 74 Rex Dieter 2007-10-03 16:57:42 UTC
(sorry, Bryan, my bad for the mispelling)

Comment 75 Rex Dieter 2007-10-03 17:24:56 UTC
OK, patched that (similar prob as with the sip bug, dev's *assuming* python
installed into prefix/lib):

Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4-4.2-6.src.rpm

%changelog
* Wed Oct 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-6
- 64bit QtDesigner patch


Comment 76 Mamoru TASAKA 2007-10-03 18:14:47 UTC
Assigning to me.

Comment 77 Mamoru TASAKA 2007-10-04 06:49:24 UTC
* Well, still installing libpythonplugin.so is not good.

make[1]: Entering directory `/builddir/build/BUILD/PyQt-x11-gpl-4.2/designer'
install -m 755 -p "libpythonplugin.so"
"/usr/lib64/qt4/plugins/designer/libpythonplugin.so"
install: cannot create regular file
`/usr/lib64/qt4/plugins/designer/libpythonplugin.so': Permission denied
make[1]: [install_target] Error 1 (ignored)
cp -f -r /builddir/build/BUILD/PyQt-x11-gpl-4.2/designer/python
/usr/lib64/qt4/plugins/designer/

Here libpythonplugin.so is surely rebuilt, however make tries
to install the plugin directly under %_libdir/qt4/plugins/designer, 
which must be %buildroot%_libdir/qt4/plugins/designer/

* Still fails on ppc64
  http://koji.fedoraproject.org/koji/taskinfo?taskID=181782
  Please mark ppc64 as ExcludeArch.

Comment 78 Rex Dieter 2007-10-04 12:52:22 UTC
Crazy, something must be different in my mock setup, because I certainly don't
see that, see
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/i386
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/x86_64
guess I'm going to have to give koji scratch builds a try.

Regardless, I hope that quirks between build environments isn't grounds for
blocking the review.

Comment 79 Rex Dieter 2007-10-04 12:54:02 UTC
OK, double-checked, my build.log contains that too, 
install -m 755 -p "libpythonplugin.so"
"/usr/lib/qt4/plugins/designer/libpythonplugin.so"
install: cannot create regular file
`/usr/lib/qt4/plugins/designer/libpythonplugin.so': Permission denied
make[1]: [install_target] Error 1 (ignored)
...
it's just not a fatal error.

Comment 80 Mamoru TASAKA 2007-10-04 13:30:04 UTC
Although make says it is not fatal, the fact that libpythonplugin.so
is not installed correctly should be fixed.

Comment 81 Rex Dieter 2007-10-04 13:43:37 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4.spec
SRPM URL:
http://kde-redhat.unl.edu/apt/kde-redhat/SOURCES/PyQt4/PyQt4-4.2-7.src.rpm

%changelog
* Thu Oct 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-7
- fix QtDesigner plugin install


Comment 82 Rex Dieter 2007-10-04 13:52:19 UTC
oh, and just added
ExcludeArch: ppc64 
for now, until I get a chance to take a closer look.

Comment 83 Mamoru TASAKA 2007-10-04 15:21:00 UTC
Okay.

-------------------------------------------------------
    This package (PyQt4) is APPROVED by me
-------------------------------------------------------


Comment 84 Rex Dieter 2007-10-04 15:31:41 UTC
Rock, thanks for the review.

New Package CVS Request
=======================
Package Name: PyQt4
Short Description: Python bindings for Qt4
Owners: rdieter,than
Branches: FC-6 F-7 F-8 EL-5
InitialCC:
Cvsextras Commits: no

Comment 85 Jason Tibbitts 2007-10-04 19:39:27 UTC
CVS done.

Comment 86 Rex Dieter 2007-10-05 14:49:29 UTC
imported, initial builds done.

Comment 87 Mamoru TASAKA 2007-10-05 15:01:53 UTC
(Reopening to reassign)

Comment 88 Fedora Update System 2007-10-08 14:59:35 UTC
PyQt4-4.2-8.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update PyQt4'

Comment 89 Fedora Update System 2007-10-15 21:29:40 UTC
PyQt4-4.2-8.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.