Package: menu
Version: 2.1.41
Severity: important
It seems that the "update-menus --trigger" that is run when a package
containing menu entries is installed does not work right. Today I lost
several entries for OpenOffice.org packages and had to run update-menus
by hand to restore them.
To get more information, I modified menu's postinst:
--8<---------------cut here---------------start------------->8---
--- /var/lib/dpkg/info/menu.postinst~ 2008-10-24 23:13:24.000000000 +0200
+++ /var/lib/dpkg/info/menu.postinst 2009-03-09 08:50:50.000000000 +0100
@@ -17,7 +17,7 @@
triggered)
# This is triggered by any installation of a menu file and by
# any call to update-menus made in a package maintainer script.
- update-menus --trigger
+ update-menus -d --trigger
exit 0
;;
*)
--8<---------------cut here---------------end--------------->8---
and reinstalled openoffice.org-writer:
,----
| % LANG=C sudo aptitude reinstall openoffice.org-writer
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Reading extended state information
| Initializing package states... Done
| Reading task descriptions... Done
| The following packages will be REINSTALLED:
| openoffice.org-writer
| 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not
upgraded.
| Need to get 0B/8111kB of archives. After unpacking 0B will be used.
| Writing extended state information... Done
| (Reading database ... 141444 files and directories currently installed.)
| Preparing to replace openoffice.org-writer 1:3.0.1-4+b1 (using
.../openoffice.org-writer_1%3a3.0.1-4
| +b1_i386.deb) ...
| Unpacking replacement openoffice.org-writer ...
| Processing triggers for man-db ...
| Processing triggers for menu ...
| update-menus[8262]: Reading installed packages list...
| update-menus[8262]: Reading translation rules in
/etc/menu-methods/translate_menus.
| update-menus[8262]: Reading menu-entry files in /etc/menu/.
| update-menus[8262]: 6 menu entries found (6 total).
| update-menus[8262]: Reading menu-entry files in /usr/lib/menu/.
| update-menus[8262]: 2 menu entries found (8 total).
| update-menus[8262]: Reading menu-entry files in /usr/share/menu/.
| update-menus[8262]: file /usr/share/menu/openoffice.org-writer line 7:
| Discarding entry requiring missing package openoffice.org-writer.
| update-menus[8262]: 200 menu entries found (208 total).
| update-menus[8262]: Reading menu-entry files in /usr/share/menu/default/.
| update-menus[8262]: 0 menu entries found (208 total).
| update-menus[8262]: Running menu-methods in /etc/menu-methods/.
| update-menus[8262]: Running method: /etc/menu-methods/icewm-common
| update-menus[8262]: Running method: /etc/menu-methods/blackbox
| update-menus[8262]: Running method: /etc/menu-methods/menu-xdg
| update-menus[8262]: Running method:
/etc/menu-methods/xdg-desktop-entry-spec-sessions
| update-menus[8262]: Running method:
/etc/menu-methods/xdg-desktop-entry-spec-apps
| update-menus[8262]: Running method:
/etc/menu-methods/xdg-desktop-entry-spec-dirs
| update-menus[8262]: Running method: /etc/menu-methods/fluxbox
| Setting up openoffice.org-writer (1:3.0.1-4+b1) ...
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Reading extended state information
| Initializing package states... Done
| Reading task descriptions... Done
|
`----
The corresponding excerpt from /var/log/dpkg.log follows:
,----
| 2009-03-09 08:52:08 startup archives unpack
| 2009-03-09 08:52:08 upgrade openoffice.org-writer 1:3.0.1-4+b1 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status half-configured openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status unpacked openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status half-installed openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status triggers-pending man-db 2.5.4-1
| 2009-03-09 08:52:08 status half-installed openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status triggers-pending menu 2.1.41
| 2009-03-09 08:52:08 status half-installed openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status half-installed openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status unpacked openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 status unpacked openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:08 trigproc man-db 2.5.4-1 2.5.4-1
| 2009-03-09 08:52:08 status half-configured man-db 2.5.4-1
| 2009-03-09 08:52:08 status installed man-db 2.5.4-1
| 2009-03-09 08:52:08 trigproc menu 2.1.41 2.1.41
| 2009-03-09 08:52:08 status half-configured menu 2.1.41
| 2009-03-09 08:52:09 status installed menu 2.1.41
| 2009-03-09 08:52:11 startup packages configure
| 2009-03-09 08:52:11 configure openoffice.org-writer 1:3.0.1-4+b1 1:3.0.1-4+b1
| 2009-03-09 08:52:11 status unpacked openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:11 status half-configured openoffice.org-writer 1:3.0.1-4+b1
| 2009-03-09 08:52:12 status installed openoffice.org-writer 1:3.0.1-4+b1
`----
Note that
- apt generally installs packages by running "dpkg --unpack <packages>"
followed by "dpkg --configure <packages>" and the file trigger is
processed after the unpacking phase.
- openoffice.org-writer 1:3.0.1-4+b1 was apparently built with debhelper
7.2.3, where dh_installmenus no longer produces a call to update-menus
in the generated postinst.
This is similar to #489040, but with reversed results: installing the
package with apt does not produce a menu entry, but installing with dpkg
directly does.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.28.7-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages menu depends on:
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libgcc1 1:4.3.3-5 GCC support library
ii libstdc++6 4.3.3-5 The GNU Standard C++ Library v3
menu recommends no packages.
Versions of packages menu suggests:
ii kdebase-bin 4:3.5.10.dfsg.1-1 core binaries for the KDE base mod
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]