Subject: pkg/14554: xbattbar doesn't work with 'new' apm
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lha@stacken.kth.se>
List: netbsd-bugs
Date: 11/12/2001 13:30:33
>Number: 14554
>Category: pkg
>Synopsis: xbattbar doesn't work with 'new' apm
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 12 04:31:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Love
>Release: NetBSD 1.5Y
>Organization:
Stacken Computerclub
>Environment:
System: NetBSD nutcracker.stacken.kth.se 1.5Y NetBSD 1.5Y (NUTCRACKER) #0: Thu Nov 8 10:01:57 CET 2001 lha@nutcracker.stacken.kth.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:
See pkg/14550
>How-To-Repeat:
Build an run xbattbar.
>Fix:
: lha@nutcracker ; pwd
/usr/pkgsrc/sysutils/xbattbar
: lha@nutcracker ; cvs diff -N
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/xbattbar/distinfo,v
retrieving revision 1.3
diff -w -u -r1.3 distinfo
--- distinfo 2001/06/18 10:57:03 1.3
+++ distinfo 2001/11/12 12:23:33
@@ -3,3 +3,4 @@
SHA1 (xbattbar_1.4.2.tar.gz) = 14e9aafd62919e4a625d3f84df3b074b9eef8279
Size (xbattbar_1.4.2.tar.gz) = 14079 bytes
SHA1 (patch-aa) = 3bd4b688ccaeebe766335245c1a8c5dde52768c2
+SHA1 (patch-ab) = 57a697d5cd7b4c6cd540f63a7fa1771b33430924
Index: patches/patch-ab
===================================================================
RCS file: patch-ab
diff -N patch-ab
--- /dev/null Sun May 20 17:40:04 2001
+++ patch-ab Mon Nov 12 04:23:33 2001
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+--- xbattbar.c.foo Mon Nov 12 13:21:33 2001
++++ xbattbar.c Mon Nov 12 13:21:43 2001
+@@ -594,6 +594,7 @@
+ exit(1);
+ }
+
++ memset(&info, 0, sizeof(info));
+ if (ioctl(fd, APM_IOC_GETPOWER, &info) != 0) {
+ fprintf(stderr, "xbattbar: ioctl APM_IOC_GETPOWER failed\n");
+ exit(1);
>Release-Note:
>Audit-Trail:
>Unformatted: