[Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?

Andreas Tille andreas at an3as.eu
Mon Mar 27 15:08:21 UTC 2017


Hi,

please excuse my naive question - I'm totally new tp JS and its
packaging (and I'm not subscribed to the packaging list nor am I sure
whether this is the right list to ask - please guide me kindly if I'm
wrong here.)

I intend to package shiny-server[1] which needs several node-* packages.
At this place I'd like to thank you for all the packaging you did since
it reduces the amount of work a lot.

My way to learn about the missing dependencies was simply to run

    strace shiny-server

and see what is missing.  Via apt-file search I learned what needs
packaging and have created local packages for

    node-basic-auth
    node-clientsession
    node-morgan

which I will ITP once I can estimate the full effort of the packaging
attempt.  Now I was stumbling over the following:


$ strace shiny-server 2>&1 | grep handlebars
stat("/usr/lib/nodejs/handlebars", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/nodejs/handlebars/package.json", O_RDONLY|O_CLOEXEC) = 11
pread64(11, "{\n  \"name\": \"handlebars\",\n  \"bar"..., 32768, 0) = 1830
stat("/usr/lib/nodejs/handlebars/lib/index.js", {st_mode=S_IFREG|0644, st_size=792, ...}) = 0
lstat("/usr/lib/nodejs/handlebars", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/nodejs/handlebars/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/nodejs/handlebars/lib/index.js", {st_mode=S_IFREG|0644, st_size=792, ...}) = 0
open("/usr/lib/nodejs/handlebars/lib/index.js", O_RDONLY|O_CLOEXEC) = 11
read(11, "// USAGE:\n// var handlebars = re"..., 792) = 792
stat("/usr/lib/nodejs/handlebars/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars", 0x7ffc9892b710) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars.js", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars.json", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars.node", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
open("/usr/lib/nodejs/handlebars/dist/cjs/handlebars/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars/index.js", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars/index.json", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/nodejs/handlebars/dist/cjs/handlebars/index.node", 0x7ffc9892b7e0) = -1 ENOENT (No such file or directory)
Error: Cannot find module '../dist/cjs/handlebars'
    at Object.<anonymous> (/usr/lib/nodejs/handlebars/lib/index.js:7:18)


I checked the source of node-handlebars but did not find the missing
/cjs dir.  Could you enlighten me how to fix this?

Kind regards

       Andreas.

[1] https://anonscm.debian.org/git/debian-med/shiny-server.git

-- 
http://fam-tille.de



More information about the Pkg-javascript-devel mailing list