Date: Tue, 07 Oct 2008 14:45:00 -0700 From: Xin LI <delphij@delphij.net> To: stevefranks@ieee.org Cc: ports@freebsd.org Subject: Re: textproc/flex (/usr/local/bin/flex) shadowed by /usr/bin/flex after install Message-ID: <48EBD85C.6070901@delphij.net> In-Reply-To: <539c60b90810071407t76ae801fo8f89ca8a65f6b3b4@mail.gmail.com> References: <539c60b90810071407t76ae801fo8f89ca8a65f6b3b4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <delphij@delphij.net> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48EBD85C.6070901>