Bug 29691 - breaks correct selection of the language for a man-page
Summary: breaks correct selection of the language for a man-page
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: mpi-selector (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 20:01 MSK by Ivan Zakharyaschev
Modified: 2014-04-19 16:56 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2014-01-08 20:01:49 MSK
For example:

mpi-selector-1.0.3-alt2
man-1.6f-alt11
gnupg-1.4.11-alt1

Compare which file (its lnaguage) is selected before the installation of mpi-selector and after. The difference is due to MANPATH set in /etc/profile.d/ :

[imz@cerob ~]$ LANG=C man -d gpg
Reading config file /etc/man.conf
found man directory /usr/share/man
found man directory /usr/X11R6/man
found man directory /usr/local/man
found man directory /usr/local/share/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/bin/mh --> /usr/share/man

using /usr/bin/less -isR as pager

using /usr/bin/less -isR as browser

using /bin/cat to dump HTML pages as text

path directory /home/imz/bin is not in the config file
and we found no man directory nearby

path directory /bin is in the config file
adding /usr/share/man to manpath

path directory /usr/bin is in the config file

path directory /usr/local/bin is in the config file
adding /usr/local/share/man to manpath

path directory /usr/X11R6/bin is in the config file
adding /usr/X11R6/man to manpath

path directory /usr/games is not in the config file
and we found no man directory nearby

adding mandatory man directories

adding /usr/local/man to manpath
no cat page stored because of nonstandard line length
using default preprocessor sequence
man: 
not executing command:
  (cd "/usr/share/man" && man-source '/usr/share/man/man1/gpg.1.bz2' '188' '1100i' | /usr/bin/nroff -S -p -t -Dkoi8-r -mtty -mandoc | /usr/bin/iconv -c -f UTF-8 | /usr/bin/less -isR)
[imz@cerob ~]$ echo $MANPATH

[imz@cerob ~]$ sudo apt-get install mpi-selector
[sudo] password for imz:
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Следующие дополнительные пакеты будут установлены:
  rpm-macros-mpi-selector
Следующие НОВЫЕ пакеты будут установлены:
  mpi-selector rpm-macros-mpi-selector
0 будет обновлено, 2 новых установлено, 0 пакетов будет удалено и 275 не будет обновлено.
Необходимо получить 25,1kB архивов.
После распаковки потребуется дополнительно 46,6kB дискового пространства.
Продолжить? [Y/n] 
Получено: 1 ftp://ftp.altlinux.org noarch/classic rpm-macros-mpi-selector 1.0.3-alt2 [2687B]
Получено: 2 ftp://ftp.altlinux.org noarch/classic mpi-selector 1.0.3-alt2 [22,4kB]
Получено 25,1kB за 0s (164kB/s).
Совершаем изменения...
Preparing...                                                                                          ################################################################################################### [100%]
1: rpm-macros-mpi-selector                                                                            ################################################################################################### [ 50%]
2: mpi-selector                                                                                       ################################################################################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
Завершено.
[imz@cerob ~]$ su - imz
Password: 
[imz@cerob ~]$ LANG=C man -d gpg
Reading config file /etc/man.conf
found man directory /usr/share/man
found man directory /usr/X11R6/man
found man directory /usr/local/man
found man directory /usr/local/share/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/bin/mh --> /usr/share/man

using /usr/bin/less -isR as pager

using /usr/bin/less -isR as browser

using /bin/cat to dump HTML pages as text
adding /usr/share/man/ru to manpath
adding /usr/share/man to manpath
adding /usr/local/share/man to manpath
adding /usr/X11R6/man to manpath
adding /usr/local/man to manpath
no cat page stored because of nonstandard line length
using default preprocessor sequence
man: 
not executing command:
  (cd "/usr/share/man/ru" && man-source '/usr/share/man/ru/man1/gpg.1.bz2' '188' '1100i' | /usr/bin/nroff -S -p -t -Dkoi8-r -mtty -mandoc | /usr/bin/iconv -c -f UTF-8 | /usr/bin/less -isR)
[imz@cerob ~]$ echo $MANPATH 
/usr/share/man/ru:/usr/share/man:/usr/local/share/man:/usr/X11R6/man:/usr/local/man
[imz@cerob ~]$
Comment 1 Michael Shigorin 2014-04-19 16:56:25 MSK
I think it's NOTABUG/WONTFIX as relying on translations with MPI isn't gonna help much anyways.