www/elinks && JavaScript

Ben Woods woodsb02 at gmail.com
Wed May 20 22:17:17 UTC 2015


On Thursday, May 21, 2015, Matthias Apitz <guru at unixarea.de> wrote:

> El día Wednesday, May 20, 2015 a las 06:22:46PM +0300, Beat Gätzi escribió:
>
> > > 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)”.
>
> $ 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='yes'
> config.log:#define CONFIG_ECMASCRIPT 1
> config.status:s, at 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


-- 

--
From: Benjamin Woods
woodsb02 at gmail.com


More information about the freebsd-ports mailing list