Bug 47191 - missing runtime dependency
Summary: missing runtime dependency
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: npm (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-10 17:42 MSK by Stanislav Levin
Modified: 2023-08-11 22:03 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Levin 2023-08-10 17:42:41 MSK
Today's sisyphus:

```
[user@host dir]$ hsh --initroot-only -q && hsh-install npm && hsh-run -- npm --version
...
<13>Aug 10 14:31:34 rpmi: npm-9.6.7-alt1 sisyphus+325839.120.9.1 1690821590 installed
/usr/bin/env: 'node': No such file or directory
```

```
[user@host dir]$ hsh-run -- cat /usr/bin/npm
#!/usr/bin/env node
require('../lib/cli.js')(process)
```

```
[user@host dir]$ hsh-run -- rpm -q --requires npm
bash
rpmlib(PayloadIsLzma)
```
Comment 1 Vitaly Lipatov 2023-08-11 20:59:56 MSK
Каков сценарий использования?


Тут чем-то похоже на ситуацию с composer, который мог бы использовать один из php, установленных в системе:

https://bugzilla.altlinux.org/44695


Собственно, раз там #!/usr/bin/env node
я добавлю
BuildRequires: /usr/bin/node
Comment 2 Repository Robot 2023-08-11 22:03:13 MSK
npm-9.6.7-alt2 -> sisyphus:

 Fri Aug 11 2023 Vitaly Lipatov <lav@altlinux.ru> 9.6.7-alt2
 - add Requires: /usr/bin/node (ALT bug 47191)