Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 17:21:22 -0500 (EST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tts@edu1.tokyo-med.ac.jp
Subject:   ports/63416: bento-fix: sysutils/bkpupsd
Message-ID:  <20040226222122.C86FD3981F@slurmcan.wormulon.net>
Resent-Message-ID: <200402262230.i1QMU8Ma030762@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63416
>Category:       ports
>Synopsis:       bento-fix: sysutils/bkpupsd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 26 14:30:08 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root@ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:

bentofix:
http://bento.freebsd.org/errorlogs/amd64-5-latest/bkpupsd-1.0a.log
affects all platforms:
http://people.freebsd.org/~fenner/errorlogs/mwatts@edu1.tokyo-med.ac.jp.html

>How-To-Repeat:
	
>Fix:

	

--- bkpupsd-varargs.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/sysutils/bkpupsd/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	23 Dec 2003 05:45:34 -0000	1.6
+++ Makefile	26 Feb 2004 22:18:24 -0000
@@ -15,10 +15,4 @@
 
 MAN8=		bkpupsd.8
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN=		"Does not compile due to deprecation of varargs.h"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: files/patch-ab
===================================================================
RCS file: /home/FreeBSD-CVS/ports/sysutils/bkpupsd/files/patch-ab,v
retrieving revision 1.2
diff -u -r1.2 patch-ab
--- files/patch-ab	5 Aug 1999 05:22:49 -0000	1.2
+++ files/patch-ab	26 Feb 2004 22:18:24 -0000
@@ -1,6 +1,6 @@
---- src/bkpupsd.c.old	Wed Aug  4 13:45:10 1999
-+++ src/bkpupsd.c	Wed Aug  4 13:55:24 1999
-@@ -27,9 +27,12 @@
+--- src/bkpupsd.c.orig	Sun Aug  3 13:11:23 1997
++++ src/bkpupsd.c	Thu Feb 26 17:17:09 2004
+@@ -27,14 +27,17 @@
   */
  
  #include <stdio.h>
@@ -13,6 +13,12 @@
  #include <sys/types.h>
  #include <sys/ioctl.h>
  #include <signal.h>
+ #include <syslog.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ 
+ #define POWER_TIMEOUT		5*60
+ #define DEFAULT_PORT		"/dev/cuaa1"
 @@ -44,16 +47,16 @@
  #define SH_RESTORED		"/usr/local/libexec/bkpupsd/bkpups.restored"
  #define SH_BATTLOW		"/usr/local/libexec/bkpupsd/bkpups.battlow"
--- bkpupsd-varargs.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040226222122.C86FD3981F>