NetBSD Problem Report #45171

From www@NetBSD.org  Sun Jul 24 04:56:15 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D09B663C6EF
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Jul 2011 04:56:14 +0000 (UTC)
Message-Id: <20110724045614.08D4663BAC3@www.NetBSD.org>
Date: Sun, 24 Jul 2011 04:56:14 +0000 (UTC)
From: ftigeot@wolfpond.org
Reply-To: ftigeot@wolfpond.org
To: gnats-bugs@NetBSD.org
Subject: sysutils/apcupsd broken on DragonFly due to PR #40112
X-Send-Pr-Version: www-1.0

>Number:         45171
>Category:       pkg
>Synopsis:       sysutils/apcupsd broken on DragonFly due to PR #40112
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 24 05:00:00 +0000 2011
>Closed-Date:    Mon Aug 08 03:24:05 +0000 2011
>Last-Modified:  Mon Aug 08 20:00:12 +0000 2011
>Originator:     Francois Tigeot
>Release:        DragonFly 2.10
>Organization:
>Environment:
DragonFly akane.zefyris.com 2.10-RELEASE DragonFly v2.10.1.25.g9f5f02-RELEASE #0: Fri Jul  1 21:53:08 CEST 2011     ftigeot@akane.zefyris.com:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP  x86_64
>Description:
Since the fix from PR #40112 has been applied, sysutils/apcupsd can no
longer be installed on DragonFly systems
>How-To-Repeat:
Try to install sysutils/apcupsd on a DragonFly system
>Fix:
The rc.d startup script must be installed from the netbsd/ subdirectory.

This patch should do the trick:

diff -u -u -r1.61 Makefile
--- Makefile    22 Apr 2011 13:44:39 -0000      1.61
+++ Makefile    24 Jul 2011 04:55:45 -0000
@@ -65,7 +65,11 @@
 CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
 CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
 RCD_SCRIPTS=   apcupsd
-RCD_SCRIPT_SRC.apcupsd=        ${WRKSRC}/platforms/${OPSYS:tl}/apcupsd
+PLATFORM_SUBDIR=${OPSYS:tl}
+.if ${OPSYS} == "DragonFly"
+PLATFORM_SUBDIR=netbsd
+.endif
+RCD_SCRIPT_SRC.apcupsd=        ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd

 EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \
     etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bouyer
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 24 Jul 2011 11:20:25 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Sun, 07 Aug 2011 17:21:32 +0000
State-Changed-Why:
Patch from PR #40112 has been commited, so this sould be fixed too.


State-Changed-From-To: closed->open
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Sun, 07 Aug 2011 17:22:36 +0000
State-Changed-Why:
I misread the PR; PR #40112 actually broke it.


State-Changed-From-To: open->feedback
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Sun, 07 Aug 2011 17:27:52 +0000
State-Changed-Why:
Should be fixed in HEAD now, can you confirm ?


From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45171 CVS commit: pkgsrc/sysutils/apcupsd
Date: Sun, 7 Aug 2011 17:27:24 +0000

 Module Name:	pkgsrc
 Committed By:	bouyer
 Date:		Sun Aug  7 17:27:24 UTC 2011

 Modified Files:
 	pkgsrc/sysutils/apcupsd: Makefile

 Log Message:
 Apply patch from PR pkg/45171, fixing rc.d script on DragonFly.


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.63 pkgsrc/sysutils/apcupsd/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Francois Tigeot <ftigeot@wolfpond.org>
To: gnats-bugs@NetBSD.org
Cc: bouyer@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
        ftigeot@wolfpond.org
Subject: Re: pkg/45171 (sysutils/apcupsd broken on DragonFly due to PR #40112)
Date: Sun, 7 Aug 2011 19:53:52 +0200

 On Sun, Aug 07, 2011 at 05:27:53PM +0000, bouyer@NetBSD.org wrote:
 > Synopsis: sysutils/apcupsd broken on DragonFly due to PR #40112
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bouyer@NetBSD.org
 > State-Changed-When: Sun, 07 Aug 2011 17:27:52 +0000
 > State-Changed-Why:
 > Should be fixed in HEAD now, can you confirm ?

 I confirm it.  Many thanks !

 -- 
 Francois Tigeot

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 08 Aug 2011 03:24:05 +0000
State-Changed-Why:
Confirmed, thanks.


From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45171 CVS commit: [pkgsrc-2011Q2] pkgsrc/sysutils/apcupsd
Date: Mon, 8 Aug 2011 19:56:38 +0000

 Module Name:	pkgsrc
 Committed By:	spz
 Date:		Mon Aug  8 19:56:37 UTC 2011

 Modified Files:
 	pkgsrc/sysutils/apcupsd [pkgsrc-2011Q2]: Makefile

 Log Message:
 Pullup ticket #3494 - requested by bouyer
 sysutils/apcupsd: Dragonfly fix

 Revisions pulled up:
 - sysutils/apcupsd/Makefile                                     1.63

 -------------------------------------------------------------------
    Module Name:	pkgsrc
    Committed By:	bouyer
    Date:		Sun Aug  7 17:27:24 UTC 2011

    Modified Files:
    	pkgsrc/sysutils/apcupsd: Makefile

    Log Message:
    Apply patch from PR pkg/45171, fixing rc.d script on DragonFly.

    To generate a diff of this commit:
    cvs rdiff -u -r1.62 -r1.63 pkgsrc/sysutils/apcupsd/Makefile


 To generate a diff of this commit:
 cvs rdiff -u -r1.61.2.1 -r1.61.2.2 pkgsrc/sysutils/apcupsd/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>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.