From owner-freebsd-questions@freebsd.org Mon Sep 30 03:35:54 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 200B1F9AE5 for ; Mon, 30 Sep 2019 03:35:54 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-cmomta01.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46hSjP1BYXz4HB4 for ; Mon, 30 Sep 2019 03:35:52 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.0.15] ([70.121.63.82]) by cmsmtp with ESMTPA id EmTTiUbiGP088EmTWiWF05; Mon, 30 Sep 2019 03:35:51 +0000 Date: Sun, 29 Sep 2019 22:35:47 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: Polytropon cc: FreeBSD Questions Subject: Re: How to tell what users Ruby Message-ID: <97264F4F7CF9D5D3C52319D3@Pauls-MacBook-Pro.local> In-Reply-To: <20190930043339.f6d30c68.freebsd@edvax.de> References: <20190929082601.9152a485.freebsd@edvax.de> <20190930043339.f6d30c68.freebsd@edvax.de> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CMAE-Envelope: MS4wfIu4gWq2oWQmTpK9oEH5FKAed4LO1KhVzDg9m00a6E6q4QQrVdh6++gTikP5nDjGMDrDPt75Uj5iLfAX6p0UZ14upvJcpdCS/r/0nyVf4cKTxCyIx4wd xihIbAuoFD8d9HBO/d81MojsY8P7zKbmosuA/fLSFhCKdUADmwuwrDkkjR2JLw029QXJVF4N6AjYVZIKEBdutBjX0hSaJbO7p4hyO+6wV5eRKoOWirwNw1S+ X-Rspamd-Queue-Id: 46hSjP1BYXz4HB4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pschmehl_lists@tx.rr.com designates 107.14.73.229 as permitted sender) smtp.mailfrom=pschmehl_lists@tx.rr.com X-Spamd-Result: default: False [-4.32 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[pschmehl_lists@tx.rr.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.14.73.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[rr.com]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[229.73.14.107.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-2.02)[ip: (-5.16), ipnet: 107.14.73.0/24(-2.71), asn: 7843(-2.17), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7843, ipnet:107.14.73.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[82.63.121.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2019 03:35:54 -0000 --On September 30, 2019 at 4:33:39 AM +0200 Polytropon wrote: > On Sun, 29 Sep 2019 18:42:46 -0500, Paul Schmehl wrote: >> --On September 29, 2019 at 8:26:01 AM +0200 Polytropon >> 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