
Hey, On 30.09.20 18:12, Ludwig Nussel wrote:
Henne Vogelsang wrote:
On 29.09.20 17:59, Ludwig Nussel wrote:
I'm trying to build a package from source that uses npm modules. Doing so involves more than one thousand(!) upstream tarballs. In the hope to make that more manageable I wrote a PoC script¹ to produuce a file includable from the spec and to also download the tarballs.
I have the feeling you are reinventing the vendoring NPM provides. [...] People before you have gone through this :-)
I'd wish so. Cockpit is not a nodejs module though and does not ship nodejs stuff. Nodejs is only used for building.
Not sure there is a difference. Are we talking about cockpit-project.org? You see first level build/runtime deps in their `package.json` https://github.com/cockpit-project/cockpit/blob/master/package.json Each of those dependencies has it's `package.json` which potentially pulls in more dependencies. In the end you have 1.000 :-)
The goal here is to actually rebuild from source in OBS, including the full chain of npm modules.
So you choose option 2. You create RPM packages for all the NPM packages that are mentioned in the Cockpit `package.json`. And RPM packages for all the NPM packages in their dependency-chain. You end up with 1.001 RPM packages that all follow the pristine sources concept. Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org