The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Article Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Notes from Akinori MUSHA on ruby_s problem
Author: Dan Langille 
Date:   10-12-01 21:11

The following notes were provided by Akinori MUSHA after he read the article.

Here is some background stories:

- Prior to 4.4-STABLE, the regular ruby binary that's installed from
the lang/ruby port used to install its dynamic modules under a
directory with a full (major and minor) system version.
("i386-freebsd4.3" for example)

- So, if you try to upgrade portupgrade, ruby and its modules,
portupgrade fails to load dynamic modules during the upgrading
process if the system was upgraded after the last time ruby and the
friends were installed.

- To cope with the problem, portupgrade and the friends were made to
restart itself with ruby_s[*] whenever it fails to load dynamic
modules.

[*] ruby_s is a statically linked version of the ruby interpreter
binary which you can install from the lang/ruby_static port.

At the same time, the runtime dependency to ruby_s was added to the
portugprade port to keep users away from this trouble.

- At some point of 4.4-STABLE, after the 4.4-RELEASE was released, the
ruby ports are changed to install dynamic modules under a directory
with only a system major version without a minor
version (i386-freebsd4 for example), so that one would not bother
having to rebuild and reinstall all the ruby modules.

- Then it was no loger unnecessary to have ruby_s unless one does
a major upgrade of the system, the ruby_s runtime dependency was
removed.

So, the only case where one bothers with ruby_s is when upgrading
portupgrade that was installed prior to the 4.4-RELEASE (before
4.3-STABLE) or the prevous major OS version to what is currently
installed (like when upgrading 4.4->5.0).

Since portupgrade became really popular after the 4.4-RELEASE, I
didn't particularly mention the above complex matters in the
documentation.

I'll probably add some hack to automatically suggest installing ruby_s
as necessary in future, but for now, a piece of advice I can tell is
"install lang/ruby_static before using portupgrade if you have
upgraded your system across versions". I'd also like to emphasize
that it should be safe in theory to upgrade ruby, ruby-* and
portupgrade using portupgrade.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Notes from Akinori MUSHA on ruby_s problem   new
Dan Langille 10-12-01 21:11 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org