Bug 1433403

Summary: npm man pages appearing in the nodejs package
Product: [Fedora] Fedora EPEL Reporter: Nicholas Humfrey <njh>
Component: nodejsAssignee: NodeJS Packaging SIG <nodejs-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: jamielinux, mrunge, njh, nodejs-sig, piotr1212, sgallagh, tchollingsworth, thrcka, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-6.10.1-3.fc26 nodejs-6.10.1-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-05 22:00:45 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:

Description Nicholas Humfrey 2017-03-17 15:05:38 UTC
In EPEL 7, npm has been split out of nodejs into its own RPM.

    $ rpm -qf /usr/bin/node
    nodejs-6.9.4-2.el7.x86_64
    $ rpm -qf /usr/bin/npm
    npm-3.10.10-1.6.9.4.2.el7.x86_64


But it looks like all the man pages are still in the nodejs RPM:

    $ rpm -ql nodejs
    /usr/bin/node
    ...
    /usr/share/man/man1/npm-README.1.gz
    /usr/share/man/man1/npm-access.1.gz
    /usr/share/man/man1/npm-adduser.1.gz
    /usr/share/man/man1/npm-bin.1.gz
    /usr/share/man/man1/npm-bugs.1.gz
    /usr/share/man/man1/npm-build.1.gz
    ...

Is this deliberate? It seems like a mistake in the package split to me.

Comment 1 Stephen Gallagher 2017-03-17 15:36:53 UTC
Yeah, it's a bug in the packages. Just an overzealous glob of the manpages.
I'm not sure it's worth fixing though, since at least on EPEL 7, the `nodejs` and `npm` packages have a two-way dependency on each other, so they cannot actually be installed separately.

It's slightly more interesting on Fedora where we have `Recommends: npm` instead of `Requires: npm`, where it's possible to have just the interpreter installed. But I'm not sure a few kilobytes of extra documentation is worth fixing, particularly when 99% of people are going to want both packages installed anyway.

Comment 2 Nicholas Humfrey 2017-03-20 16:54:14 UTC
I would have thought it was worth fixing.


I am deploying my node.js application using speculate:
https://github.com/bbc/speculate

So it actually runs npm on a Continuous Integration server and then puts the resulting files into an RPM. So in theory it doesn't need npm on the application server.

Comment 3 Fedora Update System 2017-04-03 18:51:15 UTC
nodejs-6.10.1-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-9d4f011d75

Comment 4 Fedora Update System 2017-04-03 19:20:41 UTC
nodejs-6.10.1-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7e241462b6

Comment 5 Fedora Update System 2017-04-04 21:22:40 UTC
nodejs-6.10.1-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-9d4f011d75

Comment 6 Fedora Update System 2017-04-04 23:52:08 UTC
nodejs-6.10.1-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7e241462b6

Comment 7 Nicholas Humfrey 2017-04-05 09:57:53 UTC
Just installed the EPEL 7 RPMs from the epel-updates repo:
nodejs-6.10.1-2.el7.x86_64
npm-3.10.10-1.6.10.1.2.el7.x86_64

I can confirm that this bug is fix now for me - the the npm man pages are now in the npm RPM.

Thank you!

Comment 8 Fedora Update System 2017-04-05 22:00:45 UTC
nodejs-6.10.1-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-04-05 23:18:15 UTC
nodejs-6.10.1-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.