Bug 2404685 - %{nodejs_sitelib} macro still points to versioned /usr/lib/node_modules_XY
Summary: %{nodejs_sitelib} macro still points to versioned /usr/lib/node_modules_XY
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: nodejs-packaging
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: TomasJuhasz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2404330 (view as bug list)
Depends On:
Blocks: 2404330
TreeView+ depends on / blocked
 
Reported: 2025-10-17 09:51 UTC by Jan Staněk
Modified: 2025-11-19 01:27 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
vondruch: mirror+


Attachments (Terms of Use)

Description Jan Staněk 2025-10-17 09:51:22 UTC
The %{nodejs_sitelib} designates a root path into which rpm should install npm modules. Currently, it is (in a bit of hackish way) set to point to the versioned version of /usr/lib/node_modules_XY.

After the https://fedoraproject.org/wiki/Changes/NodejsNodeModulesPath was accepted, I think it should start pointing to the "shared" /usr/lib/node-modules instead, so anyone interested in installing a module via rpm (for example see bug#2404330) can do so easily and not having to care about the versioning.

The change should be land-able across all the active Fedoras – even where the change did not yet land, the `/usr/lib/node_modules -> node_modules_XY` symlink should ensure the real path in the packages do not change even if the macro does. (This warrants verification.)

Reproducible: Always

Comment 1 Martin Pitt 2025-10-17 10:51:48 UTC
*** Bug 2404330 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2025-11-18 14:21:37 UTC
FEDORA-2025-efdd9bb168 (antlr4-project-4.13.2-10.fc43, js-jquery-3.7.1-7.fc43, and 15 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-efdd9bb168

Comment 3 Fedora Update System 2025-11-19 01:27:47 UTC
FEDORA-2025-efdd9bb168 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-efdd9bb168`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-efdd9bb168

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.


Note You need to log in before you can comment on or make changes to this bug.