Bug#484167: [Help] Re: Bug#484167: cdd-common: missing directory when installing
On Wed, Jun 04, 2008 at 08:42:36AM +0200, Andreas Tille wrote: On Tue, 3 Jun 2008, Jeffrey Austen wrote: Could it be because /usr/share/menu/cdd-menu is before /etc/cdd/cdd.conf in the file list? This should not be IMHO. Here is something else I tried which shows the error occurs during the unpack phase, even if unpacking twice in a row. purge package then # dpkg --unpack /var/cache/apt/archives/cdd-common_0.5.1_all.deb Selecting previously deselected package cdd-common. (Reading database ... 133829 files and directories currently installed.) Unpacking cdd-common (from .../cdd-common_0.5.1_all.deb) ... Processing triggers for menu ... Ahh, I think here is the problem. I just purged my cdd-common and can now reproduce this. I'm afraid that the new trigger feature of dpkg is causing this problem. If I understood things right the trigger feature should cause to build menus *after* packages are installed, but obviosely it causes the contrary and starts calling the menu building stuff in the middle of installation process which somehow leads to undefined results if not all files are installed correctly. While it would be easily possible to verify that /etc/cdd/cdd.conf exists inside /usr/share/menu/cdd-menu I would have to do some reasonable action in this case which would be to throw an error because this should definitely not happen and thus I rather think that either the menu package is broken because of working at the wrong point in time or the dpkg trigger feature does not properly. Hello Andreas, I suggest to keep with the spirit of policy and simply do: if ! -f /etc/cdd/cdd.conf then exit 0; fi at the start of /usr/share/menu/cdd-menu. This should be sufficient as long as you run update-menus in the postinst which is the case. Cheers, -- Bill. [EMAIL PROTECTED] Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: [Help] Re: Bug#484167: cdd-common: missing directory when installing
On Sun, 8 Jun 2008, Bill Allombert wrote: Hello Andreas, I suggest to keep with the spirit of policy and simply do: if ! -f /etc/cdd/cdd.conf then exit 0; fi at the start of /usr/share/menu/cdd-menu. Well, this fix is just in unstable. The problem is the correct exit code. If the conf file is missing because of the trigger running at the wrong time (IMHO), the exit code 0 is correct. In any other circumstance something else than 0 should be returned. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: [Help] Re: Bug#484167: cdd-common: missing directory when installing
On Tue, 3 Jun 2008, Jeffrey Austen wrote: Could it be because /usr/share/menu/cdd-menu is before /etc/cdd/cdd.conf in the file list? This should not be IMHO. Here is something else I tried which shows the error occurs during the unpack phase, even if unpacking twice in a row. purge package then # dpkg --unpack /var/cache/apt/archives/cdd-common_0.5.1_all.deb Selecting previously deselected package cdd-common. (Reading database ... 133829 files and directories currently installed.) Unpacking cdd-common (from .../cdd-common_0.5.1_all.deb) ... Processing triggers for menu ... Ahh, I think here is the problem. I just purged my cdd-common and can now reproduce this. I'm afraid that the new trigger feature of dpkg is causing this problem. If I understood things right the trigger feature should cause to build menus *after* packages are installed, but obviosely it causes the contrary and starts calling the menu building stuff in the middle of installation process which somehow leads to undefined results if not all files are installed correctly. While it would be easily possible to verify that /etc/cdd/cdd.conf exists inside /usr/share/menu/cdd-menu I would have to do some reasonable action in this case which would be to throw an error because this should definitely not happen and thus I rather think that either the menu package is broken because of working at the wrong point in time or the dpkg trigger feature does not properly. To clarify this I hereby ask for help on debian-devel - perhaps somebody is able to explain how and why the triggers for menu are started at this point in time when not all files of a package are unpacked. /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Processing triggers for man-db ... # dpkg --unpack /var/cache/apt/archives/cdd-common_0.5.1_all.deb (Reading database ... 133854 files and directories currently installed.) Preparing to replace cdd-common 0.5.1 (using .../cdd-common_0.5.1_all.deb) ... Unpacking replacement cdd-common ... Processing triggers for menu ... /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Processing triggers for man-db ... # dpkg --configure --pending Setting up cdd-common (0.5.1) ... Thanks for your input on this issue Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: [Help] Re: Bug#484167: cdd-common: missing directory when installing
On Wed, Jun 04, 2008 at 08:42:36AM +0200, Andreas Tille wrote: On Tue, 3 Jun 2008, Jeffrey Austen wrote: Ahh, I think here is the problem. I just purged my cdd-common and can now reproduce this. I'm afraid that the new trigger feature of dpkg is causing this problem. If I understood things right the trigger feature should cause to build menus *after* packages are installed, but obviosely it causes the contrary and starts calling the menu building stuff in the middle of installation process which somehow leads to undefined results if not all files are installed correctly. While it would be easily possible to verify that /etc/cdd/cdd.conf exists inside /usr/share/menu/cdd-menu I would have to do some reasonable action in this case which would be to throw an error because this should definitely not happen and thus I rather think that either the menu package is broken because of working at the wrong point in time or the dpkg trigger feature does not properly. AFAICT from the documentation the dpkg triggers work as intended, although maybe not as desired by you ;) File triggers are activated on creation or modification of the triggering file by dpkg, so during unpack or removal. A possible solution might be to change your menu file script to ignore the missing conffile and activate the trigger again manually in your postinst with dpkg-trigger. Gruesse, -- Frank Lichtenheld [EMAIL PROTECTED] www: http://www.djpig.de/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: cdd-common: missing directory when installing
On Mon, 2 Jun 2008, Jeffrey Austen wrote: Subject: cdd-common: missing directory when installing Package: cdd-common Version: 0.5.1 Severity: normal When installing cdd-common the following error is encountered: /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Hmmm, this file is part of the same package. Are you sure that your root partition is not overfull (try 'df | grep / *$') or something like that? Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: cdd-common: missing directory when installing
'df' shows lots of free space. Also, the directory and file (/etc/cdd/cdd.conf) does exist after installation. I don't understand why the error message occurs. Could it be because /usr/share/menu/cdd-menu is before /etc/cdd/cdd.conf in the file list? Here is something else I tried which shows the error occurs during the unpack phase, even if unpacking twice in a row. purge package then # dpkg --unpack /var/cache/apt/archives/cdd-common_0.5.1_all.deb Selecting previously deselected package cdd-common. (Reading database ... 133829 files and directories currently installed.) Unpacking cdd-common (from .../cdd-common_0.5.1_all.deb) ... Processing triggers for menu ... /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Processing triggers for man-db ... # dpkg --unpack /var/cache/apt/archives/cdd-common_0.5.1_all.deb (Reading database ... 133854 files and directories currently installed.) Preparing to replace cdd-common 0.5.1 (using .../cdd-common_0.5.1_all.deb) ... Unpacking replacement cdd-common ... Processing triggers for menu ... /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Processing triggers for man-db ... # dpkg --configure --pending Setting up cdd-common (0.5.1) ... # Thanks. Jeff On 2008-06-03 01:13 Tue, Andreas Tille wrote: On Mon, 2 Jun 2008, Jeffrey Austen wrote: Subject: cdd-common: missing directory when installing Package: cdd-common Version: 0.5.1 Severity: normal When installing cdd-common the following error is encountered: /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Hmmm, this file is part of the same package. Are you sure that your root partition is not overfull (try 'df | grep / *$') or something like that? Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#484167: cdd-common: missing directory when installing
Subject: cdd-common: missing directory when installing Package: cdd-common Version: 0.5.1 Severity: normal When installing cdd-common the following error is encountered: /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Here are more details: # apt-get install cdd-common Reading package lists... Done Building dependency tree Reading state information... Done [cut] The following NEW packages will be installed: cdd-common 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/18.2kB of archives. After this operation, 168kB of additional disk space will be used. Selecting previously deselected package cdd-common. (Reading database ... 130563 files and directories currently installed.) Unpacking cdd-common (from .../cdd-common_0.5.1_all.deb) ... Processing triggers for menu ... /usr/share/menu/cdd-menu: line 11: /etc/cdd/cdd.conf: No such file or directory Processing triggers for man-db ... Setting up cdd-common (0.5.1) ... # -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cdd-common depends on: ii adduser 3.107 add and remove users and groups ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy ii menu 2.1.39 generates programs menu for all me cdd-common recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]