Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2013 02:13:33 -0700
From:      Stanislav Sedov <stas@freebsd.org>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        freebsd-ruby@freebsd.org
Subject:   Re: fixing port dependencies
Message-ID:  <E8C87FC3-DDA1-47EC-A764-B83B73CB3425@freebsd.org>
In-Reply-To: <99496.1380874651@server1.tristatelogic.com>
References:  <99496.1380874651@server1.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On Oct 4, 2013, at 1:17 AM, "Ronald F. Guilmette" <rfg@tristatelogic.com> wrote:

> 
> 
> So, um, I just tried to update a bunch of my ports to the latest
> revs, which I do rather infrequently, and of course, as usual,
> I got a boat load of port build failures.  (Sigh.)
> 
> Well, anyway, one of them was this:
> 
>          - lang/ruby18 (marked as IGNORE)
> 
> I don't use Ruby myself, so obviously, some other port(s) I have
> installed are using it.  I've gone ahead and built & installed
> lang/ruby20 and that went fine.  Now I'd just like to know what,
> if anything, I should do, specifically, in order to make every
> installed port that I have that was dependent upon ruby18 now
> instead dependent upon ruby20.  And actually, since we are on
> the subject, is doing that exact thing even wise?  I have no idea,
> but wish I knew.  Is it possible that some port or another that I
> have installed that was dependent upon ruby18 might now malfunction
> if forced to use ruby20 instead?  (That notion certainly does not
> seem to be entirely out of the question.)

Yes, you need to rebuild all ports that depend on ruby18 if you plan
to delete it.  Ruby libraries are installed in a version-specific
location, so only ruby18 will see them (that's also why they have
ruby18- prefix).

To rebuild all ports that depend on ruby 18 you can use portupgrade:
,------
| portupgrade -x ruby-1.8.\* -fr lang/ruby18
`------

However, I believe the default version of ruby is 1.9 now, so this action
will install ruby19 and update all install ruby applications and libraries
to use ruby19.  If you wish to use ruby20 by default (I do), you should
add RUBY_DEFAULT_VER=2.0 to your /etc/make.conf and rebuild ruby20 before
performing the aforementioned action.

--
ST4096-RIPE




[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJSToa9AAoJEG2OTJ9WF+r7dN4H/0/A+Bs2p6GWAVznd6NDD1oH
d8ggxJYpsAvuxxGKKffHeMwOVGZlO0nhU8MQQM2Sm5wbyIOJQ9GnRUYqujQSGb06
HCOqciSp4gSmxQc1QhA7eLJu/2g1MK4JbIbYSnPCKj3wOwpe+dKGRlxVX4qKduNK
AoZvKJzs9FiQhWQuaKRDWi/WMT1EdCqK639bq3p+68GiYPO/YmzzH8rqSUtonVAw
HbuuqwmHxPI9dmCm9tpumf4Mv6FeZ9I+P5+Ko5p1PmOReVCruk1s8BiqXqTj2FjP
R92EtRti3FcJpb2hf7W7Gzb0Qfw4ZHmv/hIj+3amnrF4Ls3kjIIBqKkaCxOqjP8=
=mbT1
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E8C87FC3-DDA1-47EC-A764-B83B73CB3425>