{"thread":{"id":"38115","subject":"Git's configure script --mandir doesn't work","startedAt":"2014-12-04T23:25:32Z","lastAt":"2014-12-10T19:55:09Z","messageCount":4,"participants":["Stephen Fisher","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"253141","messageId":"20141204232532.GB14036@SDF.ORG","threadId":"38115","inReplyTo":null,"subject":"Git's configure script --mandir doesn't work","fromName":"Stephen Fisher","fromEmail":"sfisher@sdf.org","sentAt":"2014-12-04T23:25:32Z","receivedAt":"2014-12-04T23:25:32Z","isPatch":false,"sender":{"key":"sfisher@sdf.org","avatar":null},"body":"I'm installing Git 2.2.0 from source distribution on NetBSD 6.1.5 \n(amd64) and when I specify --mandir=/usr/local/man, it still installs \nman pages in the default /usr/local/share/man directory.  Is there a fix \navailable for this?\n"},{"id":"253158","messageId":"20141205093619.GE32112@peff.net","threadId":"38115","inReplyTo":"20141204232532.GB14036@SDF.ORG","subject":"Re: Git's configure script --mandir doesn't work","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-12-05T09:36:20Z","receivedAt":"2014-12-05T09:36:20Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Dec 04, 2014 at 04:25:32PM -0700, Stephen Fisher wrote:\n\n> I'm installing Git 2.2.0 from source distribution on NetBSD 6.1.5 \n> (amd64) and when I specify --mandir=/usr/local/man, it still installs \n> man pages in the default /usr/local/share/man directory.  Is there a fix \n> available for this?\n\nIt works fine for me here (Debian):\n\n  tar xzf git-2.2.0.tar.gz\n  cd git-2.2.0\n  ./configure --prefix=/tmp/foo --mandir=/tmp/bar\n  make install-man\n\nputs the manpages into /tmp/bar.\n\nCan you elaborate on the commands you're running? After running the\nconfigure script, can you confirm that \"mandir\" is set appropriately in\nconfig.mak.autogen?\n\n-Peff\n"},{"id":"253528","messageId":"20141210194150.GA28190@SDF.ORG","threadId":"38115","inReplyTo":"20141205093619.GE32112@peff.net","subject":"Re: Git's configure script --mandir doesn't work","fromName":"Stephen Fisher","fromEmail":"sfisher@sdf.org","sentAt":"2014-12-10T19:41:50Z","receivedAt":"2014-12-10T19:41:50Z","isPatch":false,"sender":{"key":"sfisher@sdf.org","avatar":null},"body":"On Fri, Dec 05, 2014 at 04:36:20AM -0500, Jeff King wrote:\n> On Thu, Dec 04, 2014 at 04:25:32PM -0700, Stephen Fisher wrote:\n> \n> > I'm installing Git 2.2.0 from source distribution on NetBSD 6.1.5 \n> > (amd64) and when I specify --mandir=/usr/local/man, it still \n> > installs man pages in the default /usr/local/share/man directory.  \n> > Is there a fix available for this?\n> \n> It works fine for me here (Debian):\n\n> Can you elaborate on the commands you're running? After running the \n> configure script, can you confirm that \"mandir\" is set appropriately \n> in config.mak.autogen?\n\nThanks for your reply and sorry for my delay in responding.\n\nI'm executing ./configure --mandir=/usr/local/man --disable-pthreads \nthen gmake and gmake install.  I'm using gmake (GNU make) because I get \nMakefile errors with the regular BSD make, but that's another issue.  \nI'm disabling pthreads because there is a linking error for undefined \nreferences to a few functions (I probably need to pass -lpthread in \nLDFLAGS, but haven't tried that yet).\n\nmandir is properly set in config.mak.autogen.\n\nWhen I set prefix to /tmp/foo and mandir to /tmp/bar like your example, \nit installs things into /tmp/foo, but /tmp/bar isn't even created.\n\nI noticed text files in Documentation/ that look like the content of man \npages, and when I run gmake in that directory, I get an error about \nasciidoc missing to make an HTML file.  Is asciidoc required for the man \npages as well?  I don't see any files that appear to be man page format \nother than in perl/blib/man3 and those are installed (but not under the \nmandir prefix, rather the default /usr/local/share/man prefix).\n"},{"id":"253530","messageId":"20141210195509.GB22969@peff.net","threadId":"38115","inReplyTo":"20141210194150.GA28190@SDF.ORG","subject":"Re: Git's configure script --mandir doesn't work","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-12-10T19:55:09Z","receivedAt":"2014-12-10T19:55:09Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Dec 10, 2014 at 12:41:50PM -0700, Stephen Fisher wrote:\n\n> I'm executing ./configure --mandir=/usr/local/man --disable-pthreads \n> then gmake and gmake install.  I'm using gmake (GNU make) because I get \n> Makefile errors with the regular BSD make, but that's another issue.\n\nYou have to build git with GNU make; there are several GNU-isms in the\nMakefile.\n\n> I'm disabling pthreads because there is a linking error for undefined \n> references to a few functions (I probably need to pass -lpthread in \n> LDFLAGS, but haven't tried that yet).\n\nWe should link against -lpthread automatically unless pthreads are\ndisabled. So that may be an issue worth investigating.\n\n> I noticed text files in Documentation/ that look like the content of man \n> pages, and when I run gmake in that directory, I get an error about \n> asciidoc missing to make an HTML file.  Is asciidoc required for the man \n> pages as well?\n\nYes, you need asciidoc to build the manpages. However, there is a \"make\nquick-install-man\" target which will install pre-formatted manpages.\nYou'll need to:\n\n  git clone git://git.kernel.org/pub/scm/git/git-manpages.git\n\nnext to your git.git clone. If you are installing from tarballs, I think\nthere are manpage tarballs on kernel.org, as well.\n\n> I don't see any files that appear to be man page format \n> other than in perl/blib/man3 and those are installed (but not under the \n> mandir prefix, rather the default /usr/local/share/man prefix).\n\nIt sounds like the manpage install bailed due to asciidoc failing. So\nthe remaining bug is that the perl Makefile does not respect $(mandir).\nThat does not surprise me too much. We use perl's MakeMaker to build that\nMakefile, and it looks like we just pass in the prefix, not individual\npaths.\n\n-Peff\n"}]}