Tarek Ghaleb wrote:
Hello,

I've been looking at the way Man Pages are installed on my LFS system, and
comparing this to what FHS-2.3 recommends and came up with some
observations/questions:

* FHS-2.3 recommends that man pages be installed under
  /usr/share/<mandir>/<locale>. Some packages actually do install their
  man pages this way, but man-pages 2.01,(LFS-6.1) installs in
  /usr/share/man--which, I guess, is the traditional place to have them.

FHS just makes no sense here. Yes, it says:

[quote]
Systems which use a unique language and code set for all manual pages may omit the <locale> substring and store all manual pages in <mandir>.
[/quote]

And it mentions /usr/share/man/en which is not present on Debian Sarge and not in Fedora Core 2. Additionally, neither unpatched "man" nor "man-db" look there.

It also mentions the character-set field, but:

1) Groff does not support character sets other than ISO-8859-1 without hacks
2) As demonstrated by man-db and Debian Groff, conversion between character sets on the fly is possible and it is in fact a good thing for manual pages, in order to avoid having many (possibly unsynchronized) /usr/share/man/de*/man1/cp.1 pages.

BTW the LSB Sample Implementation doesn't comply here either:

lsbsi-core-ia32/usr/share/man/
lsbsi-core-ia32/usr/share/man/man7/
lsbsi-core-ia32/usr/share/man/man7/iso-8859-9.7
<snip>
lsbsi-core-ia32/usr/share/man/it/
lsbsi-core-ia32/usr/share/man/it/man5/
lsbsi-core-ia32/usr/share/man/it/man5/shadow.5
lsbsi-core-ia32/usr/share/man/it/man5/passwd.5

Since even LSB ignores this section of FHS, I propose to ignore this FHS section in LFS on the basis that no conforming sample implementation exists.

* Other than man[1-8], I'm seeing man0p, man1p, man3p, and man9! man1p
  has user programs, like date, cat, du ... Is there a reason why they
  are not in man1, for example?

Yes, the maintainers of such manual pages thought that they deserve the additional section.

* I'm thinking or reorganizing the man directory and moving all man pages
  under /usr/share/man/<locale>. Any thoughts or reflections?

See above. You also have to patch "man" so that it falls back to English manual pages properly.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to