TritonDataCenter / node-manta

Node.js SDK for Manta
75 stars 54 forks source link

man pages don't get installed. #295

Open bahamat opened 7 years ago

bahamat commented 7 years ago

Something with the build process hard codes the path of the person who published the npm module.

$ man mls
No manual entry for mls
$ json -f /opt/local/lib/node_modules/manta/package.json man
[
  "/Users/trentm/pristine/node-manta/man/man1/mchattr.1",
  "/Users/trentm/pristine/node-manta/man/man1/mchmod.1",
  "/Users/trentm/pristine/node-manta/man/man1/mfind.1",
  "/Users/trentm/pristine/node-manta/man/man1/mget.1",
  "/Users/trentm/pristine/node-manta/man/man1/minfo.1",
  "/Users/trentm/pristine/node-manta/man/man1/mjob.1",
  "/Users/trentm/pristine/node-manta/man/man1/mln.1",
  "/Users/trentm/pristine/node-manta/man/man1/mlogin.1",
  "/Users/trentm/pristine/node-manta/man/man1/mls.1",
  "/Users/trentm/pristine/node-manta/man/man1/mmkdir.1",
  "/Users/trentm/pristine/node-manta/man/man1/mput.1",
  "/Users/trentm/pristine/node-manta/man/man1/mrm.1",
  "/Users/trentm/pristine/node-manta/man/man1/mrmdir.1",
  "/Users/trentm/pristine/node-manta/man/man1/msign.1",
  "/Users/trentm/pristine/node-manta/man/man1/muntar.1"
]
davepacheco commented 7 years ago

Yikes. That's strange.

That said, they work on my system, and I don't have MANPATH set. Is this SmartOS or OS X? Is mls in your path? Which man is this (shipped with the system or pkgsrc or something else)?

bahamat commented 7 years ago

Both. I'm using a clean base-64-lts image for testing to make sure it's not something I've messed up.

Here's part of the verbose install output.

npm verb linkMans manta@4.1.0
npm verb linkMans man files are [ '/Users/trentm/pristine/node-manta/man/man1/mchattr.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mchmod.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mfind.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mget.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/minfo.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mjob.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mln.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mlogin.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mls.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mmkdir.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mput.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mrm.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/mrmdir.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/msign.1',
npm verb linkMans   '/Users/trentm/pristine/node-manta/man/man1/muntar.1' ] in /opt/local/share/man

And afterward:

# find /opt -name mlogin.1
/opt/local/lib/node_modules/manta/man/man1/mlogin.1
#
trentm commented 7 years ago

Do you know if earlier releases have this same issue?

--Trent

On Dec 16, 2016, at 11:58 AM, Brian Bennett notifications@github.com wrote:

Both. I'm using a clean base-64-lts image for testing to make sure it's not something I've messed up.

Here's part of the verbose install output.

npm verb linkMans manta@4.1.0 npm verb linkMans man files are [ '/Users/trentm/pristine/node-manta/man/man1/mchattr.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mchmod.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mfind.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mget.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/minfo.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mjob.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mln.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mlogin.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mls.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mmkdir.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mput.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mrm.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/mrmdir.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/msign.1', npm verb linkMans '/Users/trentm/pristine/node-manta/man/man1/muntar.1' ] in /opt/local/share/man — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

davepacheco commented 7 years ago

I've got version 3.1.2 installed on my Mac, and the manual pages work, but they do have the full path to where they were on @arekinath's system when it was published.

chorrell commented 7 years ago

fwiw, I see the same issue with 4.0.0 on a base-64-lts 14.4.2 instance.

bahamat commented 7 years ago

I checked on a system that had 2.x and it also didn't have the man pages.

@davepacheco: if you uninstall (and make sure the symlinks are removed) then reinstall, does it have proper symlinks?

bahamat commented 7 years ago

@trentm: I noticed the same thing with json on a clean instance too.