From owner-freebsd-questions@FreeBSD.ORG Tue Feb 3 20:16:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB3BD1065673 for ; Tue, 3 Feb 2009 20:16:45 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 7602A8FC1A for ; Tue, 3 Feb 2009 20:16:45 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id D3F0EAFC1FE; Tue, 3 Feb 2009 11:16:44 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 3 Feb 2009 11:16:44 -0900 User-Agent: KMail/1.9.10 References: <20090203122406.1732b3f0@scorpio> <20090203142833.65a72eae@scorpio> In-Reply-To: <20090203142833.65a72eae@scorpio> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902031116.44552.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: Force use of 'gpg2' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 20:16:48 -0000 On Tuesday 03 February 2009 10:28:33 Jerry wrote: > On Tue, 3 Feb 2009 19:03:01 +0000 > Chris Rees wrote: > > [snip] > > >Try putting the link in somewhere that gets searched before > >/usr/local/bin, like /bin or (better) /usr/bin. Then try rehash && > >which gpg > > I am using 'bash' so I don't think 'rehash' is going to do anything, > although I could be mistaken. However, I don't see how that would stop > a port from installing 'gpg' rather than 'gpg2'. I don't need both > versions installed and would rather just keep the newer 'gpg2' one. It would fit the RUN|BUILD_DEPENDS case, since gpg is looked for in $PATH. However, some ports check for gpgv and one even for ${PREFIX}/bin/gpgv, which would not help you. You could run: cd ${PORTSDIR:="/usr/ports"} find . -depth 3 -name Makefile -exec fgrep -l security/gnupg1 {} + | xargs \ your_filter_command_here That filter command would have to rewrite the RUN|BUILD_DEPENDS line, so that it fits gnupg2. Of course you can shorten the list and edit by hand if you only look at the ports that you actually use. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.