From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 113F9139083 for ; Thu, 12 Oct 2017 15:59:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D72002BC067; Thu, 12 Oct 2017 15:59:38 +0000 (UTC) Received: from very.loosely.org (very.loosely.org [173.255.215.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CC562BC04C for ; Thu, 12 Oct 2017 15:59:38 +0000 (UTC) Received: from [10.8.78.6] (port=44906 helo=matica.foolinux.mooo.com) by ahiker.mooo.com with esmtp (Exim 4.89) (envelope-from ) id 1e2ftZ-00014r-J5 for gentoo-user@lists.gentoo.org; Thu, 12 Oct 2017 08:59:37 -0700 Received: from itz by matica.foolinux.mooo.com with local (Exim 4.89) (envelope-from ) id 1e2ftP-0000wH-Sx for gentoo-user@lists.gentoo.org; Thu, 12 Oct 2017 08:59:27 -0700 Date: Thu, 12 Oct 2017 08:59:27 -0700 From: Ian Zimmerman To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Slightly OT: FreeBSD migration, what to do with /usr/local Message-ID: <20171012155927.pnlj7zmg5r2ybu6i@matica.foolinux.mooo.com> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20171012062933.6bhtcfqso37gf6af@matica.foolinux.mooo.com> <4584856d-7a54-3b1b-04b5-b890338c9c93@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4584856d-7a54-3b1b-04b5-b890338c9c93@gmail.com> X-Loosely-Listed: yes User-Agent: NeoMutt/20170707 (1.8.3) X-Archives-Salt: fbf37fd5-33a3-493d-82d5-0fa361625f90 X-Archives-Hash: ab5c2a8cddc35b7fdec2dae71ad2ad5b On 2017-10-12 08:36, Alan McKinnon wrote: > > A more serious problem is how to find all the situations where > > /usr/local is baked in. It's not as simple as grep because when I > > could, I relied on the implicit PATH which would be configured > > somewhere else, or it might not even be configured - it might be > > compiled in (I think this is the case for some programs in the > > shadow package, and perhaps PAM modules). > > Not sure what the context is here. Are you talking about packages and > ports code, or your own stuff you compiled yourself? > > Either way, what problem were you asking about by writing that > paragraphs? GNU/Linux packages that set the PATH, on which my script stuff ends up relying. If I just move my scripts to, say, /opt/foobar, and edit the all the occurences of "/usr/local", something will still break because a script that is found now by virtue of the ambient PATH won't be found in the new world. -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.