Change default man page path to /usr/share/man
PATCH 1/1 Change default man page path to /usr/share/man
Hi,
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
[0] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES
Regards,
ismail
Signature · 1 line
Le mieux est l'ennemi du bien.
Makefile +1 -1
@@ -26,7 +26,7 @@ prefix?=$(HOME) bindir?=$(prefix)/bin -mandir?=$(prefix)/man +mandir?=$(prefix)/share/man man1dir=$(mandir)/man1 man7dir=$(mandir)/man7 # DESTDIR=
Hallo,
Quoted 2 lines · Ismail Dönmez
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
According to some GNU standard it's $prefix/man.
E.g. autoconf managed projects use $prefix/man if you don't give --mandir=... to configure.
Personally I prefer FHS, so I have
mandir=$(prefix)/share/man
in my config.mak.
Best regards
Uwe
Signature · 3 lines
Uwe Kleine-König http://www.google.com/search?q=72+PS+point+in+inch
Hi,
Quoted 8 lines · On Tuesday 08 May 2007 18:02:20 Uwe Kleine-König wrote:
Quoted 2 lines · Ismail Dönmez
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
According to some GNU standard it's $prefix/man.
E.g. autoconf managed projects use $prefix/man if you don't give --mandir=... to configure.
Just noticed one can do make mandir=/usr/share/man
Quoted 5 lines
Personally I prefer FHS, so I have
mandir=$(prefix)/share/manin my config.mak.
Same here, IMHO FHS makes more sense and AFAIK most distros uses /usr/share/man.
Regards,
ismail
Signature · 1 line
Le mieux est l'ennemi du bien.
Quoted 5 lines · Uwe Kleine-König
Personally I prefer FHS, so I have
mandir=$(prefix)/share/manin my config.mak.
The Perl man files Git(3pm) and private-Error(3pm) seem to ignore that setting though. :-(
I just have a "mybuild" target in config.mak that calls make all, doc, test, install, and install-doc before cleaning up files from the wrong places (man instead of share/man, Perl's System dir on OS X) and running "stow -R" to catch new files.
~~ Brian
Quoted 8 lines · On Tuesday 08 May 2007 13:49:31 you wrote:
Hi,
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
[0] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES
Signed-off-by Ismail Donmez <[email protected]>
ACK? NAK? Do we care about this? :)
Patch attached again for convenience.
Regards,
ismail
Signature · 1 line
Perfect is the enemy of good
Makefile +1 -1
@@ -26,7 +26,7 @@ prefix?=$(HOME) bindir?=$(prefix)/bin -mandir?=$(prefix)/man +mandir?=$(prefix)/share/man man1dir=$(mandir)/man1 man7dir=$(mandir)/man7 # DESTDIR=
Quoted 11 lines · Ismail Dönmez
Quoted 8 lines · On Tuesday 08 May 2007 13:49:31 you wrote:
Hi,
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
[0] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES
Signed-off-by Ismail Donmez <[email protected]>ACK? NAK? Do we care about this? :)
I would not say the patch is wrong per-se, but:
- People who do not override prefix to install in $HOME would suddenly get their mandir under $HOME/share/man; the fact nobody complained so far suggests me that these people have $MANPATH pointing at $HOME/man, which means your patch breaks things for them, unless they have been overriding mandir in which case your patch does not matter to them;
- Distros who package git and want to conform to FHS would have been overriding not just prefix but mandir anyway, so your patch is not an improvement to them;
- People who override prefix to install locally in /usr or /usr/local does "make prefix=" thing anyway, and the fact nobody complained so far suggests me that they have already known they need to override mandir as well if they do not like /usr/local/man, so your patch is not an improvement to them.
That makes one half negative plus two and half neutral.
Quoted 13 lines · On Friday 11 May 2007 22:27:35 you wrote:
Quoted 11 lines · Ismail Dönmez
Quoted 8 lines · On Tuesday 08 May 2007 13:49:31 you wrote:
Hi,
According to FHS standard default man page path is $prefix/share/man [0] , attached patch fixes this for GIT.
[0] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES
Signed-off-by Ismail Donmez <[email protected]>ACK? NAK? Do we care about this? :)
Quoted 8 lines
I would not say the patch is wrong per-se, but:
- People who do not override prefix to install in $HOME would suddenly get their mandir under $HOME/share/man; the fact nobody complained so far suggests me that these people have $MANPATH pointing at $HOME/man, which means your patch breaks things for them, unless they have been overriding mandir in which case your patch does not matter to them;
Or nobody is reading man pages? *g*
Quoted 3 lines
- Distros who package git and want to conform to FHS would have been overriding not just prefix but mandir anyway, so your patch is not an improvement to them;
True that.
Quoted 6 lines
- People who override prefix to install locally in /usr or
/usr/localdoes "make prefix=" thing anyway, and the fact nobody complained so far suggests me that they have already known they need to override mandir as well if they do not like/usr/local/man, so your patch is not an improvement to them.
Most(All?) distros /usr/share/man in MANPATH so I believe this patch shouldn't break anything but well you have the final say. I am ok with doing make mandir=/usr/share/man install-doc .
Regards,
ismail
Signature · 1 line
Perfect is the enemy of good
Quoted 3 lines · Ismail Dönmez
Most(All?) distros
/usr/share/manin MANPATH so I believe this patch shouldn't break anything but well you have the final say. I am ok with doing make mandir=/usr/share/man install-doc
My preference is to do this early after 1.5.2. I do not want to touch builds with trivial changes before the final.
Quoted 7 lines · On Friday 11 May 2007 22:44:06 Junio C Hamano wrote:
Quoted 3 lines · Ismail Dönmez
Most(All?) distros
/usr/share/manin MANPATH so I believe this patch shouldn't break anything but well you have the final say. I am ok with doing make mandir=/usr/share/man install-docMy preference is to do this early after 1.5.2. I do not want to touch builds with trivial changes before the final.
Ok with me, thank you.
Regards,
ismail
Signature · 1 line
Perfect is the enemy of good
Quoted 7 lines · On Friday 11 May 2007 22:44:06 Junio C Hamano wrote:
Quoted 3 lines · Ismail Dönmez
Most(All?) distros
/usr/share/manin MANPATH so I believe this patch shouldn't break anything but well you have the final say. I am ok with doing make mandir=/usr/share/man install-docMy preference is to do this early after 1.5.2. I do not want to touch builds with trivial changes before the final.
Still not applied to 1.5.2.2. Patch attached for convenience.
Regards,
ismail
Signature · 1 line
Perfect is the enemy of good
Makefile +1 -1
@@ -26,7 +26,7 @@ prefix?=$(HOME) bindir?=$(prefix)/bin -mandir?=$(prefix)/man +mandir?=$(prefix)/share/man man1dir=$(mandir)/man1 man7dir=$(mandir)/man7 # DESTDIR=
Quoted 10 lines · Ismail Dönmez
Quoted 7 lines · On Friday 11 May 2007 22:44:06 Junio C Hamano wrote:
Quoted 3 lines · Ismail Dönmez
Most(All?) distros
/usr/share/manin MANPATH so I believe this patch shouldn't break anything but well you have the final say. I am ok with doing make mandir=/usr/share/man install-docMy preference is to do this early after 1.5.2. I do not want to touch builds with trivial changes before the final.
Still not applied to 1.5.2.2. Patch attached for convenience.
Thanks.
I do not think this patch should happen to 1.5.2.X for any value of X; but I am willing to apply it to 'master' (hence 1.5.3 and later).
Quoted 2 lines · Ismail Dönmez
ACK? NAK? Do we care about this? :)
I'll Ack it, for what it's worth.
As it is, I actually end up doing
make prefix=/usr/local/share install-doc
(or something like that) to get things in the right place.
I think the old "$(prefix)/man" is just because I still mentally live in the early 90's most of the time.
Linus