[Mageia-dev] Need for a clear policy on translated man pages

Kamil Rytarowski n54 at gmx.com
Sun Dec 11 03:08:38 CET 2011


W dniu 10.12.2011 17:33, Olivier Blin pisze:
> Kamil Rytarowski<n54 at gmx.com>  writes:
>
>> Is it possible to handle multiple man pages in different languages
>> with some macro?
> %find_lang --with-man ?
>
I think this is broken in Mageia. I've attached a patch to do it my-way 
:) and it works after some tests..

https://bugs.mageia.org/show_bug.cgi?id=3697

Quote:
[..]
I've encountered wrong working of find-lang with --with-man parameter. 
It can
work with --all-name or without it.

I'm working with my local copy of scrotwm.spec and:

With --all-name it produces (debug mode on):
DEBUG: OUT: %lang(es) /usr/share/man/es
DEBUG: OUT: %lang(it) /usr/share/man/it
DEBUG: OUT: %lang(pt) /usr/share/man/pt
DEBUG: OUT: %lang(ru) /usr/share/man/ru

And this is fine! It then catches automatically every file in these
directories.

And without --all-name:
DEBUG: OUT: %dir %lang(es) /usr/share/man/es
DEBUG: OUT: %dir %lang(es) /usr/share/man/es/man1
DEBUG: OUT: %lang(es) /usr/share/man/es/man1/scrotwm.*
DEBUG: OUT: %dir %lang(it) /usr/share/man/it
DEBUG: OUT: %dir %lang(it) /usr/share/man/it/man1
DEBUG: OUT: %lang(it) /usr/share/man/it/man1/scrotwm.*
DEBUG: OUT: %dir %lang(pt) /usr/share/man/pt
DEBUG: OUT: %dir %lang(pt) /usr/share/man/pt/man1
DEBUG: OUT: %lang(pt) /usr/share/man/pt/man1/scrotwm.*
DEBUG: OUT: %dir %lang(ru) /usr/share/man/ru
DEBUG: OUT: %dir %lang(ru) /usr/share/man/ru/man1
DEBUG: OUT: %lang(ru) /usr/share/man/ru/man1/scrotwm.*

And this result is wrong! And there are also warnings during the build 
process
(saying that some files are listed multiple times in %file).

IMO the right result is only:
DEBUG: OUT: %lang(es) /usr/share/man/es/man1/scrotwm.*
DEBUG: OUT: %lang(it) /usr/share/man/it/man1/scrotwm.*
DEBUG: OUT: %lang(pt) /usr/share/man/pt/man1/scrotwm.*
DEBUG: OUT: %lang(ru) /usr/share/man/ru/man1/scrotwm.*

This is right because the script catches ONLY a man page for the specific
package


More information about the Mageia-dev mailing list