fixing port dependencies
Stanislav Sedov
stas at freebsd.org
Fri Oct 4 09:13:56 UTC 2013
On Oct 4, 2013, at 1:17 AM, "Ronald F. Guilmette" <rfg at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ruby/attachments/20131004/35116f31/attachment.sig>
More information about the freebsd-ruby
mailing list