[PyKDE] patch for spec file
Alan Eldridge
alane at geeksrus.net
Sat Oct 13 21:34:24 BST 2001
Phil, could you please apply this (actually, change whatever you use to
build the spec file to include the LDFLAGS line)? Thanks.
Analysis of building without this patch:
1. If you've got a matching version of PyQt installed, your build will
succeed. However, you will have built an RPM that includes the new .so files
but was built linking against the OLD ones that are already installed. If
they're the exact same build, it won't matter. If they differ, but the
soname still matches, then ...
2. If you don't have a matching version of PyQt installed on the RPM build
system, then the build will fail without the above patch.
---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<---
--- PyQt.spec.or Sat Oct 13 15:08:40 2001
+++ PyQt.spec Sat Oct 13 15:09:06 2001
@@ -26,6 +26,7 @@
%setup
%build
+LDFLAGS="-L$RPM_BUILD_ROOT%{prefix}/lib/python2.1/site-packages" \
./configure --prefix=%{prefix}
make
---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<---
Notes:
1. If you build the RPMS just as a test case, and you've already done the
regular non-RPM build/install, then you're never going to see the problem,
and you're going to get a good RPM.
2. I'm passing this info on to RedHat's KDE/Qt guru Bernard Rosenkraenzer.
He's on holiday, but once he gets back and I have a reply, I'll post that to
the list as well.
3. I now have, since the first time I realized I should learn it, a working
RPM of PyQt. And some cool programs by Doug Bell to use as examples. Thanks
for the bits, Phil. :)
--
Alan Eldridge
from std_disclaimer import *
More information about the PyQt
mailing list