NetBSD Problem Report #14554

Received: (qmail 24805 invoked from network); 12 Nov 2001 12:30:46 -0000
Message-Id: <200111121230.fACCUXi11243@nutcracker.stacken.kth.se>
Date: Mon, 12 Nov 2001 13:30:33 +0100 (CET)
From: lha@stacken.kth.se
Reply-To: lha@stacken.kth.se
To: gnats-bugs@gnats.netbsd.org
Subject: xbattbar doesn't work with 'new' apm
X-Send-Pr-Version: 3.95

>Number:         14554
>Category:       pkg
>Synopsis:       xbattbar doesn't work with 'new' apm
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 12 12:31:00 +0000 2001
>Closed-Date:    Mon Nov 26 20:09:31 +0000 2001
>Last-Modified:  Mon Nov 26 20:09:31 +0000 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Nov 26 12:09:19 PST 2001 
State-Changed-Why:  
Added the patch to pkgsrc, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.