Bug 103600 - xmms2-scrobbler-0.1.2 won't start
Summary: xmms2-scrobbler-0.1.2 won't start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexander Botero-Lowry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 02:20 UTC by Sergei Riaguzov
Modified: 2006-12-17 10:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Riaguzov 2006-09-25 02:20:17 UTC
xmms2-scrobbler-0.1.2 port won't work after install even if the appropriate port (rubygem-event-loop-0.2) is installed:

=== Cut ===
[muf@cocaine /usr/ports]$ xmms2-scrobbler
/usr/local/bin/xmms2-scrobbler:27:in `require': no such file to load -- event-loop (LoadError)
        from /usr/local/bin/xmms2-scrobbler:27
=== Cut ===

This is because before you can do require 'event-loop' you should do a require 'rubygems'. Then it will start.

Fix: 

Add 

require 'rubygems'

before

require 'event-loop'

in 

/usr/local/bin/xmms2-scrobbler
How-To-Repeat: Just install the latest (as I'm writing it) xmms2-scrobbler-0.1.2 with rubygem-event-loop-0.2 and try to start xmms2-scrobbler.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-25 02:33:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alexbl

Over to maintainer
Comment 2 Alexander Botero-Lowry freebsd_committer freebsd_triage 2006-09-28 05:30:27 UTC
State Changed
From-To: open->feedback

After speaking with the developer, he told me that the canonical way to deal 
with this issue is not to require rubygem but rather to set the enviornmental 
vasriable RUBYOPT to rubygem like: 

setenv RUBYOPT rubygems 

Could you confirm that this resolves the problem for you?
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2006-12-12 13:08:38 UTC
Hi,

I just encountered the same problem with xmms2-scrobbler and can confirm
that starting xmms2d with "env RUBYOPT=rubygems xmms2d" helps.

Stefan
Comment 4 dfilter service freebsd_committer freebsd_triage 2006-12-17 10:48:43 UTC
alexbl      2006-12-17 10:48:36 UTC

  FreeBSD ports repository

  Modified files:
    audio/xmms2-scrobbler Makefile 
  Log:
   - switch to devel/ruby-event-loop  to resolve bug with rubygems usage [1]
  
  PR:             103600 [1]
  
  Revision  Changes    Path
  1.4       +2 -2      ports/audio/xmms2-scrobbler/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Alexander Botero-Lowry freebsd_committer freebsd_triage 2006-12-17 10:49:22 UTC
State Changed
From-To: feedback->closed

I switched the dependency to the new devel/ruby-event-loop so no more gems. 
This should now be resolved.