Bug#1107531: node dependencies
During packaging I figured out one problem.
Touchegg depends on some nodejs modules which are not included in the
source tree [1], but in the release package at [2]
The node modules are fetched by running `npm install` during build.
Actually I build the package using quilt.
For that I use d/watch to look for the package at Github [3]. But the
package found is the tarball based on the source tree on Github. So this
package does not contain the nodejs modules.
To fetch the nodejs modules I use a rule in d/rules to run `npm install`
during `dh_auto_build` [4]
Finally I am able to build the package using `dpkg-buildpackage`.
But pbuilder fails because of the need of downloading the modules during
build.
The only solution I found out is to switch the package format to native
and include all nodejs modules in the source tree at salsa.d.o.
Please, can someone help how to handle the nodejs modules?
----
[1] https://github.com/JoseExposito/touche
[2] https://github.com/JoseExposito/touche/releases (see package
archive.tar.gz)
[3]
https://salsa.debian.org/luzip665/touche/-/blob/main/debian/watch?ref_type=heads
[4]
https://salsa.debian.org/luzip665/touche/-/blob/main/debian/rules?ref_type=heads#L23
Reply to: