[Pkg-javascript-devel] Issues with coffeescript 1.9.1

Arto Jantunen viiru at debian.org
Tue Mar 10 11:32:09 UTC 2015


(please CC me on replies, I'm not subscribed to the list)

Hi list,

Some developers here were requesting an update to coffeescript 1.9.1, I
went looking for a packaged version and found out that it has already
been merged in your team's git repo. I tried building this, but it
doesn't quite work as is. Attached below are two patches that allow the
package to build successfully.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Switch-build-dep-from-libjs-underscore-to-node-under.patch
Type: text/x-diff
Size: 1310 bytes
Desc: 0001
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20150310/7bed4464/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-extras-jsl.conf-from-examples-it-no-longer-ex.patch
Type: text/x-diff
Size: 792 bytes
Desc: 0002
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20150310/7bed4464/attachment-0001.patch>
-------------- next part --------------

Sadly even with these applied the package doesn't work, failing with the
following traceback:

/usr/bin/coffee 

module.js:340
    throw err;
          ^
Error: Cannot find module '../../bin/coffee'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.require.resolve (module.js:384:19)
  at Object.<anonymous> (/usr/lib/coffee-script/lib/coffee-script/register.js:52:22)
  at Object.<anonymous> (/usr/lib/coffee-script/lib/coffee-script/register.js:66:4)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.exports.register (/usr/lib/coffee-script/lib/coffee-script/coffee-script.js:201:12)
  at Object.module.exports.start (/usr/lib/coffee-script/lib/coffee-script/repl.js:173:20)
  at Object.exports.run (/usr/lib/coffee-script/lib/coffee-script/command.js:79:32)
  at Object.<anonymous> (/usr/bin/coffee:3:59)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  at startup (node.js:119:16)
  at node.js:906:3

Apparently something goes wrong with the search path when looking for
the modules, but my understanding of the node module system is somewhat
limited. I'd greatly appreciate any help with solving this.

-- 
Arto Jantunen


More information about the Pkg-javascript-devel mailing list