=> Bootstrap dependency digest>=20010302: found digest-20190127 => Checksum SHA1 OK for apcupsd-3.14.14.tar.gz => Checksum RMD160 OK for apcupsd-3.14.14.tar.gz => Checksum SHA512 OK for apcupsd-3.14.14.tar.gz ===> Installing dependencies for apcupsd-3.14.14 ========================================================================== The supported build options for apcupsd are: cgi The currently selected options are: cgi You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.apcupsd (not defined) ========================================================================== ========================================================================== The following variables will affect the build process of this package, apcupsd-3.14.14. Their current value is shown below: * JPEG_DEFAULT = jpeg * LIBUSB_TYPE = compat * VARBASE = /opt/pkg/var Based on these variables, the following variables have been set: * JPEGBASE (defined, but empty) * JPEG_TYPE = jpeg You may want to abort the process now with CTRL-C and change their value before continuing. Be sure to run `/opt/pkg/bin/bmake clean' after the changes. ========================================================================== => Tool dependency gmake>=3.81: found gmake-4.2.1nb1 => Tool dependency gettext-tools>=0.15: found gettext-tools-0.21nb1 => Tool dependency nbpatch-[0-9]*: found nbpatch-20151107 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Build dependency cwrappers>=20150314: found cwrappers-20180325 => Full dependency gd>=2.3.0nb1: found gd-2.3.0nb2 => Full dependency gettext-lib>=0.18: found gettext-lib-0.21 => Full dependency libusb-compat>=0.1.6rc2: found libusb-compat-0.1.7 ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Overriding tools for apcupsd-3.14.14 ===> Extracting for apcupsd-3.14.14 ===> Patching for apcupsd-3.14.14 => Applying pkgsrc patches for apcupsd-3.14.14 => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ab => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ab Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ab,v 1.7 2020/09/19 13:50:48 taca Exp $ | |* Accept connection from localhost default. |* Use proper directory. | |--- platforms/etc/apcupsd.conf.in.orig 2007-06-15 22:21:18.000000000 +0200 |+++ platforms/etc/apcupsd.conf.in 2007-06-15 22:28:16.000000000 +0200 -------------------------- Patching file platforms/etc/apcupsd.conf.in using Plan A... Hunk #1 succeeded at 207 (offset 27 lines). Hunk #2 succeeded at 218 (offset 27 lines). Hunk #3 succeeded at 226 (offset -5 lines). done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ac => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ac Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ac,v 1.5 2020/09/19 13:50:48 taca Exp $ | |* Use proper directory. | |--- include/defines.h.orig 2006-11-15 17:33:07.000000000 +0100 |+++ include/defines.h 2006-11-15 17:33:22.000000000 +0100 -------------------------- Patching file include/defines.h using Plan A... Hunk #1 succeeded at 50 (offset -2 lines). done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ad => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ad Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ad,v 1.6 2020/09/19 13:50:48 taca Exp $ | |* apccontrol script. | |--- platforms/netbsd/apccontrol.in.orig 2012-04-21 20:53:17.000000000 +0000 |+++ platforms/netbsd/apccontrol.in -------------------------- (Creating file platforms/netbsd/apccontrol.in...) Patching file platforms/netbsd/apccontrol.in using Plan A... Empty context always matches. Hunk #1 succeeded at 1. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ae => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ae Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ae,v 1.8 2020/09/19 13:50:48 taca Exp $ | |* Fix for pkgsrc environment. |* Add Dragonfly support. |* Add apccontrol script on NetBSD. | |--- autoconf/configure.in.orig 2010-09-02 16:23:39.000000000 +0200 |+++ autoconf/configure.in 2011-08-01 15:40:05.000000000 +0200 -------------------------- Patching file autoconf/configure.in using Plan A... Hunk #1 succeeded at 125 (offset 36 lines). Hunk #2 succeeded at 130 (offset -10 lines). Hunk #3 succeeded at 946 (offset -37 lines). Hunk #4 succeeded at 1114 (offset -10 lines). Hunk #5 succeeded at 1121 (offset -37 lines). done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-af => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-af Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-af,v 1.9 2020/09/19 13:50:48 taca Exp $ | |* Fix installation for pkgsrc. | |--- src/Makefile.orig 2014-11-04 19:17:43.000000000 +0000 |+++ src/Makefile -------------------------- Patching file src/Makefile using Plan A... Hunk #1 succeeded at 27. Hunk #2 succeeded at 49. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ag => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ag Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ag,v 1.6 2020/09/19 13:50:48 taca Exp $ | |* Fix installation for pkgsrc. | |--- platforms/etc/Makefile.orig 2011-08-01 16:13:04.000000000 +0200 |+++ platforms/etc/Makefile 2011-08-01 16:13:13.000000000 +0200 -------------------------- Patching file platforms/etc/Makefile using Plan A... Hunk #1 succeeded at 7. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ah => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ah Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ah,v 1.5 2020/09/19 13:50:48 taca Exp $ | |Use standard NetBSD rc(8) scheme. | |--- platforms/netbsd/apcupsd.in.orig 2002-05-28 13:34:53.000000000 +0000 |+++ platforms/netbsd/apcupsd.in -------------------------- Patching file platforms/netbsd/apcupsd.in using Plan A... Hunk #1 succeeded at 1. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ai => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ai Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ai,v 1.6 2020/09/19 13:50:48 taca Exp $ | |* Fix installation for pkgsrc. | |--- platforms/netbsd/Makefile.orig 2011-08-01 15:45:29.000000000 +0200 |+++ platforms/netbsd/Makefile 2011-08-01 15:45:49.000000000 +0200 -------------------------- Patching file platforms/netbsd/Makefile using Plan A... Hunk #1 succeeded at 7. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-aj => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-aj Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-aj,v 1.10 2020/09/19 13:50:48 taca Exp $ | |* Fix for pkgsrc environment. |* Add Dragonfly support. |* Add apccontrol script on NetBSD. | |--- configure.orig 2015-01-04 20:35:43.000000000 +0000 |+++ configure -------------------------- Patching file configure using Plan A... Hunk #1 succeeded at 2260 (offset -6 lines). Hunk #2 succeeded at 4052 (offset -6 lines). Hunk #3 succeeded at 12974 (offset -134 lines). Hunk #4 succeeded at 13233 (offset -6 lines). Hunk #5 succeeded at 13139 (offset -134 lines). done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-an => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-an Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-an,v 1.9 2020/09/19 13:50:48 taca Exp $ | |* Rename upsimage.cgi to apcupsimage.cgi. |* Fix installation for pkgsrc. | |--- src/cgi/Makefile.orig 2014-11-04 19:17:43.000000000 +0000 |+++ src/cgi/Makefile -------------------------- Patching file src/cgi/Makefile using Plan A... Hunk #1 succeeded at 17. Hunk #2 succeeded at 30. Hunk #3 succeeded at 41. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ao => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ao Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ao,v 1.8 2020/09/19 13:50:48 taca Exp $ | |* Fix installation for pkgsrc. | |--- platforms/Makefile.orig 2011-08-01 15:55:53.000000000 +0200 |+++ platforms/Makefile 2011-08-01 15:56:26.000000000 +0200 -------------------------- Patching file platforms/Makefile using Plan A... Hunk #1 succeeded at 9. done => Verifying /opt/pkgsrc/sysutils/apcupsd/patches/patch-ap => Applying pkgsrc patch /opt/pkgsrc/sysutils/apcupsd/patches/patch-ap Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-ap,v 1.5 2020/09/19 13:50:48 taca Exp $ | |* Fix installation for pkgsrc. | |--- platforms/sun/Makefile.orig 2008-06-01 23:57:56.000000000 +0200 |+++ platforms/sun/Makefile 2012-02-19 19:20:10.000000000 +0100 -------------------------- Patching file platforms/sun/Makefile using Plan A... Hunk #1 succeeded at 12. done ===> Creating toolchain wrappers for apcupsd-3.14.14 ===> Configuring for apcupsd-3.14.14 => Fixing conflicting STRIP variable name => Modifying GNU configure scripts to avoid --recheck => Replacing config-guess with pkgsrc versions => Replacing config-sub with pkgsrc versions => Replacing install-sh with pkgsrc version => Checking for portability problems in extracted files checking for true... /opt/work/sysutils/apcupsd/work/.tools/bin/true checking for false... /opt/work/sysutils/apcupsd/work/.tools/bin/false checking build system type... aarch64-apple-darwin20 checking host system type... aarch64-apple-darwin20 checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether clang++ accepts -g... yes checking for aarch64-apple-darwin20-gcc... clang checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking how to run the C preprocessor... clang -E checking for a BSD-compatible install... /usr/bin/install -c -o sjmulder -g staff checking for gawk... /opt/pkg/bin/nawk checking for library containing strerror... none required checking for shutdown... /sbin/shutdown checking for mail... /usr/bin/mail checking for wall... /usr/bin/wall checking for sh... /opt/pkg/bin/mksh checking for GNU make... make checking for aarch64-apple-darwin20-ranlib... no checking for ranlib... ranlib checking for rm... /bin/rm checking for cp... /bin/cp checking for echo... (cached) echo checking for ln... /bin/ln checking for sed... /opt/pkg/bin/nbsed checking for aarch64-apple-darwin20-ar... no checking for ar... ar checking for mv... /bin/mv checking for aarch64-apple-darwin20-windres... no checking for windres... no checking for aarch64-apple-darwin20-strip... no checking for aarch64-apple-darwin20-true... no checking for strip... strip checking for rst2html... no checking for rst2html.py... no checking for rst2pdf... no checking for abort... yes checking for calloc... yes checking for getpid... yes checking for rewind... yes checking for signal... yes checking for strerror... yes checking for strncmp... yes checking for strncpy... yes checking for vfprintf... yes checking for snprintf... yes checking for vsnprintf... yes checking for strlcpy... yes checking for strlcat... yes checking for accept4... no checking for fork... yes checking for ioctl... yes checking for kill... yes checking for select... yes checking for setsid... yes checking for tcgetattr... yes checking for syslog... yes checking for library containing nanosleep... none required checking for strftime... yes checking for library containing socket... none required checking for library containing gethostname... none required checking for library containing gethostbyname... none required checking for library containing gethostbyname_r... no checking for library containing inet_addr... none required checking for strchr... yes using libc's strchr checking for strstr... yes checking for strcasecmp... yes checking for memmove... yes checking for getopt_long... yes checking for inet_pton... yes checking for localtime_r... yes checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/types.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking return type of signal handlers... void checking for size_t... yes checking for uid_t in sys/types.h... (cached) yes checking for socklen_t... yes checking for X... no checking whether #! works in shell scripts... yes Will not install HAL policy file checking for gdImagePng in -lgd... yes using PNG file format. checking gd.h usability... yes checking gd.h presence... yes checking for gd.h... yes checking for libusb-config... /opt/pkg/bin/libusb-config Using generic libusb USB driver. checking how many arguments gethostbyname_r() takes... cannot find function declaration in netdb.h checking if libsupc++ is required... no checking whether C compiler accepts -fno-exceptions... yes checking whether C compiler accepts -fno-rtti... yes checking whether C compiler accepts -Wall... yes checking whether C compiler accepts -Wno-unused-result... yes checking for wait... yes checking for waitpid... yes checking for wait3... yes checking for snprintf... (cached) yes Enabling cgi program support... configure: creating ./config.status config.status: creating autoconf/variables.mak config.status: WARNING: 'autoconf/variables.mak.in' seems to ignore the --datarootdir setting config.status: creating platforms/apccontrol config.status: creating platforms/etc/changeme config.status: creating platforms/etc/commfailure config.status: creating platforms/etc/commok config.status: creating platforms/etc/offbattery config.status: creating platforms/etc/onbattery config.status: creating platforms/etc/apcupsd.conf config.status: creating examples/safe.apccontrol config.status: creating platforms/darwin/apccontrol config.status: creating platforms/darwin/apcupsd-start config.status: creating platforms/darwin/apcupsd-uninstall config.status: creating platforms/darwin/org.apcupsd.apcupsd.plist config.status: creating include/libusb.h config.status: creating src/cgi/cgiconfig.h config.status: creating include/apcconfig.h Configuration on Wed Jan 13 21:11:45 CET 2021: Host: aarch64-apple-darwin20 -- darwin 20.3.0 Apcupsd version: 3.14.14 (31 May 2016) Source code location: . Install binaries: /opt/pkg/sbin Install config files: /opt/pkg/etc/apcupsd Install man files: /opt/pkg/man Nologin file in: /etc PID directory: /var/run LOG dir (events, status) /opt/pkg/var/db/apcupsd.events LOCK dir (for serial port) /opt/pkg/var/spool/lock Power Fail dir /opt/pkg/etc/apcupsd Compiler: clang++ version Preprocessor flags: -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -I/usr/local/include -I$(topdir)/src/libusbhid Compiler flags: -O2 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -fno-exceptions -fno-rtti -Wall -Wno-unused-result Linker: clang++ Linker flags: -L/opt/pkg/lib -L/usr/lib -L/usr/local/lib Host and version: darwin 20.3.0 Shutdown Program: /sbin/shutdown Port/Device: /dev/tty01 Network Info Port (CGI): 3551 UPSTYPE usb UPSCABLE usb drivers (no-* are disabled): apcsmart dumb net generic-usb snmp pcnet modbus no-modbus-usb no-test enable-nis: yes with-nisip: 0.0.0.0 enable-cgi: yes with-cgi-bin: /opt/pkg/libexec/cgi-bin with-libwrap: enable-pthreads: yes enable-dist-install: yes enable-gapcmon: no enable-apcagent: yes Configuration complete: Run 'make' to build apcuspd.