Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 56653
Status: new
Priority: 0/
Queue: JavaScript

People
Owner: Nobody in particular
Requestors: jmmills [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.16
Fixed in: (no value)



Subject: Gentoo updated spidermonkey include path.
When building via defaults with dev-lang/spidermonkey-1.7.0-r1 spidermonkey header files are not found. Patch to fix Makefile.PL attached; build + make test passes. -- Error output -- In file included from test_js.c:2: JavaScript_Env.h:8:19: error: jsapi.h: No such file or directory JavaScript_Env.h:9:22: error: jsdbgapi.h: No such file or directory JavaScript_Env.h:10:22: error: jsinterp.h: No such file or directory JavaScript_Env.h:11:19: error: jsfun.h: No such file or directory JavaScript_Env.h:12:19: error: jsobj.h: No such file or directory JavaScript_Env.h:13:19: error: jsprf.h: No such file or directory JavaScript_Env.h:14:21: error: jsscope.h: No such file or directory test_js.c: In function ‘main’: test_js.c:5: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’ Failed compiling test_js.c. ABORTING x86_64-pc-linux-gnu-gcc -o /tmp/gf06gYGdmF test_js.c -I. - I/usr/lib/MozillaFirefox/include/js/ -I/usr/lib/MozillaFirefox/ -ljs -- related spidermonkey ebuild -- # equery belongs /usr/include/js/jsapi.h * Searching for /usr/include/js/jsapi.h ... dev-lang/spidermonkey-1.7.0-r1 (/usr/include/js/jsapi.h)
Subject: JavaScript-1.16-gentoo.patch
--- Makefile.PL.orig 2010-02-20 13:27:39.000000000 -0800 +++ Makefile.PL 2010-04-15 22:56:40.757655258 -0700 @@ -78,7 +78,9 @@ # test for gentoo if(-f "/etc/gentoo-release") { # Gentoo puts libjs in a slightly hidden spot. - @incs = qw(/usr/lib/MozillaFirefox/include/js/ + @incs = qw( + /usr/include/js/ + /usr/lib/MozillaFirefox/include/js/ /usr/lib/MozillaFirefox/); }