Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2019 22:35:47 -0500
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to tell what users Ruby
Message-ID:  <97264F4F7CF9D5D3C52319D3@Pauls-MacBook-Pro.local>
In-Reply-To: <20190930043339.f6d30c68.freebsd@edvax.de>
References:  <ED82496B44D510B8171582DB@Pauls-MacBook-Pro.local> <20190929082601.9152a485.freebsd@edvax.de> <D370CB1D9A8CFB71A5E257D7@Pauls-MacBook-Pro.local> <20190930043339.f6d30c68.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--On September 30, 2019 at 4:33:39 AM +0200 Polytropon <freebsd@edvax.de> 
wrote:

> On Sun, 29 Sep 2019 18:42:46 -0500, Paul Schmehl wrote:
>> --On September 29, 2019 at 8:26:01 AM +0200 Polytropon
>> <freebsd@edvax.de>  wrote:
>>
>> > On Sun, 29 Sep 2019 01:17:52 -0500, Paul Schmehl wrote:
>> >> I'm running ruby 2.4 on a server. I want to upgrade to the new default
>> >> version, so I checked /usr/ports/UDPATING.
>> >>
>> >> Among other things, it said this: "f you wish to update to the new
>> >> default  version, you need to first stop any software that uses ruby."
>> >>
>> >> Is there a utility I can use that will tell me that? How do I identify
>> >> what  programs are using ruby?
>> >
>> > Yes, pkg provides a part of that functionality; check "man pkg-info"
>> > for the "--required-by" (or -r) flag. Make a list of the packages
>> > that depend on the currently installed Ruby version:
>> >
>> > 	# pkg info -r ruby
>> >
>>
>> When I ran this it listed no programs. Which is kind of odd, since I
>> know  portmaster uses ruby.
>
> I've just installed portmaster for testing - you're right, it does not
> show up as depending on ruby; vim, however, does:
>
> 	# pkg info -r ruby
> 	ruby-2.5.5_2,1:
> 	        vim-8.1.1439
>
> Interesting thing: portmaster's Makefile does not mention ruby at all.
> So I tried something: I removed ruby and vim and portmaster, then
> installed portmaster again - and no ruby. So my guess is: portmaster
> does no longer depend on ruby.
>

Huh. Well, I'm wondering why I have ruby installed, if nothing depends on 
it.

But this is weird.

# pkg info -a | grep ruby
ruby24-2.4.6_1,1               Object-oriented interpreted scripting 
language
ruby24-bdb-0.6.6_5             Ruby interface to Oracle Berkeley DB 
revision 2 or later

 pkg info -r ruby24-bdb*
ruby24-bdb-0.6.6_5:

So, it depends on itself but not ruby? Double weird.

Oh well, I'll keep ruby installed if for no other reason than I can.

Paul Schmehl, Retired
My opinions are my own.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97264F4F7CF9D5D3C52319D3>