pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46043: Build error of sysutils/apcupsd on OpenSolaris



>Number:         46043
>Category:       pkg
>Synopsis:       Build error of sysutils/apcupsd on OpenSolaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 18 07:20:00 +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)



Home | Main Index | Thread Index | Old Index