FS#15377 - [wxgtk] missing various modules that are essential for rubygems components to work. wxruby

Attached to Project: Arch Linux
Opened by morgan (yossarianuk) - Sunday, 05 July 2009, 11:08 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 21 October 2009, 00:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Wxgtk - is missing various modules that are essential for rubygems components to work. i.e wxruby

i.e : libwx_gtk2u_media-2.8.so.0 There are others also.

If I compile my own version from source there are always there, the arch linux package they are missing.


Additional info:
* package version(s)

2.8.10.1

* config and/or log files etc.

This is an example error:-

[morgan@arch64 iplayer-dl]$ ruby -rubygems -Ilib bin/iplayer-dl-gui
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86_64-linux/lib/wxruby2.so: libwx_gtk2u_media-2.8.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86_64-linux/lib/wxruby2.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86_64-linux/lib/wx.rb:12
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./lib/iplayer/gui/app.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from bin/iplayer-dl-gui:11

- The files are not there (on the drive at all)

Steps to reproduce:

Try and use various rubygems features.
This task depends upon

Closed by  Eric Belanger (Snowman)
Wednesday, 21 October 2009, 00:19 GMT
Reason for closing:  Implemented
Additional comments about closing:  wxgtk-2.8.10.1-5
Comment by Allan McRae (Allan) - Sunday, 05 July 2009, 11:46 GMT
I guess this needs a ruby make/opt-depends.
Comment by morgan (yossarianuk) - Sunday, 05 July 2009, 12:50 GMT
Hi.

Not 100% sure what you mean. Do you want me to type a command ?

If i compile wxgtk from source from the homepage it is fine (using exact same compile options)

I have noticed that the PKGBUILD has (at least on amd64) the normal wtgtk source package is commented out (this is in original PKGBUILD)

#source=(http://downloads.sourceforge.net/wxwindows/wxGTK-${pkgver}.tar.bz2)
source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2)

Comment by Eric Belanger (Snowman) - Friday, 10 July 2009, 05:10 GMT
a ruby makedepends doesn't fix this.

morgan: if you rebuild wxgtk from ABS, does the file gets included? If yes, run namcap on the package and post the output here. It'll help me to find the missing (make)depends.
Comment by morgan (yossarianuk) - Friday, 10 July 2009, 12:38 GMT
Hi building from ABS does not give you the modules...

Building directly from the source .tar.gz file does though??

“Curiouser and curiouser"
Comment by Eric Belanger (Snowman) - Friday, 10 July 2009, 18:47 GMT
then run ldd on the missing libraries, e.g. ldd /usr/lib/libwx_gtk2u_media-2.8.so.0
Paste the output in a file and attach it here.

And use http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2 for the source. The wxpython source tarball also contains the source for wxgtk. It is more up-to-date than the source on the wxgtk home page and it is needed sometime to build/run the latest wxpython.
Comment by Matt (v01d) - Wednesday, 14 October 2009, 20:14 GMT
Hi,
I'm getting the same problem and I suspect that it is due to not using --enable-mediactrl (which is fixed in wxgtk-media on AUR). Couldn't this version be oficially supported?
Comment by Eric Belanger (Snowman) - Wednesday, 14 October 2009, 20:54 GMT
I should've thought about the --enable-mediactrl option. This has already been asked before but the issue is that it brings a gstreamer depends ( FS#11756 ). There seem to be some interest in this ( FS#14254 ) though so I might reconsider. Personally, I don't mind enabling mediactrl but some users might. It looks like gconf won't be a depends anymore so I might do it.
Comment by Matt (v01d) - Wednesday, 14 October 2009, 21:05 GMT
Well, I've tried wxgtk-media and it doesn't compile, so there's some fixing involved. In any case, I think that it isn't about users not liking a dependency, it is a matter of a missing dependency which doesn't let something work (wxruby isn't something minor I think). Thank you for considering it.
Comment by xhh (cooky) - Saturday, 17 October 2009, 15:42 GMT
This issue is still "Waiting on Response"? I've got the problem too. As describing at http://bbs.archlinux.org/viewtopic.php?pid=577614
it seems I have to build wxgtk from source to use wxruby from rubygems :(
Comment by Eric Belanger (Snowman) - Saturday, 17 October 2009, 16:34 GMT
If I have time this week-end, I'll look into this.
Comment by xhh (cooky) - Saturday, 17 October 2009, 16:51 GMT
Thanks Eric!
I'm not sure if the "media-ctrl" feature should be introduced the "wxgtk" library, but I fixed the problem by compiling the wxgtk source with --enable-mediactrl and copy libwx_gtk2u_media-2.8.so (linked to libwx_gtk2u_media-2.8.so.0.6.0 finally) to /usr/lib (I installed wxgtk with pacman before that).
Comment by Matt (v01d) - Monday, 19 October 2009, 02:27 GMT
Myself I can't compile wxgtk with --enable-mediactrl (it fails when looking for libGL and such, and if I disable opengl, it fails later during compiling).
On the other hand, maybe you should take this into account:

http://bbs.archlinux.org/viewtopic.php?id=60196

(the last post specially, since that user tells that it gets the expected behavior only by using the standard wxgtk sources (not wxPython's))
Comment by xhh (cooky) - Monday, 19 October 2009, 03:49 GMT
I compiled with the source from http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.10.tar.gz and with the option "--enable-shared" as well as "--enable-mediactrl", and the compilation completed successfully.
Comment by Eric Belanger (Snowman) - Monday, 19 October 2009, 19:36 GMT
Mike: You'll need to post the error message (and the config.log if it fails during the configure stage) otherwise I can't help you with the opengl problem as I don't get this error. The wxPython source is working here. They are released more frequently than the wxgtk'one and sometime they are necessary to make wxpython build/work.

xhh: --enable-shared is the default. Adding it explicitely should't change anything.

Status: When building outside my chroot, in addition to the libwx_gtk2u_media-2.8.so library, a libwx_gtk2u_mmedia-2.8.so (note the double m) is also created. I'm not sure if it's needed here but I'm trying to find the required makedepends so I can include it as well.

To build, you'll need the patch I'm attaching.

FTR, the wxgtk-media PKGBUILD in AUR is missing a gconf makedepends.

Loading...