Re: [Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?
On Tuesday 28 March 2017 12:32 PM, Andreas Tille wrote: > As far as I can see finalising babel is the first step, right? Do you > need any help a JavaScript illiteral Debian packager could provide? You can try and troubleshoot the errors in current babel packages. I have uploaded them in people.debian.org/~praveen/babel This is bootstrapping effort. 1. Build babel using npm provided rollup 2. Build rollup using npm provided babel 3. Try rebuilding babel using the rollup deb We are currently failing here as there are more dependencies in the equation like babylone which complicates this equation. I think we will need to include node_modules directory as part of the deb we create in the first iteration as some of the packaged dependencies like acorn seems to be not working correctly. signature.asc Description: OpenPGP digital signature -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?
Hi Pirate, On Tue, Mar 28, 2017 at 11:03:22AM +0530, Pirate Praveen wrote: > On Monday 27 March 2017 10:07 PM, Jérémy Lal wrote: > > That's simply a bug in node-handlebars: > > ~$ node > >> require('handlebars') > > Error: Cannot find module '../dist/cjs/handlebars' > > at Function.Module._resolveFilename (module.js:325:15) > > at Function.Module._load (module.js:276:25) > > at Module.require (module.js:353:17) > > at require (internal/module.js:12:17) > > at Object. (/usr/lib/nodejs/handlebars/lib/index.js:7:18) > > at Module._compile (module.js:409:26) > > at Object.Module._extensions..js (module.js:416:10) > > at Module.load (module.js:343:32) > > at Function.Module._load (module.js:300:12) > > at Module.require (module.js:353:17) > > > > Jérémy > > > We need to complete babel packaging to be able to generate that. > Currently the purpose of node-handlebars package to simply provide > source corresponding to ruby-handlebars-assets package (which is in > contrib because we are not building it in debian, having node-handlebars > allows it to be in contrib as opposed to non-free). See #853176, and > #84 (ITP for babel) and its complicated as it has a circular > dependency on rollup. As far as I can see finalising babel is the first step, right? Do you need any help a JavaScript illiteral Debian packager could provide? Kind regards Andreas. -- http://fam-tille.de -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?
On Monday 27 March 2017 10:07 PM, Jérémy Lal wrote: > That's simply a bug in node-handlebars: > ~$ node >> require('handlebars') > Error: Cannot find module '../dist/cjs/handlebars' > at Function.Module._resolveFilename (module.js:325:15) > at Function.Module._load (module.js:276:25) > at Module.require (module.js:353:17) > at require (internal/module.js:12:17) > at Object. (/usr/lib/nodejs/handlebars/lib/index.js:7:18) > at Module._compile (module.js:409:26) > at Object.Module._extensions..js (module.js:416:10) > at Module.load (module.js:343:32) > at Function.Module._load (module.js:300:12) > at Module.require (module.js:353:17) > > Could you open a bug ? > > Jérémy > We need to complete babel packaging to be able to generate that. Currently the purpose of node-handlebars package to simply provide source corresponding to ruby-handlebars-assets package (which is in contrib because we are not building it in debian, having node-handlebars allows it to be in contrib as opposed to non-free). See #853176, and #84 (ITP for babel) and its complicated as it has a circular dependency on rollup. signature.asc Description: OpenPGP digital signature -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?
2017-03-27 17:08 GMT+02:00 Andreas Tille: ../.. > Error: Cannot find module '../dist/cjs/handlebars' > at Object. (/usr/lib/nodejs/handlebars/lib/index.js:7:18) > That's simply a bug in node-handlebars: ~$ node > require('handlebars') Error: Cannot find module '../dist/cjs/handlebars' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/usr/lib/nodejs/handlebars/lib/index.js:7:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) Could you open a bug ? Jérémy -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
[Pkg-javascript-devel] libjs-handlebars: How to get /usr/lib/nodejs/handlebars/dist/cjs/handlebars.js?
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. (/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 -- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel