Bug 43435 - Пакет упакован некорректно
Summary: Пакет упакован некорректно
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: npmjs-detect-libs (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: majioa@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-03 11:58 MSK by Alexander Makeenkov
Modified: 2022-09-22 23:35 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 Alexander Makeenkov 2022-08-03 11:58:42 MSK
Версия пакета и ссылка на апстрим (обратите внимание на название):
# rpm -q --qf '%{VERSION}\n%{URL}\n' npmjs-detect-libs
1.0.3
https://github.com/lovell/detect-libc

Шаги воспроизведения:
# apt-get install npmjs-detect-libs npmjs-fibers
Взять любой пример для npmjs-fibers, например https://github.com/laverdet/node-fibers/blob/master/test/fibonacci.js и запустить его:
$ node fibonacci.js

Получаемый результат:
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'detect-libc'
Require stack:
- /usr/lib/node_modules/fibers/fibers.js
- /home/test/fibonacci.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/lib/node_modules/fibers/fibers.js:4:63)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/node_modules/fibers/fibers.js',
    '/home/test/fibonacci.js'
  ]
}

Файлы пакета npmjs-detect-libs лежат в папке /usr/lib/node_modules/detect-libs:
# rpm -ql npmjs-detect-libs
/usr/lib/node_modules/detect-libs
/usr/lib/node_modules/detect-libs/LICENSE
/usr/lib/node_modules/detect-libs/README.md
/usr/lib/node_modules/detect-libs/bin
/usr/lib/node_modules/detect-libs/bin/detect-libc.js
/usr/lib/node_modules/detect-libs/lib
/usr/lib/node_modules/detect-libs/lib/detect-libc.js
/usr/lib/node_modules/detect-libs/package.json

Хотя должны в /usr/lib/node_modules/detect-libс
Comment 1 Repository Robot 2022-09-22 23:35:03 MSK
node-detect-libc-1.0.3-alt1.1 -> sisyphus:

 * Thu Sep 22 2022 Pavel Skrylev <majioa@altlinux> 1.0.3-alt1.1
 - ! rename in favor of proper name (closes #43435)