Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298503 - net-irc/rbot-0.9.14 make initd script work with non-relative symlinks
Summary: net-irc/rbot-0.9.14 make initd script work with non-relative symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-27 05:37 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2016-08-28 06:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/tmp/rbot.initd-rubyname.patch (rbot.initd-rubyname.patch,1.71 KB, text/plain)
2009-12-27 05:40 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-12-27 05:37:46 UTC
rbot's initd script expects /usr/bin/ruby to be a relative symlink. It breaks when /usr/bin/ruby is an absolute link:

ohnopublishing brinkpn # eselect ruby list
Available Ruby profiles:
  [1]   ruby18 (with Rubygems) *
ohnopublishing brinkpn # eselect ruby set 1
Successfully switched to profile:
  ruby18
ohnopublishing brinkpn # readlink /usr/bin/ruby
/usr/bin/ruby18
ohnopublishing brinkpn # rc-service rbot.ohno restart
rbot.ohno        |* Caching service dependencies...                                                                                                                [ ok ]
rbot.ohno        |* Starting rbot...
rbot.ohno        |* start-stop-daemon: /usr/bin//usr/bin/ruby18 does not exist                                                                                           [ !! ]hno        |
rbot.ohno        |* ERROR: rbot.ohno failed to start
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-12-27 05:40:39 UTC
Created attachment 214257 [details]
/tmp/rbot.initd-rubyname.patch
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-12-27 05:45:07 UTC
app-admin/eselect-ruby-20090909 creates relative symlinks, thus the existing initd probably work with it...(but I'm too lazy to test.)
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-03-06 10:35:37 UTC
That eselect version is gone from the tree now. The new versions indeed create relative symlinks. _Maybe_ I'll make the init script a little more failure proof at the next rbot bump.
Comment 4 Hans de Graaff gentoo-dev Security 2016-08-28 06:23:17 UTC
As far as I can tell this already got fixed at some point in the past when a new init file was introduced. This new version only checks if the configured ruby version is executable.