[Pkg-javascript-devel] Bug#933171: pkg-js-tools: Provide a default installer

Xavier Guimard yadd at debian.org
Sat Jul 27 07:50:53 BST 2019


Package: pkg-js-tools
Version: 0.8.1
Severity: wishlist

After component automatic install, I'd like to propose a default
installer when debian/install is missing.

Other languages have tools to install automatically libraries in the
good place. Sadly we don't have any tool for this. That's why
arch-dependent files are installed in /usr/lib/nodejs instead of
/usr/lib/{# dpkg_architecture_value("DEB_HOST_GNU_TYPE") }/nodejs.
(fixed place instead of platform dependent one).

Proposed behavior:
 - skip if debian/install exists
 - calculate the install place:
   * /usr/share/nodejs if arch == all
   * /usr/lib/{# dpkg_architecture_value("DEB_HOST_GNU_TYPE") }/nodejs
     else
 - if no debian/node_files exists:
   * install only files given by package.json#files if this field exists
     (except LICENSE, COPYING, *.md, test*,...)
   * else install all files (except LICENSE, COPYING, *.md, test*,...)
 - else if debian/node_files exists, install listed files in the
   calculated place with the same related path (this is the difference
   with debian/install which can't install in arch-dependent path)

Then npm2deb won't have to create a debian/install.

Transition will be easy since new behavior is automatically skipped if
debian/install exists.

Of course any comment is welcome.

Cheers,
Xavier



More information about the Pkg-javascript-devel mailing list