Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

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

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.11



Subject: Location of headers in /usr/local/include/mozjs incorrect
The Makefile.PL has logic that checks whether the include files from SpiderMonkey are in /usr/include/mozjs, and if so includes "mozjs/" as the prefix in the include directives to the C compiler. However, if the files are located in /usr/local/include/mozjs, the Makefile.PL correctly detects this but incorrectly neglects to add the "mozjs/" prefix. It's a 1 line fix, attached is the diff that fixes it.
Subject: jsmfpl.diff
--- Makefile.PL.original 2009-02-02 15:55:25.000000000 -0800 +++ Makefile.PL 2009-02-02 15:51:34.000000000 -0800 @@ -64,6 +64,7 @@ elsif(-f "/usr/local/include/mozjs/jsapi.h") { push @incs, "/usr/local/include/mozjs/"; push @defines, "INCLUDES_IN_MOZJS"; + $inc_dir = "mozjs/"; } # Debian puts nspr headers in /usr/include/nspr