NetBSD Problem Report #36970
From martin@duskware.de Tue Sep 11 22:00:08 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 5F22763B86C
for <gnats-bugs@gnats.netbsd.org>; Tue, 11 Sep 2007 22:00:08 +0000 (UTC)
Message-Id: <20070911195536.42AEB63B8E9@narn.NetBSD.org>
Date: Tue, 11 Sep 2007 19:55:36 +0000 (UTC)
From: h-masuda@ootani.nagata.kobe.jp
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: netbsd-bugs-owner@NetBSD.org
Subject: sysutils/apcupsd can not install due to change path in archive
X-Send-Pr-Version: www-1.0
>Number: 36970
>Category: pkg
>Synopsis: sysutils/apcupsd can not install due to change path in archive
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bouyer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 11 22:05:00 +0000 2007
>Closed-Date: Tue Sep 18 19:24:30 +0000 2007
>Last-Modified: Tue Sep 18 19:45:01 +0000 2007
>Originator: MASUDA Hideo
>Release: 4.0_BETA2
>Organization:
>Environment:
NetBSD localhost 4.0_BETA2 NetBSD 4.0_BETA2 (XEN3_DOM0) #4: Fri May 25 18:59:30 JST 2007 admin@localhost:/usr/netbsd-4/src/sys/arch/i386/compile/XEN3_DOM0 i386
>Description:
sysutils/apcupsd can not install due to change path in archive.
# cd $PKGSRC/sysutils/apcupsd
# make update
(snip)
=> Unwrapping files-to-be-installed.
/usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|' /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.8
/usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|' /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.8
make: don't know how to make /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/distributions/netbsd/apcupsd. Stop
make: stopped in /export/work/current/pkgsrc/sysutils/apcupsd
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/sysutils/apcupsd
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/apcupsd
>How-To-Repeat:
# cd $PKGSRC/sysutils/apcupsd
# make install
>Fix:
The following patch will fix this problem.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/apcupsd/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile 19 Jun 2007 22:22:55 -0000 1.52
+++ Makefile 11 Sep 2007 19:48:31 -0000
@@ -67,7 +67,7 @@
CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${ROOT_USER} ${ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${ROOT_USER} ${ROOT_GROUP} 755
RCD_SCRIPTS= apcupsd
-RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/distributions/netbsd/apcupsd
+RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/netbsd/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: Thu, 13 Sep 2007 15:13:53 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/36970: sysutils/apcupsd can not install due to change path in archive
Date: Tue, 18 Sep 2007 21:04:47 +0200
On Tue, Sep 11, 2007 at 10:05:00PM +0000, h-masuda@ootani.nagata.kobe.jp wrote:
> >Number: 36970
> >Category: pkg
> >Synopsis: sysutils/apcupsd can not install due to change path in archive
> >Confidential: no
> >Severity: serious
> >Priority: high
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Tue Sep 11 22:05:00 +0000 2007
> >Originator: MASUDA Hideo
> >Release: 4.0_BETA2
> >Organization:
> >Environment:
> NetBSD localhost 4.0_BETA2 NetBSD 4.0_BETA2 (XEN3_DOM0) #4: Fri May 25 18:59:30 JST 2007 admin@localhost:/usr/netbsd-4/src/sys/arch/i386/compile/XEN3_DOM0 i386
>
> >Description:
> sysutils/apcupsd can not install due to change path in archive.
>
> # cd $PKGSRC/sysutils/apcupsd
> # make update
> (snip)
> => Unwrapping files-to-be-installed.
> /usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|' /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.8
> /usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|' /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.8
> make: don't know how to make /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/distributions/netbsd/apcupsd. Stop
Do you have anything special in /etc/mk.conf ?
Athough the RCD_SCRIPT_SRC value is obviously wrong, the package
installs properly on my system. I wonder whem RCD_SCRIPT_SRC is used,
and if there's some other problem ...
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/36970: sysutils/apcupsd can not install due to change path
in archive
Date: Tue, 18 Sep 2007 21:08:44 +0200
On Tue, Sep 18, 2007 at 07:05:08PM +0000, Manuel Bouyer wrote:
> Athough the RCD_SCRIPT_SRC value is obviously wrong, the package
> installs properly on my system. I wonder whem RCD_SCRIPT_SRC is used,
> and if there's some other problem ...
There was a check for the existance before that broke building other
packages. It was obcsure anyway. Please change the package to just set
RCD_SCRIPT_SRC to the right place and stop the real Makefiles from
installing it.
Joerg
State-Changed-From-To: open->closed
State-Changed-By: bouyer@netbsd.org
State-Changed-When: Tue, 18 Sep 2007 19:24:30 +0000
State-Changed-Why:
Shouuld be fixed with sysutils/apcupsd/Makefile 1.53
thansk !
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
h-masuda@ootani.nagata.kobe.jp
Subject: Re: pkg/36970: sysutils/apcupsd can not install due to change path in archive
Date: Tue, 18 Sep 2007 21:23:48 +0200
On Tue, Sep 18, 2007 at 07:10:03PM +0000, Joerg Sonnenberger wrote:
> The following reply was made to PR pkg/36970; it has been noted by GNATS.
>
> From: Joerg Sonnenberger <joerg@britannica.bec.de>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/36970: sysutils/apcupsd can not install due to change path
> in archive
> Date: Tue, 18 Sep 2007 21:08:44 +0200
>
> On Tue, Sep 18, 2007 at 07:05:08PM +0000, Manuel Bouyer wrote:
> > Athough the RCD_SCRIPT_SRC value is obviously wrong, the package
> > installs properly on my system. I wonder whem RCD_SCRIPT_SRC is used,
> > and if there's some other problem ...
>
> There was a check for the existance before that broke building other
> packages. It was obcsure anyway. Please change the package to just set
> RCD_SCRIPT_SRC to the right place and stop the real Makefiles from
> installing it.
OK, I've done so. Thanks !
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
>Unformatted:
(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.