Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339521 - Version bump: sys-power/suspend-0.9
Summary: Version bump: sys-power/suspend-0.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Michael Weber (RETIRED)
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-10-02 21:52 UTC by Kevin Pyle
Modified: 2010-10-03 20:31 UTC (History)
0 users

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


Attachments
Patch to convert suspend-0.8-r1.ebuild to proposed suspend-0.9.ebuild (suspend-0.9.ebuild.patch,1.03 KB, patch)
2010-10-02 21:55 UTC, Kevin Pyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pyle 2010-10-02 21:52:04 UTC
Upstream tagged v0.9 at Tue, 22 Sep 2009 21:17:44, but the front page <http://suspend.sourceforge.net/> was never updated.  Using suspend-0.8, I have been getting warnings from the kernel during hibernation because the hibernation ioctl used by suspend-0.8 was deprecated some time ago and scheduled to be removed for 2.6.36.  Switching to suspend-0.9 got rid of the warnings and suspend works fine for me on a mostly stable amd64 2.6.35.x.  The only issue I encountered is that you must match the suspend/resume versions.  I initially tried to hibernate with an s2disk from suspend-0.9 and resume with an initramfs that carried an /sbin/resume from suspend-0.8.  That failed.  Once the initramfs was updated to use a resume from suspend-0.9, I have had no further problems with the new version.

Renaming the ebuild is not quite sufficient on its own, since upstream incorporated a patch that 0.8-r1 applies.  Also, since I had to manually export a tarball from the git tag, it came out without configure/Makefile.in, so an eautoreconf was needed to generate the build system files.  I will attach a patch showing my changes between 0.8-r1 and my 0.9.  See $URL for the page from which the snapshot was grabbed.
Comment 1 Kevin Pyle 2010-10-02 21:55:42 UTC
Created attachment 249369 [details, diff]
Patch to convert suspend-0.8-r1.ebuild to proposed suspend-0.9.ebuild

You will probably need to fix up the SRC_URI mirror line before committing to Portage.  Since I downloaded the tarball by hand and placed it in $DISTDIR, I only needed to adjust the filename for my purposes.

Changes since 0.8-r1:
- Changed tarball name since gitweb-generated tarball includes part of the commit ID.
- Changed $S to reflect directory name picked by gitweb.
- Dropped epatch from 0.8-r1, no longer needed.
- Changed configure.ac line so that version information reports the tool as being from a 0.9 tag.
- Added eautoreconf to generate build system files, since upstream does not keep them committed.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-10-03 20:31:18 UTC
*suspend-0.9_pre0 (03 Oct 2010)

  03 Oct 2010; Michael Weber <xmw@gentoo.org> +suspend-0.9_pre0.ebuild:
  Version bump to git tag, thanks to Kevin Pyle on bug 339521