FS#62569 - [node-gyp] Installs broken semver symlink

Attached to Project: Community Packages
Opened by helle vaanzinn (glitsj16) - Tuesday, 07 May 2019, 19:09 GMT
Last edited by Toolybird (Toolybird) - Saturday, 15 April 2023, 01:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Installing node-gyp results in a broken symlink for semver.

Additional info:
* package version(s)

$ pacman -Q node-gyp
node-gyp 4.0.0-1

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Just install node-gyp

I'm seeing a broken symlink in /usr/lib/node_modules/node-gyp/node_modules/.bin/semver.
It points to ../semver/bin/semver but that is 2 steps up the path-chain in
../../../semver/bin/semver.

Pretty much the same as what happens in https://bugs.archlinux.org/task/62563 for gulp...
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 15 April 2023, 01:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Not seeing a broken symlink in current version. Assuming fixed.
Comment by loqs (loqs) - Sunday, 13 September 2020, 02:59 GMT
Overwrite the link with one pointing to the correct location. Please test.
Comment by Tom (reztho) - Saturday, 10 October 2020, 15:48 GMT
What I wonder is... for these nodes packages with broken semver links, is it really needed to distribute its node_modules/.bin dir inside the archlinux package? Are those needed for the operations of the package itself?
Comment by Rose Kunkel (rosekunkel) - Sunday, 06 June 2021, 22:25 GMT
@loqs: Just saw your patch. Works great for me!

Loading...