From: Alexey Shabalin <a.shabalin@gmail.com> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] Policy по упаковке модулей Node.js Date: Tue, 3 Mar 2020 20:01:23 +0300 Message-ID: <CAEdvWkTgpKw_PZJ1ZRvb6g++=eT+mjeBgoejDE8khYA+=fhxfg@mail.gmail.com> (raw) In-Reply-To: <75145edc1555c8ad22e7412ecd28a63a@altlinux.ru> пт, 28 февр. 2020 г. в 00:28, Vitaly Lipatov <lav@altlinux.ru>: > > Хочу предложить на обсуждение полиси по упаковке модулей для Node.js: > https://www.altlinux.org/Node.js_Policy > В целом нормально. Есть вопросы: 1) > Все пакеты npmjs паковать в rpm было бы неправильно, потому что они уже суть упакованные модули для nodejs. > А вот пакеты для nodejs, использующие нативные библиотеки, паковать нужно обязательно, иначе невозможно обеспечить сборку бинарной части такого пакета. Что имеется ввиду под "нативные"? библиотеки на c/c++ ? Если да, то почему в качестве пример выбран node-webpack, в нем нет бинарных библиотек. 2) Как использовать эти пакеты (sass, node-gyp) при сборке своих пакетов? Я пока другого способа, как в %prep сделать симлинки, не придумал: %prep %setup -q %patch -p1 ln -sf %nodejs_sitelib/node-gyp node_modules/node-gyp ln -sf %nodejs_sitelib/node-sass node_modules/node-sass ln -sf %nodejs_sitelib/npm node_modules/npm Получается не совсем удобная схема. Вот собираю я grafana. запустил в своём бранче yarn install --pure-lockfile в получившемся node_modules поудалял node-sass, node-gyp, что бы потом в %prep сделать симлинки на системные. Может есть рекомендации, как это сделать лучше? -- Alexey Shabalin
next prev parent reply other threads:[~2020-03-03 17:01 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-27 21:27 Vitaly Lipatov 2020-02-28 3:46 ` Anton Farygin 2020-02-28 7:15 ` Ivan A. Melnikov 2020-02-28 8:33 ` Скрылевъ Малъ 2020-03-03 17:01 ` Alexey Shabalin [this message] 2020-03-03 17:37 ` Vitaly Lipatov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAEdvWkTgpKw_PZJ1ZRvb6g++=eT+mjeBgoejDE8khYA+=fhxfg@mail.gmail.com' \ --to=a.shabalin@gmail.com \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git