NetBSD Problem Report #46043
From www@NetBSD.org Sat Feb 18 07:16:18 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 74D2663E019
for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Feb 2012 07:16:18 +0000 (UTC)
Message-Id: <20120218071617.52CE863D712@www.NetBSD.org>
Date: Sat, 18 Feb 2012 07:16:17 +0000 (UTC)
From: h-masuda@ootani.nagata.kobe.jp
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: gnats-bugs@NetBSD.org
Subject: Build error of sysutils/apcupsd on OpenSolaris
X-Send-Pr-Version: www-1.0
>Number: 46043
>Category: pkg
>Synopsis: Build error of sysutils/apcupsd on OpenSolaris
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bouyer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 18 07:20:00 +0000 2012
>Closed-Date: Mon Feb 27 10:35:17 +0000 2012
>Last-Modified: Mon Feb 27 10:35:17 +0000 2012
>Originator: MASUDA Hideo
>Release:
>Organization:
>Environment:
SunOS dsmbase4 5.11 snv_134 i86pc i386 i86xpv Solaris
>Description:
Under OpenSolaris environment, I want to build sysutils/apcupsd.
I got the error as following after "bmake":
(snip)
MAN apcaccess.8 -> apcaccess.man.txt
MAN apctest.8 -> apctest.man.txt
MAN apccontrol.8 -> apccontrol.man.txt
MAN apcupsd.conf.5 -> apcupsd.conf.man.txt
=> Unwrapping files-to-be-installed.
bmake: don't know how to make /var/work/obj/sysutils/apcupsd/work.dsmbase4/apcupsd-3.14.9/platforms/sunos/apcupsd. Stop
bmake: stopped in /share/src/pkgsrc/sysutils/apcupsd
*** Error code 2
Stop.
bmake: stopped in /share/src/pkgsrc/sysutils/apcupsd
>How-To-Repeat:
Under OpenSolaris X86.
cd $PKGSRCDIR/bootstrap
./bootstrap
cd $PKGSRCDIR/sysutils/apcupsd
bmake
>Fix:
It may be gone if apply the following patch:
# cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/sysutils/apcupsd/Makefile,v
retrieving revision 1.66
diff -u -r1.66 Makefile
--- Makefile 22 Jan 2012 09:07:50 -0000 1.66
+++ Makefile 18 Feb 2012 07:08:57 -0000
@@ -71,9 +71,12 @@
.if ${OPSYS} == "DragonFly"
PLATFORM_SUBDIR=netbsd
.endif
+.if ${OPSYS} == "SunOS"
+PLATFORM_SUBDIR=sun
+.endif
RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd
-EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \
+EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \
etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf
INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d \
--- /dev/null 2012-02-18 16:07:28.000000000 +0900
+++ patches/patch-os 2012-02-18 16:05:28.480519575 +0900
@@ -0,0 +1,12 @@
+# patch for sysutils/apcupsd on OpenSolaris
+--- platforms/sun/Makefile.orig 2008-06-02 06:57:56.000000000 +0900
++++ platforms/sun/Makefile 2012-02-18 15:49:42.175525737 +0900
+@@ -12,7 +12,7 @@
+ $(call MKDIR,/etc/rc1.d)
+ $(call MKDIR,/etc/rc2.d)
+ $(call MKDIR,/etc/init.d)
+- $(call INSTPROG,744,apcupsd,/etc/init.d/apcupsd)
++ $(call INSTSCRIPT,744,apcupsd,/etc/init.d/apcupsd)
+ $(call SYMLINK,../init.d/apcupsd,/etc/rc0.d/K21apcupsd)
+ $(call SYMLINK,../init.d/apcupsd,/etc/rc1.d/S89apcupsd)
+ $(call SYMLINK,../init.d/apcupsd,/etc/rc2.d/S89apcupsd)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->bouyer
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 18 Feb 2012 09:33:10 +0000
Responsible-Changed-Why:
Over to maintainer (if you can't handle, assign to solaris-pkg-people).
From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46043 CVS commit: pkgsrc/sysutils/apcupsd
Date: Sat, 18 Feb 2012 21:08:33 +0000
Module Name: pkgsrc
Committed By: bouyer
Date: Sat Feb 18 21:08:33 UTC 2012
Modified Files:
pkgsrc/sysutils/apcupsd: distinfo
Added Files:
pkgsrc/sysutils/apcupsd/patches: patch-ap
Log Message:
Fix build on OpenSolaris, from MASUDA Hideo in PR pkg/46043
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/sysutils/apcupsd/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/sysutils/apcupsd/patches/patch-ap
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46043 CVS commit: pkgsrc/sysutils/apcupsd
Date: Sat, 18 Feb 2012 21:10:48 +0000
Module Name: pkgsrc
Committed By: bouyer
Date: Sat Feb 18 21:10:48 UTC 2012
Modified Files:
pkgsrc/sysutils/apcupsd: Makefile
Log Message:
Fix build on OpenSolaris, from MASUDA Hideo in PR pkg/46043
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 pkgsrc/sysutils/apcupsd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Thu, 23 Feb 2012 20:29:40 +0000
State-Changed-Why:
Should be fixed now, can you confirm ?
From: MASUDA Hideo <h-masuda@ootani.nagata.kobe.jp>
To: gnats-bugs@NetBSD.org
Cc: bouyer@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
MASUDA Hideo <h-masuda@ootani.nagata.kobe.jp>
Subject: Re: pkg/46043 (Build error of sysutils/apcupsd on OpenSolaris)
Date: Mon, 27 Feb 2012 19:31:40 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, all.
I just have tested under two environments, and it is fine on them.
Thank you very much !!
[version]
# $NetBSD: Makefile,v 1.67 2012/02/18 21:10:48 bouyer Exp $
$NetBSD: patch-ap,v 1.4 2012/02/19 18:21:58 bouyer Exp $
[environments]
# uname -a
SunOS dsmbase4 5.11 snv_134 i86pc i386 i86xpv Solaris
# uname -a
SunOS sfv240 5.11 snv_134b sun4u sparc SUNW,Sun-Fire-V240 Solaris
- --
MASUDA Hideo (h-masuda@ootani.nagata.kobe.jp)
Finger Print: C532 9F5B 4D7D DA76 8BFF CAA3 C073 5C9E 10FF 98EF
2012/02/24 05:29, bouyer@NetBSD.org wrote:
> Synopsis: Build error of sysutils/apcupsd on OpenSolaris
>
> State-Changed-From-To: open->feedback
> State-Changed-By: bouyer@NetBSD.org
> State-Changed-When: Thu, 23 Feb 2012 20:29:40 +0000
> State-Changed-Why:
> Should be fixed now, can you confirm ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Vine - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPS1uFAAoJEMBzXJ4Q/5jvQg8H/iq5gCoxx67MNc5RVUr73CtH
ynESbgifR5OI+/fJiXh6PL86N78A30vONVqI8kJgRxU+gzlwUhh2ibfn9IVMQF0K
FYsOzRYxdJ6FXuhoeVU0w7quf+KulJ8XWlUrsiJW3KXGrwUq5pLEz6WXbWcNe4/L
jMkm62SQkxG2kGT4zqTNth25oVYVO1lEOKh15sMo/H7Wq384O857DmnyjkFyrwCX
Gq7ESlgP3lftTC5/76Kb6qgHFYMKX57oWk+wLI5/hoePof8n2fr7JcyBkDAtWnOk
g0nQ/7JY8iJf69YOdu9JlU+QiU78nHkdW60mkklkP377QEbcKd2nIVq0BdOAU7Q=
=ISRG
-----END PGP SIGNATURE-----
State-Changed-From-To: feedback->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Mon, 27 Feb 2012 10:35:17 +0000
State-Changed-Why:
Submitter says it's fixed
>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.