[Pkg-javascript-devel] Node app requiring "general" javascript library

Jonas Smedegaard dr at jones.dk
Thu Oct 13 19:00:02 UTC 2011


On 11-10-13 at 08:41pm, Jonas Smedegaard wrote:
> On 11-10-13 at 08:22pm, David Paleino wrote:
> > as you might have noticed, I'm packaging a bunch of NodeJS libraries 
> > that I need for a specific package (tilemill). Some of these packages 
> > require "underscore".
> > 
> > I see that we have libjs-underscore, and 
> > http://search.npmjs.org/#/underscore points to the same github 
> > repository as that one.
> > 
> > I'm testing the following snippet:
> > 
> > /---
> > | require('underscore')
> > \---
> > 
> > which works with other libraries I packaged, but gives an error with 
> > this one. A symlink from 
> > /usr/share/javascript/underscore/underscore.js to 
> > /usr/lib/nodejs/underscore.js makes this work, but that would require 
> > a new upload of libjs-underscore.
> > 
> > I'm wondering whether there is an alternative approach I could use, 
> > without uploading a new libjs-underscore?
> 
> Hmm - seems to me that you've revealed a bug in my packaging.
> 
> I don't think it is wise to circumvent it - please do fix 
> libjs-underscore instead (or, if e.g. CDBS is too discouraging, wait for 
> me to do it).

Hmm - looking closer at this issue, it seems more appropriate to provide 
a separate binary package: When used with Node it should depend on 
libnode, but used without it is bothersome to have libnode pulled in.

Same for backbone.  Which might solve that issue I raised in a separate 
thread: Maybe best that packages usable both alone and with Node is 
provided as two separate binary packages, not so much to save space 
(these are all typically tiny packages) but to avoid dependency hell.



What do people think?


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20111013/b3f63859/attachment.pgp>


More information about the Pkg-javascript-devel mailing list