Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406065 - sys-power/hibernate-script-2.0-r4 runs non-existant script for clock save/restore
Summary: sys-power/hibernate-script-2.0-r4 runs non-existant script for clock save/res...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 19:21 UTC by Ian Abbott
Modified: 2012-12-17 09:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2012-02-27 19:21:38 UTC
The /usr/share/hibernate/scriptlets.d/clock script installed by sys-power/hibernate-2.0-r4 runs the wrong script to save/restore the clock.

For gentoo, ClockSave runs:

  /etc/init.d/clock.sh stop > /dev/null 2>&1

ClockRestore runs:

  /etc/init.d/clock.sh start > /dev/null 2>&1

Since /etc/init.d/clock.sh doesn't seem to exist, surely both it should be running /etc/init.d/hwclock in both cases?

(In practice, only the restore is done by default because /etc/hibernate/common.conf has the line 'SaveClock restore-only'.)

Reproducible: Always
Comment 1 Ian Abbott 2012-02-27 19:32:30 UTC
Also, as "/etc/init.d/hwclock start" wouldn't work if the service is already in the started state, it would have to have to be called with specific actions to save or restore the clock.

The /etc/init.d/hwclock script already has a "save" action.  Perhaps it should have a "restore" action as well.  Then the /usr/share/hibernate/scriptlets.d/clock script could run

  /etc/init.d/hwclock save > /dev/null 2>&1

to save the clock, and

  /etc/init.d/hwclock restore > /dev/null 2>&1

to restore the clock.
Comment 2 Pacho Ramos gentoo-dev 2012-12-16 14:27:39 UTC
This package is now orphan:
http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed
Comment 3 Sergey Popov gentoo-dev 2012-12-17 09:28:36 UTC
+  17 Dec 2012; Sergey Popov <pinkbyte@gentoo.org>
+  +files/hibernate-script-baselayout2-clock.patch,
+  -hibernate-script-2.0-r4.ebuild, +hibernate-script-2.0-r5.ebuild:
+  Revision bump: EAPI 5, fix incorrect clock script name wrt bug #406065, drop
+  old revision

Please test