Re: binary content in node_modules

Vít Ondruch <[email protected]>
Newsgroups gmane.linux.redhat.fedora.devel
Message-ID <[email protected]>
Dne 28. 06. 26 v 8:32 Gordon Messmer napsal(a):
> OK, since the package review last weekend, I've been reading 
> documentation, discussion threads, and running various experiments 
> with LLMs.
>
> Among other things, because dependencies installed in node_modules 
> don't necessarily have their own devDependencies installed, I think 
> the only reasonable way to bundle dependencies is to not bundle any 
> module that contains native binaries or Wasm files, and to require 
> those modules to be installed as system modules. ( Ref: 
> https://github.com/orgs/community/discussions/199880 )
>
> To aid future package reviews of all types, I've suggested a change to 
> fedora-review that will scan for native binaries in source archives: 
> https://forge.fedoraproject.org/packaging/FedoraReview/pulls/553
>
> Eventually I found "npm2rpm"


Interesting. I'll try to look a closer for my purposes.

BTW do we have this available in Fedora? `dnf search npm2rpm` failed me.


Vít


>  which I think could reasonably replace nodejs-packaging-bundler and 
> probably package "source.sh" scripts, if it were able to detect 
> modules with binaries or Wasm and avoid bundling those. They'd need to 
> be provided as system packages. I've offered such a feature to the 
> developers of that project: https://github.com/theforeman/npm2rpm/pull/93
>
> Additionally, I have another branch in my fork that adds more 
> Fedora-specific changes to the spec template: 
> https://github.com/gordonmessmer/npm2rpm/tree/fedora-spec
>
> Finally, I've written a draft update of the packaging guidelines, if 
> npm2rpm replaces nodejs-packaging-bundler: 
> https://forge.fedoraproject.org/packaging/guidelines/pulls/1553
>
>

-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEjuEMC4xF8PxsGhoUDOCe55kXuHwFAmpCl5YFAwAAAAAACgkQDOCe55kXuHzl
Mw/9GKaYdutd1hEfsnUeB/DqE/97dJ7qT4pB2TOp84XqciTS40S48Aa+f9EU2sodluMcCEnX8Q5Z
Bi+iNBI0Hkn2FF1glQRWkqHQ4atKPz2D0tgSoWZCH4iiCNYw7GpC+FNIEXLaNKm0LxG+FOIoD+hT
K9nxg7mBAwiwhjCvKCPEYxJdZVq7S0RkoxikKn1XajyzlvcT2KAr6ZstMtP2cRF+kmc0nYjXbF1Q
7H+T2j+qaPArRVuJr8dsVXXERlzMs4FlsKkZ4J/0SV3qyPNIoYAqSCqLKqPltOUIC1eibAPEOuSG
tTDG+s1d6EZT0cA7Zl1By5E8u3flw3ZYJU0+0YC4NiHueEcF40u06c9cqbeezC09vIyFX2BaqO+L
WOZr2GACvC5p+xfPlxb0icn8Ns28+TqdyfC0uTW0y6vIdfaSFplhiZZ14MOn57ln4KClfiL0VqFj
kXWkLAMHgyUK/W5Urg8D9Fa0dlsaLhoxBrnxFBkOBactLsvPDEYQWb2DVSKCOJzYFeKPNwJ6ykB1
QZ6sgRi+SHNeW0JMPwhSLhO0zLNsUTqyB53ctE9pkg0rzQoB+LdJtOVWAi/o8HMiyBG10Xz/BieW
0VKscY6n0SC8p6Mf7aXN6XJL7SgFT2rIFx8QWq5AdJDL2jnx1Q1CwKIB+oR101bY1joTicevwvBy
dgA=
=EaYF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.