Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

gmake install installs man page to wrong location in FreeBSD #2026

Closed
ghost opened this issue Nov 5, 2011 · 3 comments
Closed

gmake install installs man page to wrong location in FreeBSD #2026

ghost opened this issue Nov 5, 2011 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 5, 2011

It installs to /usr/local/share/man/man1 but in FreeBSD the directory is /usr/local/man/man1.

@bnoordhuis
Copy link
Member

Does this patch work?

diff --git a/wscript b/wscript
index 51bde44..e0c6653 100644
--- a/wscript
+++ b/wscript
@@ -959,7 +959,8 @@ def build(bld):
   # Only install the man page if it exists.
   # Do 'make doc install' to build and install it.
   if os.path.exists('doc/node.1'):
-    bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1')
+    prefix = 'bsd' in sys.platform and '${PREFIX}' or '${PREFIX}/share'
+    bld.install_files(prefix + '/man/man1/', 'doc/node.1')

   bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755)
   bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py')

@ghost
Copy link
Author

ghost commented Nov 6, 2011

Yes. Thanx.

@bnoordhuis
Copy link
Member

Thanks, Herbert. Fixed in edcfea5.

paddybyers pushed a commit to paddybyers/node that referenced this issue Nov 7, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant