node-mime 2.3.1 no longer ships /usr/share/node-mime/types.json,
leading to this build failure:
...
# just copy the file from node-mime
cp /usr/share/node-mime/types.json node_modules/mime-db/src/deb.types.json
cp: cannot stat '/usr/share/node-mime/types.json': No such file or directory
node-mime-types FTBFS with node-mime 2.3.1
node-mime 2.3.1 no longer ships /usr/share/ node-mime/ types.json,
leading to this build failure:
... node-mime/ types.json node_modules/ mime-db/ src/deb. types.json node-mime/ types.json' : No such file or directory
# just copy the file from node-mime
cp /usr/share/
cp: cannot stat '/usr/share/
make[1]: *** [debian/rules:21: override_ dh_auto_ build] Error 1 st.bNiyPN/ build.yAz/ src'
make[1]: Leaving directory '/tmp/autopkgte
make: *** [debian/rules:8: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
...
The new version ships /usr/share/ node-mime/ {standard, other}. json instead.
Debian upstream switched to only standard.json, not other.json.
With this patch, the package builds correctly.