Vaclav,
I think a much better approach would be to install independent
(=non-conflicting) version of wxGTK for the needs of this wxPython
package. For example, it could be in /usr/lib/wxPython and your .spec
file would install it like this:
cd wxGTK-*
./configure --prefix=/usr/lib/wxPython --disable-soname
make && make install
The important part is --disable-soname, Python module will then always
look for /usr/lib/wxPython/lib/libwxgtk-2.3.so.1 and _not_ for
libwxgtk-2.3.so.1 in LD_LIBRARY_PATH or /etc/ld.so.conf paths.
I've been playing with this but had to do a bit more to get it working.
When built as described above the wxPython binaries are still trying to load
the wxGTK libs from the LD_LIBRARY_PATH or ld.so.conf paths.
What is needed is that the wxPython .so's need to be linked with the -rpath
option to prepend /usr/lib/wxPython/lib to the search path at runtime. I've
verified that adding "-Wl,-rpath -Wl,/usr/lib/wxPython/lib" does work, but
does it make sense to do it this way?
Anyway, I've made some simple changes to configure.in and wx-config.in but
since I've avoided that as much as possible in the past I'm hoping that you
would take a quick look at it. Patches attached. Should it also check that
the compiler/linker supports -rpath or just trust the user running
configure?
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
begin 666 rpath.patch
M26YD97@Z(&-O;F9I9W5R92YI;@H]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]"E)#
M4R!F:6QE.B O:&]M92]W>&-V<R]W>%=I;F1O=W,O8V]N9FEG=7)E+FEN+'8*
M<F5T<FEE=FEN9R!R979I<VEO;B Q+C4X-@ID:69F("UU("TT("UB("UR,2XU
M.#8@8V]N9FEG=7)E+FEN"BTM+2!C;VYF:6=U<F4N:6X),3D@2G5L(#(P,#(@
M,3DZ,C$Z-#D@+3 P,# ),2XU.#8**RLK(&-O;F9I9W5R92YI;@DS,"!*=6P@
M,C P,B P,3HP,CHQ-R M,# P, I 0" M-S,V+#@@*S<S-BPQ-2! 0 H@"B!7
M6%]!4D=?14Y!0DQ%*&-O;7!A=#(P+" @(" @(%L@("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q/0U],24)30 H@(" @(" @
?9FD*( H@(" @(" @.SL*(" @(" M+6=L+6QI8G,I"@``
`
end