Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2008 02:13:39 +0400
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        Torfinn Ingolfsen <tingox@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: amule 2 port - trying an upgrade
Message-ID:  <20080822221339.GH1421@hades.panopticon>
In-Reply-To: <ef8c8a880808220645o67ab3916o6982c5c65b3ff64b@mail.gmail.com>
References:  <ef8c8a880808181331ga307908o9b2f3c5748b0cce4@mail.gmail.com> <20080821105506.GA25154@wep4017.physik.uni-wuerzburg.de> <ef8c8a880808211432r24a0d28bn526927e0d36aabef@mail.gmail.com> <20080822125845.GB4663@hades.panopticon> <ef8c8a880808220645o67ab3916o6982c5c65b3ff64b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Torfinn Ingolfsen (tingox@gmail.com) wrote:

> and it looks like configure pick up the old flex:
> root@kg-vm# grep flex work/a*/config.log
> configure:4647: checking for flex
> configure:4663: found /usr/bin/flex
> configure:4673: result: flex
> configure:4837: flex conftest.l
> configure:8884: checking for extended flex capabilities
> configure:8898: Your flex version doesn't support --header-file flag.
> This is not critical, but an upgrade is recommended
> ac_cv_prog_LEX=flex
> LEX='flex'
> 
> How do I tell the prt to usethe flex in /usr/local/bin?
I think you should hack configure with REINPLACE_CMD and change
(configure:4643):

for ac_prog in flex lex

to

for ac_prog in ${LOCALBASE}/flex

something like that.

> Anyway, I'll test and see if this is the problem.
> Some time passes.. no, that didn't make a difference.I renamed
> /usr/bin/flex to flex.old and configure picks up the new flex, but man
> pages still won't install. :-(
You can see several

test: yes: unexpected operator
test: no: unexpected operator
test: yes: unexpected operator
test: yes: unexpected operator

thingies in the configure output.
Those are because FreeBSD test doesn't support ==, so

if test "$AMULECMD" == "yes"; then

fails and AMULECMD_MANPAGES is thus empty.

You should REINPLACE_CMD -e '/if test/ s|==|=|' ${WRKSRC}/configure (and
it's good to submit that fix upstream; bashisms should be eliminated).

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080822221339.GH1421>