Your message dated Mon, 05 Jun 2006 05:17:04 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#360588: fixed in hibernate 1.91-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: hibernate
Severity: important
Tags: patch

hibernate tries to create /usr/local/share/hibernate/scriptlets.d via
postinst but allows for failure by using ...

    "mkdir -p /usr/local/share/hibernate/scriptlets.d || true"

... to create the directory hirearchy.  During uninstall, it also
removes non-empty directories in /usr/local but fails during prerm if
the directory could not be created (if /usr/local is mounted readonly).
The error in prerm should be ignored even if the error is because of
non-empty directories.

In my case, /usr/local is a set of 'network wide' utils that is mounted
read-only over nfs.

Failure transcript and patch follow:

Transcript:
===========

[loktak debian]$ sudo apt-get install hibernate
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  kernel-patch-suspend2
Recommended packages:
  vlock hdparm
The following NEW packages will be installed
  hibernate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/68.5kB of archives.
After unpacking 336kB of additional disk space will be used.
Selecting previously deselected package hibernate.
(Reading database ... 72654 files and directories currently installed.)
Unpacking hibernate (from .../hibernate_1.12-1_all.deb) ...
Setting up hibernate (1.12-1) ...
mkdir: cannot create directory `/usr/local/share/hibernate': Read-only file 
system

[loktak debian]$ 
[loktak debian]$ 
[loktak debian]$ sudo apt-get remove --purge hibernate
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
  hibernate*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 336kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 72699 files and directories currently installed.)
Removing hibernate ...
rmdir: `/usr/local/share/hibernate/scriptlets.d': No such file or directory
rmdir: `/usr/local/share/hibernate': No such file or directory
dpkg: error processing hibernate (--purge):
 subprocess pre-removal script returned error exit status 1
mkdir: cannot create directory `/usr/local/share/hibernate': Read-only file 
system
Errors were encountered while processing:
 hibernate
E: Sub-process /usr/bin/dpkg returned an error code (1)

Patch:
=====

--- hibernate.prerm.orig        2006-04-03 19:09:21.729979000 +0530
+++ hibernate.prerm     2006-04-03 19:20:27.359528000 +0530
@@ -1,7 +1,8 @@
 #! /bin/sh
 # Pre-removal hook script for hibernate

-rmdir --ignore-fail-on-non-empty /usr/local/share/hibernate/scriptlets.d
-rmdir --ignore-fail-on-non-empty /usr/local/share/hibernate
+rmdir /usr/local/share/hibernate/scriptlets.d || true
+rmdir /usr/local/share/hibernate || true
+rmdir /usr/local/share || true

Giridhar

--
Y Giridhar Appaji Nag | http://www.appaji.net/

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)


--- End Message ---
--- Begin Message ---
Source: hibernate
Source-Version: 1.91-1

We believe that the bug you reported is fixed in the latest version of
hibernate, which is due to be installed in the Debian FTP archive:

hibernate_1.91-1.diff.gz
  to pool/main/h/hibernate/hibernate_1.91-1.diff.gz
hibernate_1.91-1.dsc
  to pool/main/h/hibernate/hibernate_1.91-1.dsc
hibernate_1.91-1_all.deb
  to pool/main/h/hibernate/hibernate_1.91-1_all.deb
hibernate_1.91.orig.tar.gz
  to pool/main/h/hibernate/hibernate_1.91.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
martin f. krafft <[EMAIL PROTECTED]> (supplier of updated hibernate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon,  5 Jun 2006 13:41:37 +0200
Source: hibernate
Binary: hibernate
Architecture: source all
Version: 1.91-1
Distribution: unstable
Urgency: low
Maintainer: Cameron Patrick <[EMAIL PROTECTED]>
Changed-By: martin f. krafft <[EMAIL PROTECTED]>
Description: 
 hibernate  - activates your computer's suspend functionality
Closes: 336635 345122 345295 349491 350667 350670 350676 350767 354332 354397 
360588 361673 363928 369632
Changes: 
 hibernate (1.91-1) unstable; urgency=low
 .
   * The "I bet Joey Hess actually gets 40 hours to each day" release.
   * Acknowledge NMU by Luk Claes; thanks! (closes: #360588, #363928)
   * New upstream release. This release started out as a Debian revision, but
     upstream simpy decided to fold all changes into a new release. Thanks!
     Here's a summary of what's new, see upstream Changelog for credits:
     - fixes OnSuspend/OnResume (closes: #369632).
     - improves PID detection of the running X process (closes: #350670).
     - allows to disable xmessage dialogs (closes: #350676).
     - allows pausing of audio output during suspend (closes: #350667).
     - fixes font quoting issues (closes: #350767).
     - fixes X locking with mawk (thanks to EspeonEefi) (closes: #345295).
     - now has an option to run i915resolution on resume (closes: #349491).
       Thus, we also suggest the 915resolution.
     - favour pccardctl over the deprecatedd cardctl command (closes: #361673).
     - inspired by the work of January Weiner, hibernate can now try differet
       suspend methods until one succeeds (closes: #336635).
     - now logs timestamps (closes: #354397).
     - new configuration file structure, which allows for inclusions
       (closes: #354332).
   * Make rmdir in prerm script write stderr to /dev/null since we actually
     really don't care about *any* warnings, including those about read-only
     /usr/local.
   * Removing the suggestion for kernel-patch-suspend2. There's really no point
     in suggesting it because what hibernate actually needs is a patched
     kernel, not the patch itself. Maybe one day our kernels can "provide"
     patches... I added a note to the new suspend2.conf file instead.
   * Added a dependency on console-tools because hibernate currently needs chvt
     (closes: #345122).
   * Pushed Standards-Version to 3.7.2; no changes needed.
   * Added dpatch to the source tree to make patch tracking easier.
Files: 
 b27566b82b080af88d4c6ee0f74ebb09 631 utils extra hibernate_1.91-1.dsc
 f3c5275dd6053dc6423eb27032c81d4c 67112 utils extra hibernate_1.91.orig.tar.gz
 a4c07d369a14a7d7ec6341c7741689ee 8781 utils extra hibernate_1.91-1.diff.gz
 0aa1fc6184e38df2dd6233ee90282af5 73468 utils extra hibernate_1.91-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEhByUIgvIgzMMSnURAmVWAKCUU7TQivjp0pFYlGCtlM70sEi2vwCfcr4G
sJ/wYV4s2omyQ8ebxz76TZA=
=GSHz
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to