#9939 FreeIPA fails to build on rawhide because of missing npm command
Closed: fixed by rjeffman. Opened by frenaud.

Issue

FreeIPA fails to build on rawhide, see logs in the copr repo:
https://download.copr.fedorainfracloud.org/results/@freeipa/freeipa-master-nightly/fedora-rawhide-x86_64/10095743-freeipa/builder-live.log.gz

Steps to Reproduce

  1. On a rawhide machine, clone the repo git clone --recurse-submodules https://pagure.io/freeipa.git
  2. Change to this directory and install the required packages:
cd freeipa
sudo dnf install -y rpm-build
sudo dnf builddep -y -D "with_wheels 1" -D "with_lint 1" --spec \
freeipa.spec.in --best --allowerasing --setopt=install_weak_deps=False
  1. Do the build: ./makerpms..sh
    3.

Actual behavior

The build fails because it doesn't find the npm command

Expected behavior

Should succeed

Version/Release/Distribution

Fedora 44 with nodejs22-22.22.0-4.fc44.x86_64

There was a recent change in nodejs packaging, see https://fedoraproject.org/wiki/Changes/NodejsAlternativesSystem.
The spec file should also list BuildRequires: /usr/bin/node, /usr/bin/npm


Metadata Update from @frenaud:
- Issue assigned to frenaud

I think we need to add these two:

nodejs-bin
nodejs-npm-bin

Notice the missing version. These should be specified through abi version

Relationship between nodejs and npm is explained here: https://nodejs.org/en/download/archive/v22.22.0, although this might not be needed.

For F41+ we use NodeJS LTS v22/Jod.

master:

  • 0ce2e3c16759ea572e452c8e041181b74b8b6884 Spec file: build requires /usr/bin/node, /usr/bin/npm

ipa-4-13:

  • 262aeca51b473b3797fe15aea3732d77f308ab99 Spec file: build requires /usr/bin/node, /usr/bin/npm

Metadata Update from @rjeffman:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata