Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2015 06:17:16 +0800
From:      Ben Woods <woodsb02@gmail.com>
To:        Matthias Apitz <guru@unixarea.de>, =?UTF-8?Q?Beat_G=C3=A4tzi?= <beat@freebsd.org>,  "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: www/elinks && JavaScript
Message-ID:  <CAOc73CBBTvgTs16MExkJH-%2B__Nc2AETrDuMauQ2Uf0iULmavjQ@mail.gmail.com>
In-Reply-To: <20150520184102.GA2200@c720-r276659>
References:  <20150520131459.GA23645@c720-r276659> <B98E27D2-08ED-4F1F-8585-159BF297E7DF@FreeBSD.org> <20150520184102.GA2200@c720-r276659>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, May 21, 2015, Matthias Apitz <guru@unixarea.de> wrote:

> El d=C3=ADa Wednesday, May 20, 2015 a las 06:22:46PM +0300, Beat G=C3=A4t=
zi escribi=C3=B3:
>
> > > I'm trying to use ports/www/elinks and to configure it to understand
> > > JavaScript, but it does not; for example this test page
> > >
> > > elinks http://javatester.org/javascript.html
> > >
> > > says that JS is not enabled; I think it is. It has it in the options
> > > compiled for:
> >
> > As far as I know elinks uses spidermonkey for javascript. Could
> > you please check if spidermonkey is installed and if yes, please check
> > if it is recognised during configure. Check for something like
> > "ECMAScript (JavaScript)=E2=80=9D.
>
> $ pkg info spidermonke*
> spidermonkey17-1.7.0_1
>
> $ pkg info spidermonke*
> spidermonkey17-1.7.0_1
>
> $ pwd
> /usr/ports/www/elinks/work/elinks-0.11.7
> $ grep -i ECMAScript config.*
> config.h:/* Define if you want: ECMAScript (JavaScript) support */
> config.h:#define CONFIG_ECMASCRIPT 1
> config.h.in:/* Define if you want: ECMAScript (JavaScript) support */
> config.h.in:#undef CONFIG_ECMASCRIPT
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:| #define CONFIG_ECMASCRIPT 1
> config.log:CONFIG_ECMASCRIPT=3D'yes'
> config.log:#define CONFIG_ECMASCRIPT 1
> config.status:s,@CONFIG_ECMASCRIPT@,|#_!!_#|yes,g
> config.status:s,^\([     #]*\)[^         ]*\([   ]*CONFIG_ECMASCRIPT\)[
> (].*,\1define\2 1 ,
>
> I saw it as well while making it:
>
> # make
> ...
> The following feature summary has been saved to features.log
> Feature summary:
> Documentation Tools ............. Pod2HTML
> Manual Formats .................. no
> Man Page Formats ................ no
> ...
> ECMAScript (JavaScript) ......... SpiderMonkey
> Browser scripting ............... SpiderMonkey
> ...
>
> Thanks
>
>         matthias
>

Can you please check if the SPIDERMONKEY option was enabled when your
package was built?
$ pkg info elinks | grep SPIDERMONKEY

It is disabled in the default configuration and therefore in the normal
FreeBSD package sets. You may need to compile that one from ports (or
better yet your own poudriere) and enable the SPIDERMONKEY option when you
do.

Regards,
Ben


--=20

--
From: Benjamin Woods
woodsb02@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CBBTvgTs16MExkJH-%2B__Nc2AETrDuMauQ2Uf0iULmavjQ>