wxPythonGTK source rpm problem on RH9

Hi there!
Don´t know where to send this question but try here. I downloaded the wxPythonGTK-py2.2-2.4.0.7-rpm and rebuilt it on my redhat 8.0 system. It worked flawlessly. When i upgraded to redhat 9 and tried to rebuild the rpm, the binary was built without problems. But when i was trying to install it rpm complained about dependency problem that libwx_gtkd-2.4.so and three more files including libwx_gtkd_gl-2.4.so was needed. But the files is in the package! The package provides this files itself. When i then verified the package, output showed that no files was there at all! In the package. Though the package was built without problems. Anybody experienced this? And what to do?

Regards P. Ekholm

Hi,

In redhat 9, the macros in rpm got much stricter. It also generates a
debuginfo rpm package which contains the debug-enabled libraries. This
means that the libwx_gtkd*so and libwx_gtk2d_gl*so are placed in the
debuginfo rpm.

Anyway I've managed to solve the dependancy problems and got it installed.

First, install the source rpm and edit the wxPythonGTK.spec file. I had
to add the following line near the top of spec file:

# turn off the generation of debuginfo rpm
%define debug_package %{nil}

Near the main package Provide tags, I've also add the following lines:

%if %{debug_flag}
Provides: libwx_gtk2ud-2.4.so
Provides: libwx_gtk2ud-2.4.so(WXGTK2UD_2.4)
Provides: libwx_gtk2ud_gl-2.4.so
Provides: libwx_gtk2ud_gl-2.4.so(WXGTK2UD_2.4)
%endif

I'm actually building for unicode and GTK2. So for your case, you need
to replace them with libwx_gtkd-2.4.so and the three other dependancies.

Maybe Robin may want to put this in for future use.

Hope this helps,
-najib

* Pär Ekholm <pelle.ekh@koping.net> [2003-04-04 14:55:16 +0200]:

···

Hi there!
Don´t know where to send this question but try here. I downloaded the
wxPythonGTK-py2.2-2.4.0.7-rpm and rebuilt it on my redhat 8.0 system. It
worked flawlessly. When i upgraded to redhat 9 and tried to rebuild the
rpm, the binary was built without problems. But when i was trying to
install it rpm complained about dependency problem that
libwx_gtkd-2.4.so and three more files including libwx_gtkd_gl-2.4.so
was needed. But the files is in the package! The package provides this
files itself. When i then verified the package, output showed that no
files was there at all! In the package. Though the package was built
without problems. Anybody experienced this? And what to do?

Regards P. Ekholm

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
- -- ---- ----------------------------------------- --- -- - -
Najib Ninaba clustermonkey::packagemangler::codecutter
email: najib@remorseful.org
web: www.remorseful.org
- - -- ---- -------- -----------------------------------------

Najib Ninaba wrote:

Hi,

In redhat 9, the macros in rpm got much stricter. It also generates a
debuginfo rpm package which contains the debug-enabled libraries. This
means that the libwx_gtkd*so and libwx_gtk2d_gl*so are placed in the
debuginfo rpm.

Interesting. What version of RPM is this?

Anyway I've managed to solve the dependancy problems and got it installed.

First, install the source rpm and edit the wxPythonGTK.spec file. I had
to add the following line near the top of spec file:

# turn off the generation of debuginfo rpm
%define debug_package %{nil}

Near the main package Provide tags, I've also add the following lines:

%if %{debug_flag}
Provides: libwx_gtk2ud-2.4.so
Provides: libwx_gtk2ud-2.4.so(WXGTK2UD_2.4)
Provides: libwx_gtk2ud_gl-2.4.so
Provides: libwx_gtk2ud_gl-2.4.so(WXGTK2UD_2.4)
%endif

I'm actually building for unicode and GTK2. So for your case, you need
to replace them with libwx_gtkd-2.4.so and the three other dependancies.

Maybe Robin may want to put this in for future use.

Yep I will. What are the lines with "(WXGTK2UD_2.4)" for?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hello,

* Robin Dunn <robin@alldunn.com> [2003-04-04 16:28:02 -0800]:

Interesting. What version of RPM is this?

It's RPM version 4.2.

>Maybe Robin may want to put this in for future use.
>

Yep I will. What are the lines with "(WXGTK2UD_2.4)" for?

I'm not entirely sure. Versioning symbols information? But I had to list
them in order to satisfy the dependancies.

Regards,

···

--
- -- ---- ----------------------------------------- --- -- - -
Najib Ninaba clustermonkey::packagemangler::codecutter
email: najib@remorseful.org
web: www.remorseful.org
- - -- ---- -------- -----------------------------------------

Najib Ninaba wrote:

Maybe Robin may want to put this in for future use.

Yep I will. What are the lines with "(WXGTK2UD_2.4)" for?

I'm not entirely sure. Versioning symbols information? But I had to list
them in order to satisfy the dependancies.

Yes, you are right. I had forgotten about the versioned symbols.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!