From owner-freebsd-ports@FreeBSD.ORG Tue Oct 7 21:45:11 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E470106568E for ; Tue, 7 Oct 2008 21:45:11 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 00F708FC08 for ; Tue, 7 Oct 2008 21:45:11 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id ECEE628449 for ; Wed, 8 Oct 2008 05:45:09 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id AB5F7101C6CC; Wed, 8 Oct 2008 05:45:09 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id HiXTjQNP6Ixb; Wed, 8 Oct 2008 05:45:05 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 41ECD101C6C9; Wed, 8 Oct 2008 05:45:03 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=aIh9JC5T/45Ob/Pv+iVwvPLGDFP/eNSrEf0tFb7q0/ZjVKh/u13JEp5Eu4iWYpViJ O/QJu1e6adV6ZiJCbcfrg== Message-ID: <48EBD85C.6070901@delphij.net> Date: Tue, 07 Oct 2008 14:45:00 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.17 (X11/20080928) MIME-Version: 1.0 To: stevefranks@ieee.org References: <539c60b90810071407t76ae801fo8f89ca8a65f6b3b4@mail.gmail.com> In-Reply-To: <539c60b90810071407t76ae801fo8f89ca8a65f6b3b4@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: textproc/flex (/usr/local/bin/flex) shadowed by /usr/bin/flex after install X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 21:45:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Franks wrote: > In maintaining devel/urjtag, I've added a dependancy to textproc/flex. > On some systems, however, I've found that when textproc/flex gets > installed, it lands in /usr/local/bin, as expected, but there's a > /usr/bin/flex which precedes it in the path - is there a canonical way > to resolve this? I've just been mv'ing my /usr/bin/flex, but clearly, > I can't add a patch to a port to do that to other people's systems... Ah... I feel astonished that flex lives in textproc/ as bison lived in devel/... I think what you have to do is: BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex and do a post-patch action of @${REINPLACE_CMD} -e 's, flex, ${LOCALBASE}/bin/flex,g' or similar where necessary... Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjr2FwACgkQi+vbBBjt66DZsgCfYR0gtZuLNMHiKA4DWz4FuRbb 0M0AmwbnyP6yAPW9YeU/CMWNS1uCx/Ds =WDK4 -----END PGP SIGNATURE-----