Package: menu
Version: 2.1.36
Severity: serious

Many fluxbox users complain that after its first installation its menu
doesn't work. And they can solve this problem only by calling
update-menus command by hand.

I inserted set -x option into postinst-script in order to make sure if
update-menus were really called and I became sure in it.

Then I wrote a test script that allowed to reproduce the bug. The result
is below (reproducible with packages fluxbox and twm ...).

Only the call of update-menus some time  (3-5 sec) after the instalation
produces the needed result.

I can't explain this phenomenon so I write this bug-report.

PS: I set severity level into serious to this bug because I can't
provide the correct functioning of the other package (fluxbox, twm, etc).

PPS: You can find  all the maintainer-scripts in packages fluxbox,
twm...

Attachment: test.sh
Description: Bourne shell script

+ export LANG=C
+ LANG=C
+ package=twm
+ apt-get --purge --yes remove twm
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  imlib11 imlib-base icewm-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  twm*
0 upgraded, 0 newly installed, 1 to remove and 186 not upgraded.
After this operation, 389kB disk space will be freed.
(Reading database ... 118707 files and directories currently installed.)
Removing twm ...
Purging configuration files for twm ...
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/twm /etc/X11/twm
ls: /etc/menu-methods/twm: No such file or directory
ls: /etc/X11/twm: No such file or directory
+ md5sum /etc/menu-methods/twm '/etc/X11/twm/*'
md5sum: /etc/menu-methods/twm: No such file or directory
md5sum: /etc/X11/twm/*: No such file or directory
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

+ apt-get --yes install twm
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  imlib11 imlib-base icewm-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  twm
0 upgraded, 1 newly installed, 0 to remove and 186 not upgraded.
Need to get 0B/109kB of archives.
After this operation, 389kB of additional disk space will be used.
Selecting previously deselected package twm.
(Reading database ... 118691 files and directories currently installed.)
Unpacking twm (from .../twm_1%3a1.0.3-3_i386.deb) ...
Setting up twm (1:1.0.3-3) ...
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/twm /etc/X11/twm
-rwxr-xr-x 1 root root 1095 Jul 16  2007 /etc/menu-methods/twm

/etc/X11/twm:
total 4
-rw-r--r-- 1 root root 2846 Jan 12 19:38 system.twmrc-menu
+ md5sum /etc/menu-methods/twm /etc/X11/twm/system.twmrc-menu
d8734bc492d5507df037f1cb14a495f3  /etc/menu-methods/twm
48da65d98b31c7053a81e15d63acebcd  /etc/X11/twm/system.twmrc-menu
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

+ update-menus -d
update-menus[18920]: Dpkg is not locking dpkg status area, good.
update-menus[18920]: Reading installed packages list...
update-menus[18920]: Reading translation rules in 
/etc/menu-methods/translate_menus.
update-menus[18920]: Reading menu-entry files in /etc/menu/.
update-menus[18920]: 0 menu entries found (0 total).
update-menus[18920]: Reading menu-entry files in /usr/lib/menu/.
update-menus[18920]: 0 menu entries found (0 total).
update-menus[18920]: Reading menu-entry files in /usr/share/menu/.
update-menus[18920]: 119 menu entries found (119 total).
update-menus[18920]: Reading menu-entry files in /usr/share/menu/default/.
update-menus[18920]: file /usr/share/menu/default/ash line 2:
Discarding entry requiring missing package ash.
update-menus[18920]: 0 menu entries found (119 total).
update-menus[18920]: Running menu-methods in /etc/menu-methods/.
update-menus[18920]: Running method: /etc/menu-methods/menu-xdg
update-menus[18920]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-apps
update-menus[18920]: Running method: /etc/menu-methods/icewm-common
update-menus[18920]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-sessions
update-menus[18920]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-dirs
update-menus[18920]: Running method: /etc/menu-methods/twm
update-menus[18920]: Running method: /etc/menu-methods/fluxbox
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/twm /etc/X11/twm
-rwxr-xr-x 1 root root 1095 Jul 16  2007 /etc/menu-methods/twm

/etc/X11/twm:
total 32
-rw-r--r-- 1 root root 11349 Jan 26 16:48 menudefs.hook
-rw-r--r-- 1 root root 14177 Jan 26 16:48 system.twmrc
-rw-r--r-- 1 root root  2846 Jan 12 19:38 system.twmrc-menu
+ md5sum /etc/menu-methods/twm /etc/X11/twm/menudefs.hook 
/etc/X11/twm/system.twmrc /etc/X11/twm/system.twmrc-menu
d8734bc492d5507df037f1cb14a495f3  /etc/menu-methods/twm
c45620eb384ef2397fe5f767cff6438c  /etc/X11/twm/menudefs.hook
c7a5f2172abf46e6e7fbbf6fbee77082  /etc/X11/twm/system.twmrc
48da65d98b31c7053a81e15d63acebcd  /etc/X11/twm/system.twmrc-menu
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

+ export LANG=C
+ LANG=C
+ package=fluxbox
+ apt-get --purge --yes remove fluxbox
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  imlib11 imlib-base icewm-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  fluxbox*
0 upgraded, 0 newly installed, 1 to remove and 186 not upgraded.
After this operation, 3883kB disk space will be freed.
(Reading database ... 118707 files and directories currently installed.)
Removing fluxbox ...
Purging configuration files for fluxbox ...
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/fluxbox /etc/X11/fluxbox
ls: /etc/menu-methods/fluxbox: No such file or directory
ls: /etc/X11/fluxbox: No such file or directory
+ md5sum /etc/menu-methods/fluxbox '/etc/X11/fluxbox/*'
md5sum: /etc/menu-methods/fluxbox: No such file or directory
md5sum: /etc/X11/fluxbox/*: No such file or directory
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

+ apt-get --yes install fluxbox
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  imlib11 imlib-base icewm-common
Use 'apt-get autoremove' to remove them.
Suggested packages:
  fbdesk fbpager fluxconf
The following NEW packages will be installed:
  fluxbox
0 upgraded, 1 newly installed, 0 to remove and 186 not upgraded.
Need to get 0B/1027kB of archives.
After this operation, 3883kB of additional disk space will be used.
Selecting previously deselected package fluxbox.
(Reading database ... 118390 files and directories currently installed.)
Unpacking fluxbox (from .../fluxbox_1.0.0+deb1-5_i386.deb) ...
Setting up fluxbox (1.0.0+deb1-5) ...
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/fluxbox /etc/X11/fluxbox
-rwxr-xr-x 1 root root 1176 Jan 10 11:51 /etc/menu-methods/fluxbox

/etc/X11/fluxbox:
total 16
-rw-r--r-- 1 root root   66 Jan 10 11:51 fluxbox.menu-user
-rw-r--r-- 1 root root 1256 Jan 10 11:56 init
-rw-r--r-- 1 root root  458 Jan 10 11:56 keys
-rw-r--r-- 1 root root  535 Jan 10 11:51 system.fluxbox-menu
+ md5sum /etc/menu-methods/fluxbox /etc/X11/fluxbox/fluxbox.menu-user 
/etc/X11/fluxbox/init /etc/X11/fluxbox/keys /etc/X11/fluxbox/system.fluxbox-menu
b629f6c31e7aa99804f9432ed4c02d5e  /etc/menu-methods/fluxbox
62c6341399233db8dfa918be39be3fe0  /etc/X11/fluxbox/fluxbox.menu-user
ba667509479decd4a7e4c72e56c95614  /etc/X11/fluxbox/init
6e8e15639659a2b709789613b152b70b  /etc/X11/fluxbox/keys
c078a8977c89d9f9331d409306648107  /etc/X11/fluxbox/system.fluxbox-menu
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

+ update-menus -d
update-menus[19080]: Dpkg is not locking dpkg status area, good.
update-menus[19080]: Reading installed packages list...
update-menus[19080]: Reading translation rules in 
/etc/menu-methods/translate_menus.
update-menus[19080]: Reading menu-entry files in /etc/menu/.
update-menus[19080]: 0 menu entries found (0 total).
update-menus[19080]: Reading menu-entry files in /usr/lib/menu/.
update-menus[19080]: 0 menu entries found (0 total).
update-menus[19080]: Reading menu-entry files in /usr/share/menu/.
update-menus[19080]: 119 menu entries found (119 total).
update-menus[19080]: Reading menu-entry files in /usr/share/menu/default/.
update-menus[19080]: file /usr/share/menu/default/ash line 2:
Discarding entry requiring missing package ash.
update-menus[19080]: 0 menu entries found (119 total).
update-menus[19080]: Running menu-methods in /etc/menu-methods/.
update-menus[19080]: Running method: /etc/menu-methods/menu-xdg
update-menus[19080]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-apps
update-menus[19080]: Running method: /etc/menu-methods/icewm-common
update-menus[19080]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-sessions
update-menus[19080]: Running method: 
/etc/menu-methods/xdg-desktop-entry-spec-dirs
update-menus[19080]: Running method: /etc/menu-methods/twm
update-menus[19080]: Running method: /etc/menu-methods/fluxbox
+ sleep 5
+ lsmd5
+ ls -l /etc/menu-methods/fluxbox /etc/X11/fluxbox
-rwxr-xr-x 1 root root 1176 Jan 10 11:51 /etc/menu-methods/fluxbox

/etc/X11/fluxbox:
total 40
-rw-r--r-- 1 root root 11811 Jan 26 16:49 fluxbox-menu
-rw-r--r-- 1 root root    66 Jan 10 11:51 fluxbox.menu-user
-rw-r--r-- 1 root root  1256 Jan 10 11:56 init
-rw-r--r-- 1 root root   458 Jan 10 11:56 keys
-rw-r--r-- 1 root root 11294 Jan 26 16:49 menudefs.hook
-rw-r--r-- 1 root root   535 Jan 10 11:51 system.fluxbox-menu
+ md5sum /etc/menu-methods/fluxbox /etc/X11/fluxbox/fluxbox-menu 
/etc/X11/fluxbox/fluxbox.menu-user /etc/X11/fluxbox/init /etc/X11/fluxbox/keys 
/etc/X11/fluxbox/menudefs.hook /etc/X11/fluxbox/system.fluxbox-menu
b629f6c31e7aa99804f9432ed4c02d5e  /etc/menu-methods/fluxbox
6671cd1da63b1a6dfc45e2264a68377a  /etc/X11/fluxbox/fluxbox-menu
62c6341399233db8dfa918be39be3fe0  /etc/X11/fluxbox/fluxbox.menu-user
ba667509479decd4a7e4c72e56c95614  /etc/X11/fluxbox/init
6e8e15639659a2b709789613b152b70b  /etc/X11/fluxbox/keys
84873f7ac6168c141ff99208cda45c29  /etc/X11/fluxbox/menudefs.hook
c078a8977c89d9f9331d409306648107  /etc/X11/fluxbox/system.fluxbox-menu
+ perl -e 'print "=" x 60, "\n\n"'
============================================================

Attachment: signature.asc
Description: Digital signature

Reply via email to