reassign 489040 menu 2.1.39 thanks On 2008-07-03 01:08 +0200, Evgeni Golov wrote:
> Package: dpkg > Version: 1.14.20 > Severity: normal > > Hi, > > while preparing a new upload of pokerth, I stumbled over a very weird > behaviour of dpkg when it comes to menu file triggers. > When I install the package via apt, everything is fine, and I can see > pokerth in the Debian menu of my Xfce. But when I install the very same file > direclty via dpkg, the menu entry vanishes. > > The output is slightly different (I think it's related): > # apt-get install pokerth --reinstall > [...] > Processing triggers for menu ... > Processing triggers for man-db ... > Setting up pokerth-data (0.6.2-1) ... > Setting up pokerth (0.6.2-1) ... > Processing triggers for menu ... > > # dpkg -i /var/cache/apt/archives/pokerth* > [...] > Setting up pokerth-data (0.6.2-1) ... > Setting up pokerth (0.6.2-1) ... > Processing triggers for menu ... > Processing triggers for man-db ... > > In both cases pokerth was already installed on my system. > I hope you can see the problem, if not, ping me on IRC (Zhenech) or via mail. I can reproduce the problem, thanks. To figure out why this happens I modified the menu postinst: --8<---------------cut here---------------start------------->8--- --- menu.postinst~ 2008-05-21 11:21:21.000000000 +0200 +++ menu.postinst 2008-07-11 10:40:36.000000000 +0200 @@ -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 then reinstalled pokerth with dpkg: ,---- | # dpkg -i /var/cache/apt/archives/pokerth_0.6.2-2_i386.deb | (Reading database ... 132148 files and directories currently installed.) | Preparing to replace pokerth 0.6.2-2 (using .../pokerth_0.6.2-2_i386.deb) ... | Unpacking replacement pokerth ... | Setting up pokerth (0.6.2-2) ... | Processing triggers for menu ... | update-menus[11210]: Reading installed packages list... | update-menus[11210]: Reading translation rules in /etc/menu-methods/translate_menus. | update-menus[11210]: Reading menu-entry files in /etc/menu/. | update-menus[11210]: 6 menu entries found (6 total). | update-menus[11210]: Reading menu-entry files in /usr/lib/menu/. | update-menus[11210]: 2 menu entries found (8 total). | update-menus[11210]: Reading menu-entry files in /usr/share/menu/. | update-menus[11210]: file /usr/share/menu/pokerth line 5: | Discarding entry requiring missing package pokerth. | update-menus[11210]: 201 menu entries found (209 total). | update-menus[11210]: Reading menu-entry files in /usr/share/menu/default/. | update-menus[11210]: 0 menu entries found (209 total). | update-menus[11210]: Running menu-methods in /etc/menu-methods/. | update-menus[11210]: Running method: /etc/menu-methods/xdg-desktop-entry-spec-sessions | update-menus[11210]: Running method: /etc/menu-methods/icewm-common | update-menus[11210]: Running method: /etc/menu-methods/xdg-desktop-entry-spec-apps | update-menus[11210]: Running method: /etc/menu-methods/xdg-desktop-entry-spec-dirs | update-menus[11210]: Running method: /etc/menu-methods/menu-xdg | update-menus[11210]: Running method: /etc/menu-methods/blackbox | Processing triggers for man-db ... `---- Here is the excerpt of dpkg.log for that run: ,---- | 2008-07-11 10:58:47 startup archives install | 2008-07-11 10:58:47 upgrade pokerth 0.6.2-2 0.6.2-2 | 2008-07-11 10:58:47 status half-configured pokerth 0.6.2-2 | 2008-07-11 10:58:47 status unpacked pokerth 0.6.2-2 | 2008-07-11 10:58:47 status half-installed pokerth 0.6.2-2 | 2008-07-11 10:58:47 status triggers-pending menu 2.1.39 | 2008-07-11 10:58:47 status half-installed pokerth 0.6.2-2 | 2008-07-11 10:58:47 status triggers-pending man-db 2.5.2-2 | 2008-07-11 10:58:47 status half-installed pokerth 0.6.2-2 | 2008-07-11 10:58:47 status half-installed pokerth 0.6.2-2 | 2008-07-11 10:58:47 status triggers-awaited menu 2.1.39 | 2008-07-11 10:58:47 status unpacked pokerth 0.6.2-2 | 2008-07-11 10:58:47 status unpacked pokerth 0.6.2-2 | 2008-07-11 10:58:47 configure pokerth 0.6.2-2 0.6.2-2 | 2008-07-11 10:58:47 status unpacked pokerth 0.6.2-2 | 2008-07-11 10:58:47 status half-configured pokerth 0.6.2-2 | 2008-07-11 10:58:47 status triggers-awaited pokerth 0.6.2-2 | 2008-07-11 10:58:47 trigproc menu 2.1.39 2.1.39 | 2008-07-11 10:58:47 status half-configured menu 2.1.39 | 2008-07-11 10:58:49 status installed menu 2.1.39 | 2008-07-11 10:58:49 trigproc man-db 2.5.2-2 2.5.2-2 | 2008-07-11 10:58:49 status half-configured man-db 2.5.2-2 | 2008-07-11 10:58:49 status installed pokerth 0.6.2-2 | 2008-07-11 10:58:49 status installed man-db 2.5.2-2 `---- As you can see, pokerth had the status "triggers-awaited" when "update-menus --trigger" ran, and update-menus seems to consider that state as "not installed", incorrectly skipping its menu entry. Reassigning this bug to menu, Sven -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]