Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37564312
en ru br
ALT Linux repos
S:1.22-alt1.qa1
5.0: 1.22-alt1
4.1: 1.22-alt1
4.0: 1.22-alt1
3.0: 1.22-alt1

Group :: System/Base
RPM: powermgmt-base

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: powermgmt-base-1.20-alt-fixes.patch
Download


diff -uprk.orig powermgmt-base-1.20/src.orig/acpi_available.c powermgmt-base-1.20/src/acpi_available.c
--- powermgmt-base-1.20/src.orig/acpi_available.c	2002-05-05 05:37:25 +0400
+++ powermgmt-base-1.20/src/acpi_available.c	2004-04-19 18:10:30 +0400
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2002  J. D. Thomas Hood <jdthood@yahoo.co.uk>
+Copyright (c) 2004  Dmitry V. Levin <ldv@altlinux.org>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -16,21 +16,10 @@ along with this program; if not, write t
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.  */
 
-#include <stdio.h>
 #include <unistd.h>
 
-#define ACPI_PROC "/proc/acpi"
-
 int
-main (int argc, const char * argv[])
+main (void)
 {
-	int r;
-
-	r = access(ACPI_PROC, X_OK);
-	if (r==0)
-		exit(0);
-
-	/* Should try to get the acpi modules loaded here */
-
-	exit(1);
+	return chdir ("/proc/acpi") < 0;
 }
diff -uprk.orig powermgmt-base-1.20/src.orig/apm_available.c powermgmt-base-1.20/src/apm_available.c
--- powermgmt-base-1.20/src.orig/apm_available.c	2002-05-05 05:37:25 +0400
+++ powermgmt-base-1.20/src/apm_available.c	2004-04-19 18:11:27 +0400
@@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit
 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin