diff options
author | 2006-11-08 18:41:51 +0000 | |
---|---|---|
committer | 2006-11-08 18:41:51 +0000 | |
commit | f3b543c1f0018a61bd16a51f15817dffd3cc549b (patch) | |
tree | 09eb3d55937e40d7248d9291ce8e7bfed32b58ff /sys-fs/dazuko/files | |
parent | stable on amd64 (diff) | |
download | gentoo-2-f3b543c1f0018a61bd16a51f15817dffd3cc549b.tar.gz gentoo-2-f3b543c1f0018a61bd16a51f15817dffd3cc549b.tar.bz2 gentoo-2-f3b543c1f0018a61bd16a51f15817dffd3cc549b.zip |
Added suspend2-2.2.8.4 support
(Portage version: 2.1.1-r1)
Diffstat (limited to 'sys-fs/dazuko/files')
-rw-r--r-- | sys-fs/dazuko/files/dazuko-2.3.1-suspend2.patch | 69 | ||||
-rw-r--r-- | sys-fs/dazuko/files/digest-dazuko-2.3.1-r1 | 3 |
2 files changed, 72 insertions, 0 deletions
diff --git a/sys-fs/dazuko/files/dazuko-2.3.1-suspend2.patch b/sys-fs/dazuko/files/dazuko-2.3.1-suspend2.patch new file mode 100644 index 000000000000..b54e2c043d6a --- /dev/null +++ b/sys-fs/dazuko/files/dazuko-2.3.1-suspend2.patch @@ -0,0 +1,69 @@ +diff -urNp dazuko-2.3.1.org/configure dazuko-2.3.1/configure +--- dazuko-2.3.1.org/configure 2006-10-04 00:48:18.000000000 +0200 ++++ dazuko-2.3.1/configure 2006-11-08 15:11:38.000000000 +0200 +@@ -590,21 +590,20 @@ do_linux26() + then + LINUX26_USE_SUSPEND=1 + fi ++ fi ++ ++ SRC_PATH_END="/include/linux/freezer.h" ++ get_src_path + +- grep "try_todo_list.*(.*void.*)" "$SRC_PATH" > /dev/null 2>&1 ++ if [ -f "$SRC_PATH" ] ++ then ++ grep "try_to_freeze.*(.*void.*)" "$SRC_PATH" > /dev/null 2>&1 + if [ $? -eq 0 ] + then +- LINUX26_USE_SUSPEND=2 ++ LINUX26_USE_SUSPEND=1 + fi + fi + +- if [ $LINUX26_USE_SUSPEND -eq 2 ] +- then +- echo "ok (suspend2)" +- else +- echo "ok (suspend1)" +- fi +- + if [ $LOCAL_DPATH -eq 2 ] + then + LOCAL_DPATH=1 +@@ -705,11 +704,6 @@ do_linux26() + echo "EXTRA_CFLAGS += -DUSE_TRYTOFREEZEVOID" >> Makefile + fi + +- if [ ${LINUX26_USE_SUSPEND} -eq 2 ] +- then +- echo "EXTRA_CFLAGS += -DUSE_SUSPEND2" >> Makefile +- fi +- + if [ ${LINUX26_USE_CLASS} -eq 1 ] + then + echo "EXTRA_CFLAGS += -DUSE_CLASS" >> Makefile +diff -urNp dazuko-2.3.1.org/dazuko_linux26.c dazuko-2.3.1/dazuko_linux26.c +--- dazuko-2.3.1.org/dazuko_linux26.c 2006-07-29 12:13:03.000000000 +0300 ++++ dazuko-2.3.1/dazuko_linux26.c 2006-11-08 15:15:25.000000000 +0200 +@@ -37,7 +37,7 @@ + #include <linux/devfs_fs_kernel.h> + #endif + #include <linux/device.h> +-#if !defined(USE_TRYTOFREEZEVOID) && !defined(USE_SUSPEND2) ++#if !defined(USE_TRYTOFREEZEVOID) + #include <linux/suspend.h> + #endif + #include <asm/uaccess.h> +@@ -178,10 +178,7 @@ inline int xp_wait_until_condition(struc + { + ret = wait_event_interruptible(queue->queue, cfunction(cparam) != 0); + +-#ifdef USE_SUSPEND2 +- if (try_todo_list() == 0) +- break; +-#elif defined (USE_TRYTOFREEZEVOID) ++#if defined (USE_TRYTOFREEZEVOID) + if (try_to_freeze() == 0) + break; + #else diff --git a/sys-fs/dazuko/files/digest-dazuko-2.3.1-r1 b/sys-fs/dazuko/files/digest-dazuko-2.3.1-r1 new file mode 100644 index 000000000000..4478b3fc29d0 --- /dev/null +++ b/sys-fs/dazuko/files/digest-dazuko-2.3.1-r1 @@ -0,0 +1,3 @@ +MD5 7f8373d4b429a9e454aa556a8f2e40fb dazuko-2.3.1.tar.gz 176944 +RMD160 cc527bf0f251cfa96ec79ddbcc8e6ad49247dbef dazuko-2.3.1.tar.gz 176944 +SHA256 9481875699e6fefd80f40b945159df55815408f76f9fd511656c55a52499fc8e dazuko-2.3.1.tar.gz 176944 |