[Pkg-javascript-devel] node-iconv-lite little questions
Jérémy Lal
kapouer at melix.org
Tue Apr 22 21:11:49 UTC 2014
Le mardi 22 avril 2014 à 22:55 +0200, Jonas Smedegaard a écrit :
> [repost to list]
>
> Quoting Matthew Pideil (2014-04-22 21:11:16)
> > The generation scripts of these tables are in the upstream release and
> > will obviously stay in the source package, but i don't know if i have
> > to rebuild them or not.
>
> Sounds most sensible to me to rebuild. Is that a problem?
>
>
> > The other problem is that these generation scripts uses file hosted by
> > someone, e.g
> > iconv-lite-0.2.11/generation/generate-big5-table.js:
> > var cp950_b2u = {host:'moztw.org',path:'/docs/big5/table/cp950-b2u.txt'},
> > cp950_u2b = {host:'moztw.org',path:'/docs/big5/table/cp950-u2b.txt'},
> > cp950_moz18_b2u = {host:'moztw.org',path:'/docs/big5/table/moz18-b2u.txt'};
> >
> > What am i supposed to do whith this ?
>
> If you mean that the resulting code has a host embedded, then I can
> imagine no other sensible approach than shipping source and a script to
> compile it, ask via debconf which host to use, and execute the script
> from postinst with (optional, defaulting to localhost) debconf response.
Then may i suggest packaging node-iconv instead ? It is not native
javascript, but is certainly not concerned by that kind of issue.
Jérémy.
More information about the Pkg-javascript-devel
mailing list