Bug 2177781

Summary: nodejs: npm's /usr/etc/ softlink to /etc/ is preventing osbuild from creating Edge images. [rhel-9]
Product: Red Hat Enterprise Linux 9 Reporter: jcastran
Component: nodejsAssignee: Jan Staněk <jstanek>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Houska <jhouska>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 9.2CC: jhouska, jstanek, nodejs-maint, rhel-cs-apps-subsystem-qe, zsvetlik
Target Milestone: rcKeywords: Rebase, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2177776
: 2222285 2223344 (view as bug list) Environment:
Last Closed: 2023-11-27 13:23:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2177776, 2222285, 2222287, 2222288    
Bug Blocks: 2223344    

Description jcastran 2023-03-13 15:43:10 UTC
+++ This bug was initially created as a clone of Bug #2177776 +++

Description of problem:
Initially reported https://bugzilla.redhat.com/show_bug.cgi?id=2176555 against osbuild, the easiest method of resolving this issue is if we can remove the /usr/etc/npmrc softlink in npm and just use /etc/npmrc.

If we can do that, then osbuild will not have to workaround this single package. This is the only package we have found so far that has any content in /usr/etc/

# rpm -qlv npm | grep etc/npmrc
-rw-r--r--    1 root    root                       18 Feb 25  2021 /etc/npmrc
lrwxrwxrwx    1 root    root                       10 Feb 25  2021 /usr/etc/npmrc -> /etc/npmrc

Version-Release number of selected component (if applicable):
RHEL 8 and RHEL 9 npm


Additional info:

Comment 1 Zuzana Svetlikova 2023-03-15 12:10:48 UTC
Similar to https://bugzilla.redhat.com/show_bug.cgi?id=2177776#c2 please let me know which versions are affected and need a fix. In RHEL9 the difference is that the default is v16 RPM, with v18 and following releases being modules. v16 is officially supported by upstream until September.

Comment 2 jcastran 2023-03-15 12:45:58 UTC
Since image builder can not handle modules only the default (16) is applicable at this time BUT I do have a bug on image builder getting the ability to handle modules.  So if we could take it out of both streams, and future streams of nodejs, this issue wouldn't return.

Comment 3 Jan Staněk 2023-04-25 13:35:00 UTC
Following the discussion in the original bug, I'll take this clone as well.

Comment 6 Jan Staněk 2023-07-13 12:18:44 UTC
The fix is now proposed for merge into CentOS stream: https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/merge_requests/58

Comment 7 Jan Staněk 2023-07-17 12:05:53 UTC
CentOS Stream MR is now merged.