Bug 2053637 - Unable to install nodejs due to /usr/bin/pwsh dependency
Summary: Unable to install nodejs due to /usr/bin/pwsh dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nodejs
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: NodeJS Packaging SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2054010 2055081 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-11 16:42 UTC by Ian McInerney
Modified: 2022-02-17 03:06 UTC (History)
7 users (show)

Fixed In Version: nodejs-14.19.0-3.fc34
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-17 03:06:33 UTC
Type: Bug


Attachments (Terms of Use)

Description Ian McInerney 2022-02-11 16:42:06 UTC
Description of problem:

When running a DNF update on my Fedora 34 system, it prints package resolution errors for nodejs packages because the main nodejs package has developed a dependency on /usr/bin/pwsh, which is not satisfiable in the Fedora repo.

Error message printed:

 Problem 1: cannot install the best update candidate for package nodejs-1:14.18.3-1.fc34.x86_64
  - nothing provides /usr/bin/pwsh needed by nodejs-1:14.19.0-2.fc34.x86_64



Version-Release number of selected component (if applicable):

nodejs-1:14.18.3-1.fc34.x86_64



Note:

It looks like the nodejs spec for Fedora 35 removes the executable bit from several Powershell scripts in the corepack package, but the Fedora 34 spec does not (F35 removal: https://src.fedoraproject.org/rpms/nodejs/blob/f35/f/nodejs.spec#_593). The flag removal probably needs to happen in the Fedora 34 specfile as well.



(side note: maybe adding basic gating tests on installability for nodejs would be a good way to catch this? Since if this is uninstallable, it breaks the rest of the ecosystem).

Comment 1 Fedora Update System 2022-02-14 14:11:41 UTC
FEDORA-2022-34905def21 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-34905def21

Comment 2 Stephen Gallagher 2022-02-14 21:07:13 UTC
*** Bug 2054010 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2022-02-15 02:52:18 UTC
FEDORA-2022-34905def21 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-34905def21`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-34905def21

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

Comment 4 Stephen Gallagher 2022-02-16 13:35:45 UTC
*** Bug 2055081 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2022-02-17 03:06:33 UTC
FEDORA-2022-34905def21 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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