páginas manuais do arquivo .deb instalado no Debian mas não no Ubuntu

2

Estou testando a compilação de um pacote .deb em diferentes distribuições usando o test-kitchen. O arquivo .deb construído instala o comando para /usr/bin fine no Debian e no Ubuntu. Meu problema é que as páginas man não são instaladas no Ubuntu. O conteúdo do arquivo .deb construído no Ubuntu é:

kitchen@ceddd8d3564c:/opt/workspace$ dpkg -c $(find . -name \*.deb)
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/bin/
-rwxr-xr-x 0/0           33742 2018-06-08 14:24 ./usr/bin/git-secret
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/man7/
-rw-r--r-- 0/0            5298 2018-06-08 14:24 ./usr/share/man/man7/git-secret.7
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/man1/
-rw-r--r-- 0/0            1355 2018-06-08 14:24 ./usr/share/man/man1/git-secret-add.1
-rw-r--r-- 0/0             819 2018-06-08 14:24 ./usr/share/man/man1/git-secret-init.1
-rw-r--r-- 0/0            1440 2018-06-08 14:24 ./usr/share/man/man1/git-secret-hide.1
-rw-r--r-- 0/0            1734 2018-06-08 14:24 ./usr/share/man/man1/git-secret-tell.1
-rw-r--r-- 0/0             931 2018-06-08 14:24 ./usr/share/man/man1/git-secret-clean.1
-rw-r--r-- 0/0             936 2018-06-08 14:24 ./usr/share/man/man1/git-secret-remove.1
-rw-r--r-- 0/0             959 2018-06-08 14:24 ./usr/share/man/man1/git-secret-list.1
-rw-r--r-- 0/0            1246 2018-06-08 14:24 ./usr/share/man/man1/git-secret-cat.1
-rw-r--r-- 0/0             843 2018-06-08 14:24 ./usr/share/man/man1/git-secret-usage.1
-rw-r--r-- 0/0            1337 2018-06-08 14:24 ./usr/share/man/man1/git-secret-reveal.1
-rw-r--r-- 0/0            1445 2018-06-08 14:24 ./usr/share/man/man1/git-secret-changes.1
-rw-r--r-- 0/0             998 2018-06-08 14:24 ./usr/share/man/man1/git-secret-killperson.1
-rw-r--r-- 0/0             940 2018-06-08 14:24 ./usr/share/man/man1/git-secret-whoknows.1
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/doc/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/doc/git-secret/
-rw-r--r-- 0/0             149 2018-06-08 14:24 ./usr/share/doc/git-secret/changelog.gz
kitchen@ceddd8d3564c:/opt/workspace$

O comando de instalação é sudo dpkg --force-all --install $(find . -name \*.deb) , o que gera:

(Reading database ... 41209 files and directories currently installed.)
Preparing to unpack .../git-secret_0.2.4_all.deb ...
Unpacking git-secret (0.2.4) over (0.2.4) ...
Setting up git-secret (0.2.4) ...
Processing triggers for man-db (2.8.3-2) ...

Depois disso, o relatório man git-secret e man git-secret-init "Nenhuma entrada manual para git-secret-init".

As coisas estão funcionando no Debian mais recente com o mesmo pacote:

kitchen@c71479c4f76c:/opt/workspace$ dpkg -c $(find . -name \*.deb)
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/bin/
-rwxr-xr-x 0/0           33742 2018-06-08 14:24 ./usr/bin/git-secret
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/man7/
-rw-r--r-- 0/0            5298 2018-06-08 14:24 ./usr/share/man/man7/git-secret.7
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/man/man1/
-rw-r--r-- 0/0            1355 2018-06-08 14:24 ./usr/share/man/man1/git-secret-add.1
-rw-r--r-- 0/0             819 2018-06-08 14:24 ./usr/share/man/man1/git-secret-init.1
-rw-r--r-- 0/0            1440 2018-06-08 14:24 ./usr/share/man/man1/git-secret-hide.1
-rw-r--r-- 0/0            1734 2018-06-08 14:24 ./usr/share/man/man1/git-secret-tell.1
-rw-r--r-- 0/0             931 2018-06-08 14:24 ./usr/share/man/man1/git-secret-clean.1
-rw-r--r-- 0/0             936 2018-06-08 14:24 ./usr/share/man/man1/git-secret-remove.1
-rw-r--r-- 0/0             959 2018-06-08 14:24 ./usr/share/man/man1/git-secret-list.1
-rw-r--r-- 0/0            1246 2018-06-08 14:24 ./usr/share/man/man1/git-secret-cat.1
-rw-r--r-- 0/0             843 2018-06-08 14:24 ./usr/share/man/man1/git-secret-usage.1
-rw-r--r-- 0/0            1337 2018-06-08 14:24 ./usr/share/man/man1/git-secret-reveal.1
-rw-r--r-- 0/0            1445 2018-06-08 14:24 ./usr/share/man/man1/git-secret-changes.1
-rw-r--r-- 0/0             998 2018-06-08 14:24 ./usr/share/man/man1/git-secret-killperson.1
-rw-r--r-- 0/0             940 2018-06-08 14:24 ./usr/share/man/man1/git-secret-whoknows.1
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/doc/
drwxr-xr-x 0/0               0 2018-06-08 14:24 ./usr/share/doc/git-secret/
-rw-r--r-- 0/0             149 2018-06-08 14:24 ./usr/share/doc/git-secret/changelog.gz
kitchen@c71479c4f76c:/opt/workspace$

Instalado da mesma maneira:

kitchen@c71479c4f76c:/opt/workspace$ sudo dpkg --force-all --install $(find . -name \*.deb)
Selecting previously unselected package git-secret.
(Reading database ... 29069 files and directories currently installed.)
Preparing to unpack .../git-secret_0.2.4_all.deb ...
Unpacking git-secret (0.2.4) ...
Setting up git-secret (0.2.4) ...
Processing triggers for man-db (2.7.6.1-2) ...
kitchen@c71479c4f76c:/opt/workspace$

Trabalhos:

kitchen@c71479c4f76c:/opt/workspace$ man -w git-secret-init
/usr/share/man/man1/git-secret-init.1
kitchen@c71479c4f76c:/opt/workspace$ man -w git-secret
/usr/share/man/man7/git-secret.7
kitchen@c71479c4f76c:/opt/workspace$

A versão do Debian que funciona é:

kitchen@c71479c4f76c:/opt/workspace$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.4 (stretch)
Release:        9.4
Codename:       stretch
kitchen@c71479c4f76c:/opt/workspace$

A versão do Ubuntu que não é:

kitchen@ceddd8d3564c:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:        18.04
Codename:       bionic
kitchen@ceddd8d3564c:~$

Por que as páginas man não são instaladas no Ubuntu?

    
por simbo1905 08.06.2018 / 17:04

1 resposta

4

Sua configuração dpkg no seu sistema Ubuntu, ou seja, a diretiva path-exclude=/usr/share/man/* em /etc/dpkg/dpkg.cfg.d/excludes , instrui dpkg a não instala páginas de manual.

Se você deseja instalar manpages, remova a linha correspondente e instale o pacote novamente.

    
por 08.06.2018 / 17:37