Copy tsc files insted of creating a link
In https://salsa.debian.org/js-team/nodejs/-/commit/c7b5bc3fb81df93b194bd9caa46bea6f226a9f7a maintainer add a symlink to fix a regresion introduced in 12.22.12.
Unfortunately this fix causes other packages fail to build such as node-babel7 with error:
cp -rL /usr/share/nodejs/\@types/node ./node_modules/\@types
cp: cannot copy cyclic symbolic link '/usr/share/nodejs/@types/node/tsc3.6'
dh_auto_configure: error: cp -rL /usr/share/nodejs/\@types/node ./node_modules/\@types returned exit code 1
make: *** [debian/rules:15: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
E: Building failed
To fix the regresion without creating a new issue, just cp -r the folder.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033071
https://phabricator.apertis.org/T9625
Signed-off-by: Walter Lozano walter.lozano@collabora.com
Edited by Walter Lozano