diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-11-23 14:49:12 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-11-23 14:49:12 +0000 |
commit | a3a388cdd44580e3452b4531da6b70f3e34aa454 (patch) | |
tree | 9149a1eadc5293048fd283a9828fe8d3521702ad | |
parent | Stable on SPARC. (diff) | |
download | historical-a3a388cdd44580e3452b4531da6b70f3e34aa454.tar.gz historical-a3a388cdd44580e3452b4531da6b70f3e34aa454.tar.bz2 historical-a3a388cdd44580e3452b4531da6b70f3e34aa454.zip |
Revision bump to Software Suspend 2.2-rc12.
Package-Manager: portage-2.0.51.22-r3
5 files changed, 187 insertions, 2 deletions
diff --git a/sys-kernel/suspend2-sources/ChangeLog b/sys-kernel/suspend2-sources/ChangeLog index 5b877269c901..5e0c560cb72a 100644 --- a/sys-kernel/suspend2-sources/ChangeLog +++ b/sys-kernel/suspend2-sources/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-kernel/suspend2-sources # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/suspend2-sources/ChangeLog,v 1.21 2005/11/18 13:27:46 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/suspend2-sources/ChangeLog,v 1.22 2005/11/23 14:49:12 brix Exp $ + +*suspend2-sources-2.6.14-r3 (23 Nov 2005) + + 23 Nov 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/suspend2-2.2-rc12-freeze-sbs.patch, + +suspend2-sources-2.6.14-r3.ebuild: + Revision bump to Software Suspend 2.2-rc12. *suspend2-sources-2.6.14-r2 (18 Nov 2005) diff --git a/sys-kernel/suspend2-sources/Manifest b/sys-kernel/suspend2-sources/Manifest index 726b34e45a9e..dfe8a20cb041 100644 --- a/sys-kernel/suspend2-sources/Manifest +++ b/sys-kernel/suspend2-sources/Manifest @@ -1,16 +1,18 @@ MD5 36b9f4b863ed2502c5a6947df920c318 suspend2-sources-2.6.13-r4.ebuild 1973 +MD5 7dff81d6a6ccdde3386834cdec0991a3 suspend2-sources-2.6.14-r3.ebuild 1817 MD5 f23ae998b29e9b8c89629a960daf7bf8 suspend2-sources-2.6.13-r1.ebuild 2013 MD5 6390d140bb44f262eb10401c6de55326 suspend2-sources-2.6.13.ebuild 2070 MD5 87f85d43a2586902805f98101306cdb3 suspend2-sources-2.6.13-r3.ebuild 1974 MD5 bb9e0d118b9554cc645aab95a71e1495 suspend2-sources-2.6.14-r2.ebuild 1820 MD5 509af92e8b755497d58fa8a7c241e4f5 suspend2-sources-2.6.13-r5.ebuild 1974 MD5 b2b02e62be94dd09f2b39fcfb91800d0 suspend2-sources-2.6.13-r2.ebuild 1974 -MD5 1a62744b79e0d3c98c1905cfff4ae470 ChangeLog 4449 +MD5 c52efdf7fc5e0a196a6a070d3ecdcf8c ChangeLog 4676 MD5 e40cb3df546efa5003fe3778c5a50854 metadata.xml 275 MD5 0ac91b574db18e623878d358a1e1c9e7 suspend2-sources-2.6.14.ebuild 1765 MD5 abd24ff658389505b8d77a774d7d6016 suspend2-sources-2.6.14-r1.ebuild 1769 MD5 8c885e50de95004ba759a137c3f93495 files/101-software-suspend-2.2-rc3-for-2.6.13-gcc4.patch 877 MD5 edac5c5d09cb57b42228bdf2f81b28fa files/suspend2-2.2-rc11-ro-mount-fixes.patch 2423 +MD5 115c536b8f8a5d095e301b2557821fcf files/suspend2-2.2-rc12-freeze-sbs.patch 2619 MD5 5ff92c313009119044ed51956fb509f9 files/digest-suspend2-sources-2.6.13-r1 310 MD5 16d093ac8154cc561af7a4a90179d885 files/digest-suspend2-sources-2.6.13-r2 310 MD5 63ce46eba91fa8e586a2a26ed6432987 files/digest-suspend2-sources-2.6.13-r3 310 @@ -18,6 +20,7 @@ MD5 a1ecfa4588d9177bc680ebe3acf020b9 files/digest-suspend2-sources-2.6.13-r4 310 MD5 906ae7417b7d3ae2f2bf7859812f8396 files/digest-suspend2-sources-2.6.13-r5 310 MD5 3842f13456420014bc19ab851301c8a9 files/digest-suspend2-sources-2.6.14-r1 303 MD5 3842f13456420014bc19ab851301c8a9 files/digest-suspend2-sources-2.6.14-r2 303 +MD5 ce2361eb78ea1c9af0f7c255a2689edd files/digest-suspend2-sources-2.6.14-r3 303 MD5 d1eff82a3bab3c5b67dec45a552888e4 files/linux-2.6.13-poweroff.patch 500 MD5 a67db8b8f894652b4d1456406d307a37 files/digest-suspend2-sources-2.6.13 310 MD5 ae95e997f0e9496adfb824ee7f166c5d files/digest-suspend2-sources-2.6.14 301 diff --git a/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.14-r3 b/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.14-r3 new file mode 100644 index 000000000000..64f145db236f --- /dev/null +++ b/sys-kernel/suspend2-sources/files/digest-suspend2-sources-2.6.14-r3 @@ -0,0 +1,4 @@ +MD5 66d02cbd723876c6d69846a067875a22 linux-2.6.14.tar.bz2 39172170 +MD5 b841739f9c8f5c7f10039399f768a1c0 genpatches-2.6.14-3.base.tar.bz2 16158 +MD5 9f4f1a2c33dcbf0e90cd03d8429ff0af genpatches-2.6.14-3.extras.tar.bz2 142535 +MD5 38e7a3a23ac53e7bc3b3d6180bdd1fff suspend2-2.2-rc12-for-2.6.14.tar.bz2 114928 diff --git a/sys-kernel/suspend2-sources/files/suspend2-2.2-rc12-freeze-sbs.patch b/sys-kernel/suspend2-sources/files/suspend2-2.2-rc12-freeze-sbs.patch new file mode 100644 index 000000000000..922d776410e3 --- /dev/null +++ b/sys-kernel/suspend2-sources/files/suspend2-2.2-rc12-freeze-sbs.patch @@ -0,0 +1,110 @@ + process.c | 69 ++++++++++++++++++++++++-------------------------------------- + 1 files changed, 27 insertions(+), 42 deletions(-) +diff -ruNp 9500-freeze_sbs.patch-old/kernel/power/process.c 9500-freeze_sbs.patch-new/kernel/power/process.c +--- 9500-freeze_sbs.patch-old/kernel/power/process.c 2005-11-23 14:07:24.000000000 +1100 ++++ 9500-freeze_sbs.patch-new/kernel/power/process.c 2005-11-23 14:07:50.000000000 +1100 +@@ -65,76 +65,61 @@ DECLARE_COMPLETION(userspace_thaw); + static atomic_t nr_userspace_frozen; + static atomic_t nr_kernelspace_frozen; + +-struct remounted_fs ++struct frozen_fs + { + struct super_block *sb; +- struct remounted_fs *next; +-} *remounted_fs_list; ++ struct frozen_fs *next; ++} *frozen_fs_list; + + void freezer_make_fses_rw(void) + { +- int retval; ++ while (frozen_fs_list) { ++ struct frozen_fs *this; ++ char b[255]; + +- while (remounted_fs_list) { +- struct remounted_fs *this; ++ this = frozen_fs_list; ++ frozen_fs_list = frozen_fs_list->next; + +- this = remounted_fs_list; +- remounted_fs_list = remounted_fs_list->next; ++ bdevname(this->sb->s_bdev, b); + +- lock_kernel(); +- retval = do_remount_sb(this->sb, 0, NULL, 2); +- unlock_kernel(); +- +- if (retval) { +- printk("Failed to remount %s as writable. Sorry.\n", +- this->sb->s_id); +- } ++ printk("Thawing %s.\n", b); ++ thaw_bdev(this->sb->s_bdev, this->sb); + + kfree(this); + } + } + ++/* ++ * Done after userspace is frozen, so there should be no danger of ++ * fses being unmounted while we're in here. ++ */ + int freezer_make_fses_ro(void) + { +- struct remounted_fs *new; ++ struct frozen_fs *new; + struct super_block *sb; +- int retval, tries; + + list_for_each_entry(sb, &super_blocks, s_list) { + if (!sb->s_root || !sb->s_bdev) + continue; + +- down_write(&sb->s_umount); ++ if (sb->s_frozen == SB_FREEZE_TRANS) ++ continue; + + if (!(sb->s_flags & MS_RDONLY)) { ++ char b[255]; + +- tries = 1; +- +- new = kmalloc(sizeof(struct remounted_fs), GFP_ATOMIC); ++ new = kmalloc(sizeof(struct frozen_fs), GFP_ATOMIC); + new->sb = sb; +- new->next = remounted_fs_list; ++ new->next = frozen_fs_list; + +-again: +- lock_kernel(); +- retval = do_remount_sb(sb, MS_RDONLY, NULL, 2); +- unlock_kernel(); +- +- if (retval && tries < 3) { +- tries++; +- goto again; +- } +- +- if (retval) { +- kfree(new); +- freezer_make_fses_rw(); +- up_write(&sb->s_umount); +- return 1; +- } ++ bdevname(sb->s_bdev, b); + +- remounted_fs_list = new; +- } ++ printk("Attemting to freeze %s.\n", b); + +- up_write(&sb->s_umount); ++ freeze_bdev(sb->s_bdev); ++ ++ frozen_fs_list = new; ++ } + } + + return 0; + diff --git a/sys-kernel/suspend2-sources/suspend2-sources-2.6.14-r3.ebuild b/sys-kernel/suspend2-sources/suspend2-sources-2.6.14-r3.ebuild new file mode 100644 index 000000000000..f9f2ebfb73ff --- /dev/null +++ b/sys-kernel/suspend2-sources/suspend2-sources-2.6.14-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/suspend2-sources/suspend2-sources-2.6.14-r3.ebuild,v 1.1 2005/11/23 14:49:12 brix Exp $ + +ETYPE="sources" +K_WANT_GENPATCHES="base extras" +K_GENPATCHES_VER="3" + +inherit eutils kernel-2 +detect_version +detect_arch + +DESCRIPTION="Software Suspend 2 + Gentoo patchset sources" +HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net" + +SUSPEND2_VERSION="2.2-rc12" +SUSPEND2_TARGET="${PV}" +SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}" +SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.tar.bz2" + +UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.tar.bz2 +${FILESDIR}/suspend2-2.2-rc12-freeze-sbs.patch" + +UNIPATCH_STRICTORDER="yes" +UNIPATCH_DOCS="${WORKDIR}/patches/${SUSPEND2_SRC}/Changelog.txt +${WORKDIR}/patches/${SUSPEND2_SRC}/ToDo" + +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_URI}" + +KEYWORDS="~x86" + +IUSE="ultra1" +RDEPEND="${RDEPEND} + >=sys-apps/suspend2-userui-0.6.1 + >=sys-power/hibernate-script-1.12" + +K_EXTRAEINFO="If there are issues with this kernel, please direct any +queries to the suspend2-devel mailing list: +http://lists.suspend2.net/cgi-bin/mailman/listinfo/suspend2-devel" + +pkg_setup() { + if use sparc; then + # hme lockup hack on ultra1 + use ultra1 || UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 1399_sparc-U1-hme-lockup.patch" + fi +} + +pkg_postinst() { + postinst_sources + + echo + + if [ "${ARCH}" = "sparc" ]; then + if [ x"`cat /proc/openprom/name 2>/dev/null`" \ + = x"'SUNW,Ultra-1'" ]; then + einfo "For users with an Enterprise model Ultra 1 using the HME" + einfo "network interface, please emerge the kernel using the" + einfo "following command: USE=ultra1 emerge ${PN}" + fi + fi +} |