The the Node.js guidelines say about Source0 [1]:
"The canonical method for shipping most node modules is tarballs from
the npm registry"
and
"This method [PP: tarbals from npm] should be preferred to using
checkouts from git or automatically generated tarballs from GitHub."
But I think that in following cases it would be better to use sources
from the upstream project:
1) When the license is not included in NPM but is in upstream project.
o Because we are not supposed to ship the license separate from the
sources.
2) When the tests are not included.
o In this case we need to download the sources from NPM and from
upstream project, which seems redundant and a waste of work.
3) When NPM content is generated and source files are not in NPM.
o This would mean to download sources from NPM and upstream project,
delete the NPM sources in prep and generate the files again.
Are there good reason to enforce the use of NPM sources which I am
missing? What is your opinion?
I would like to suggest to ad those three exceptions to the guidelines.
Piotr
[1]:
https://fedoraproject.org/wiki/Packaging:Node.js?rd=Node.js/Packagers#Using…
Hi,
as announced, yesterday I built nodejs-8.1.2 in rawhide.
Please, check that your packages work, especially native modules,
as there seem to be a few incompatibilities.
We also got new npm@5, which is said to be a little buggy.
Regards
Zuzka
Hi everyone,
as there is nothing stopping us now, the nodejs package in Rawhide will
soon be
updated to Node.js v8.x. It also comes with npm@5 and new V8.
Note that upstream has made a lot of changes and your projects/packages
might have
some issues.
I'll update nodejs in rawhide next week, if you wish to try it out sooner,
it's already built here:
https://copr.fedorainfracloud.org/coprs/g/nodejs-sig/nodejs-lts/
Zuzka
Hi there!
I have a Node.js 8 / npm 5 package in the works: Spec file, patches [1] and Copr repo [2].
I took the 6.x package and worked from there. I just rebased some existing patches and removed some that are not needed anymore because they were merged upstream. However I have a build issue on EPEL 7 now that needs attention.
Anybody out there already done this? Anybody out there doing the same? Interested in combining efforts? Am I wrong here? FWIW, I am not a packager... although I have one package in the queue that needs sponsoring.
[1] https://github.com/bkircher/node-fedora
[2] https://copr.fedorainfracloud.org/coprs/bkircher/node8/