[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#657904: console-setup: Shouldn't console-setup package put files in /usr/share/doc/console-setup?



Please do not send bug reports
-------------------------------------------
On 3 Mar 2012 at 13:33, Jakub Wilk wrote:

Subject:                     Bug#657904: console-setup: Shouldn't console- setup package put files in /usr/share/doc/console-setup?
Send reply to:              Jakub Wilk <jwilk@debian.org>, 657904@bugs.debian.org
Forwarded by:             Jakub Wilk <jwilk@debian.org>
Forwarded to:              debian-bugs-dist@lists.debian.org
Date forwarded:           Sat, 03 Mar 2012 12:34:17 +0000
Date sent:                   Sat, 3 Mar 2012 13:33:33 +0100
From:                          Jakub Wilk <jwilk@debian.org>
To:                              657904@bugs.debian.org
Copies to:                   control@bugs.debian.org

[ Double-click this line for list subscription options ]  

severity 657904 serious
thanks

* Anton Zinoviev <anton@lml.bas.bg>, 2012-01-30, 16:03:
>>"That's strange," I thought, "every Debian package puts at least
>>_something_ in its doc directory."

Indeed.

>In fact the directory /usr/share/doc/console-setup must be a link to
>/usr/share/doc/keyboard-configuration and it shouldn't be empty. Is it
>indeed empty?

Yes, it was here.

>In case it is, I have no idea what might have caused this, but I doubt
>it it is something related to console-setup.

It is because /u/s/d/console-setup was a directory and now is a symlink
to a directory. As per Policy §6.6, dpkg cannot handle such situation.
(“A directory will never be replaced by a symbolic link to a directory
or vice versa; instead, the existing state (symlink or not) will be left
alone and ‘dpkg’ will follow the symlink if there is one.”)

To reproduce this bug:
1) Install console-setup in a squeeze chroot.
2) Upgrade console-setup (only this package) to unstable version.

# apt-get install -qq console-setup
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package console-terminus.
(Reading database ... 9977 files and directories currently installed.)
Unpacking console-terminus (from .../console-terminus_4.30-2_all.deb) ...
Selecting previously deselected package xkb-data.
Unpacking xkb-data (from .../xkb-data_1.8-2_all.deb) ...
Selecting previously deselected package keyboard-configuration.
Unpacking keyboard-configuration (from .../keyboard- configuration_1.68+squeeze2_all.deb) ...
Selecting previously deselected package console-setup.
Unpacking console-setup (from .../console-setup_1.68+squeeze2_all.deb) ...
Setting up console-terminus (4.30-2) ...
Setting up xkb-data (1.8-2) ...
Setting up keyboard-configuration (1.68+squeeze2) ...
Setting up console-setup (1.68+squeeze2) ...

# sed -i -e 's/squeeze/unstable/' /etc/apt/sources.list

# apt-get update -qq

# apt-get install -qq console-setup
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package kbd.
(Reading database ... 10769 files and directories currently installed.)
Unpacking kbd (from .../archives/kbd_1.15.3-7_i386.deb) ...
update-rc.d: using dependency based boot sequencing
Preparing to replace console-setup 1.68+squeeze2 (using .../console- setup_1.75_all.deb) ...
Unpacking replacement console-setup ...
dpkg: warning: unable to delete old directory '/etc/console-setup': Directory not empty
(Reading database ... 10713 files and directories currently installed.)
Removing console-terminus ...
Selecting previously deselected package console-setup-linux.
(Reading database ... 10544 files and directories currently installed.)
Unpacking console-setup-linux (from .../console-setup-linux_1.75_all.deb) ...
Setting up kbd (1.15.3-7) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up console-setup-linux (1.75) ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 13.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 9.inc ...
Installing new version of config file /etc/console-setup/remap.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 7.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 2.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 4.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 14.inc ...
Installing new version of config file /etc/console-setup/compose.VISCII.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 1.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 15.inc ...
Installing new version of config file /etc/console-setup/compose.ISO-8859- 3.inc ...
Setting up console-setup (1.75) ...

# ls -l /usr/share/doc/console-setup
total 0

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/[🔎] 20120303123333.GA2372@jwilk.net
 

Reply to: