+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PHP_VERSION_REQD=82 MYSQL_VERSION_REQD=mariadb1011 PKG_APACHE=apache24 WRKLOG=/tmp/bulklog/zoneminder-1.36.33/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PHP_VERSION_REQD=82 MYSQL_VERSION_REQD=mariadb1011 PKG_APACHE=apache24 WRKLOG=/tmp/bulklog/zoneminder-1.36.33/work.log => Checksum BLAKE2s OK for FriendsOfCake-crud-14292374ccf1328f2d5db20897bd06f99ba4d938.tar.gz => Checksum SHA512 OK for FriendsOfCake-crud-14292374ccf1328f2d5db20897bd06f99ba4d938.tar.gz => Checksum BLAKE2s OK for ZoneMinder-1.36.33.tar.gz => Checksum SHA512 OK for ZoneMinder-1.36.33.tar.gz => Checksum BLAKE2s OK for ZoneMinder-CakePHP-Enum-Behavior-ea90c0cd7f6e24333a90885e563b5d30b793db29.tar.gz => Checksum SHA512 OK for ZoneMinder-CakePHP-Enum-Behavior-ea90c0cd7f6e24333a90885e563b5d30b793db29.tar.gz => Checksum BLAKE2s OK for ZoneMinder-RtspServer-055d81fe1293429e496b19104a9ed3360755a440.tar.gz => Checksum SHA512 OK for ZoneMinder-RtspServer-055d81fe1293429e496b19104a9ed3360755a440.tar.gz ===> Installing dependencies for zoneminder-1.36.33 ========================================================================== The supported build options for zoneminder are: apache nginx The currently selected options are: apache You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.zoneminder (not defined) ========================================================================== ========================================================================== The following variables will affect the build process of this package, zoneminder-1.36.33. Their current value is shown below: * APACHE_GROUP = www * APACHE_USER = www * JPEG_DEFAULT = jpeg * MYSQL_VERSION_DEFAULT = mariadb1011 * PKG_APACHE_DEFAULT = apache24 * SSLBASE (defined) * SSLCERTBUNDLE (not defined) * SSLCERTS = /etc/opt/pkg/openssl/certs * SSLDIR = /etc/opt/pkg/openssl * SSLKEYS = /etc/opt/pkg/openssl/private * VARBASE = /var/opt/pkg * ZM_HTTPD_CGIBIN = libexec/zoneminder/cgi-bin Based on these variables, the following variables have been set: * APACHE_PKG_PREFIX = ap24 * JPEGBASE (defined, but empty) * JPEG_TYPE = jpeg * MYSQL_VERSION = mariadb1011 * PKG_APACHE = apache24 You may want to abort the process now with CTRL-C and change the value of variables in the first group before continuing. Be sure to run `/opt/pkg/bin/bmake clean' after the changes. ========================================================================== => Tool dependency cmake>=0: found cmake-3.31.1 => Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.82.2 => Tool dependency gmake>=3.81: found gmake-4.4.1 => Tool dependency perl>=5.40.0: found perl-5.40.0nb1 => Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0 => Tool dependency cwrappers>=20150314: found cwrappers-20220403 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Full dependency p5-Archive-Zip-[0-9]*: found p5-Archive-Zip-1.68nb4 => Full dependency p5-Device-SerialPort-[0-9]*: found p5-Device-SerialPort-1.04nb16 => Full dependency p5-DBD-mysql-[0-9]*: found p5-DBD-mysql-4.050nb7 => Full dependency p5-Class-Std-[0-9]*: found p5-Class-Std-0.0.13nb9 => Full dependency p5-Class-Std-Fast-[0-9]*: found p5-Class-Std-Fast-0.0.8nb2 => Full dependency p5-Data-Dump-[0-9]*: found p5-Data-Dump-1.25nb3 => Full dependency p5-Data-Entropy-[0-9]*: found p5-Data-Entropy-0.007nb1 => Full dependency p5-Data-Float-[0-9]*: found p5-Data-Float-0.013nb1 => Full dependency p5-Data-UUID-[0-9]*: found p5-Data-UUID-1.227nb1 => Full dependency p5-Date-Manip-[0-9]*: found p5-Date-Manip-6.95nb1 => Full dependency p5-File-Slurp-[0-9]*: found p5-File-Slurp-9999.32nb5 => Full dependency p5-PHP-Serialization-[0-9]*: found p5-PHP-Serialization-0.34nb14 => Full dependency p5-Sys-Mmap-[0-9]*: found p5-Sys-Mmap-0.20nb3 => Full dependency p5-MIME-Lite-[0-9]*: found p5-MIME-Lite-3.033nb3 => Full dependency p5-MIME-tools-[0-9]*: found p5-MIME-tools-5.515nb1 => Full dependency p5-IO-Socket-Multicast-[0-9]*: found p5-IO-Socket-Multicast-1.12nb14 => Full dependency p5-Net-SFTP-Foreign-[0-9]*: found p5-Net-SFTP-Foreign-1.93nb3 => Full dependency p5-SOAP-WSDL-[0-9]*: found p5-SOAP-WSDL-3.004nb2 => Full dependency p5-Crypt-Eksblowfish-[0-9]*: found p5-Crypt-Eksblowfish-0.009nb13 => Full dependency p5-Sys-MemInfo-[0-9]*: found p5-Sys-MemInfo-0.99nb3 => Full dependency p5-XML-Parser-[0-9]*: found p5-XML-Parser-2.47nb1 => Full dependency p5-Number-Bytes-Human-[0-9]*: found p5-Number-Bytes-Human-0.11nb2 => Full dependency p5-libwww-[0-9]*: found p5-libwww-6.77nb2 => Full dependency php82-pdo_mysql-[0-9]*: found php82-pdo_mysql-8.2.26nb2 => Full dependency php82-gd-[0-9]*: found php82-gd-8.2.26nb9 => Full dependency php82-sockets-[0-9]*: found php82-sockets-8.2.26 => Full dependency php82-intl-[0-9]*: found php82-intl-8.2.26nb15 => Full dependency php82-apcu-[0-9]*: found php82-apcu-5.1.24 => Full dependency ap24-php82-[0-9]*: found ap24-php82-8.2.26nb11 => Full dependency apache>=2.4.58nb1<2.5: found apache-2.4.62nb3 => Full dependency bzip2>=1.0.3: found bzip2-1.0.8 => Full dependency curl>=8.11.0nb2: found curl-8.11.0nb2 => Full dependency ffmpeg6>=6.1.1nb1: found ffmpeg6-6.1.2nb5 => Full dependency glib2>=2.76.4nb1: found glib2-2.82.2 => Full dependency jpeg>=9: found jpeg-9f => Full dependency mp4v2>=2.0.0: found mp4v2-5.0.1 => Full dependency mariadb-client>=10.11.4nb1<10.12.0: found mariadb-client-10.11.9nb3 => Full dependency openssl>=3: found openssl-3.3.2 => Full dependency pcre>=8.30nb1: found pcre-8.45 => Full dependency perl>=5.40.0<5.41.0: found perl-5.40.0nb1 => Full dependency php>=8.2.25nb3<8.3: found php-8.2.26 => Full dependency zlib>=1.2.3: found zlib-1.3.1 => Build dependency xcb-proto>=1.4: found xcb-proto-1.17.0nb4 => Build dependency xorgproto>=2016.1: found xorgproto-2024.1 => Full dependency apr>=1.5.0: found apr-1.7.5 => Full dependency apr-util>=1.2.8: found apr-util-1.6.3nb7 => Full dependency brotli>=1.0.1: found brotli-1.1.0 => Full dependency expat>=1.95.7: found expat-2.6.3 => Full dependency fontconfig>=2.11.91: found fontconfig-2.15.0 => Full dependency freetype2>=2.13.0: found freetype2-2.13.3 => Full dependency gettext-lib>=0.22: found gettext-lib-0.22.5 => Full dependency libiconv>=1.9.1: found libiconv-1.17 => Full dependency libX11>=1.1: found libX11-1.8.10 => Full dependency libXau>=1.0: found libXau-1.0.11 => Full dependency libXdmcp>=0.99: found libXdmcp-1.1.5 => Full dependency libffi>=1.20: found libffi-3.4.6 => Full dependency libidn2>=2.0.0: found libidn2-2.3.7 => Full dependency libogg>=1.1: found libogg-1.3.5nb1 => Full dependency libtheora>=1.0alpha3: found libtheora-1.1.1nb2 => Full dependency libunistring>=0.9.3: found libunistring-1.2 => Full dependency libvdpau>=0.3: found libvdpau-1.4nb1 => Full dependency libvorbis>=1.0.1: found libvorbis-1.3.7 => Full dependency libvpx>=1.14.0: found libvpx-1.14.1 => Full dependency libxcb>=1.6: found libxcb-1.17.0 => Full dependency libxml2>=2.6.2: found libxml2-2.12.9nb3 => Full dependency nghttp2>=1.0.0: found nghttp2-1.64.0nb3 => Full dependency pcre2>=10.21: found pcre2-10.44 => Full dependency png>=1.2.4: found png-1.6.44 => Full dependency x264>=20220601: found x264-20231001 => Full dependency xvidcore>=1.0.0: found xvidcore-1.3.7nb1 => Full dependency xz>=5.0.0: found xz-5.6.3 ===> Overriding tools for zoneminder-1.36.33 ===> Extracting for zoneminder-1.36.33 /bin/cp /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/files/httpd-zoneminder.conf /home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/httpd-zoneminder.conf /usr/bin/mv /home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/version /home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/version.txt ===> Patching for zoneminder-1.36.33 => Applying pkgsrc patches for zoneminder-1.36.33 => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-CMakeLists.txt => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-CMakeLists.txt Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-CMakeLists.txt,v 1.2 2024/12/01 13:49:47 gdt Exp $ | |Don't have a file called "version", to avoid conflict with C++20 <version>. | |CMake will detect the MacOS 6-argument sendfile() support and configure |HAVE_SENDFILE, but the code itself doesn't support this interface. So don't |probe for HAVE_SENDFILE if we HAVE_SENDFILE6_SUPPORT. | |Just because librt doesn't exist does not mean that clock_gettime() doesn't |exist, so don't insist on librt being present. Fixes the build on MacOS. | |Let Pkgsrc be responsible for zm.conf into examples, rather than overwriting |the existing configuration file. | |--- CMakeLists.txt.orig 2023-02-23 21:44:01.000000000 +0000 |+++ CMakeLists.txt -------------------------- Patching file CMakeLists.txt using Plan A... Hunk #1 succeeded at 4. Hunk #2 succeeded at 267. Hunk #3 succeeded at 280. Hunk #4 succeeded at 866. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_EventLoop.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_EventLoop.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-dep_RtspServer_src_net_EventLoop.cpp,v 1.1 2024/12/01 13:49:47 gdt Exp $ | |Add NetBSD to BSD conditional. | |\todo File upstream PR. | |--- dep/RtspServer/src/net/EventLoop.cpp.orig 2024-01-14 21:16:28.747478445 +0000 |+++ dep/RtspServer/src/net/EventLoop.cpp -------------------------- Patching file dep/RtspServer/src/net/EventLoop.cpp using Plan A... Hunk #1 succeeded at 60. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_Socket.h => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_Socket.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-dep_RtspServer_src_net_Socket.h,v 1.1 2024/12/01 13:49:47 gdt Exp $ | |Extend BSDish OS detection to NetBSD. | |Not yet filed upstream. | |--- dep/RtspServer/src/net/Socket.h.orig 2024-01-14 21:10:13.216456825 +0000 |+++ dep/RtspServer/src/net/Socket.h -------------------------- Patching file dep/RtspServer/src/net/Socket.h using Plan A... Hunk #1 succeeded at 4. Hunk #2 succeeded at 17. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_SocketUtil.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_net_SocketUtil.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-dep_RtspServer_src_net_SocketUtil.cpp,v 1.1 2024/12/01 13:49:47 gdt Exp $ | |Add NetBSD to BSD conditional. | |\todo File upstream PR. | |--- dep/RtspServer/src/net/SocketUtil.cpp.orig 2024-01-14 21:17:15.225438102 +0000 |+++ dep/RtspServer/src/net/SocketUtil.cpp -------------------------- Patching file dep/RtspServer/src/net/SocketUtil.cpp using Plan A... Hunk #1 succeeded at 23. Hunk #2 succeeded at 34. Hunk #3 succeeded at 45. Hunk #4 succeeded at 168. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_xop_rtsp.h => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-dep_RtspServer_src_xop_rtsp.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-dep_RtspServer_src_xop_rtsp.h,v 1.1 2024/12/01 13:49:47 gdt Exp $ | |Add NetBSD to BSD conditional. | |\todo File upstream PR. | |--- dep/RtspServer/src/xop/rtsp.h.orig 2024-01-14 21:21:34.574730494 +0000 |+++ dep/RtspServer/src/xop/rtsp.h -------------------------- Patching file dep/RtspServer/src/xop/rtsp.h using Plan A... Hunk #1 succeeded at 51. Hunk #2 succeeded at 59. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_ConfigData.pm.in => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_ConfigData.pm.in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_ZoneMinder_lib_ZoneMinder_ConfigData.pm.in,v 1.2 2024/12/01 13:49:48 gdt Exp $ | |Inhibit a couple of "phone home" options that are enabled by default. These |should be opt-in rather than opt-out. | |The ConfigData.pm module determines what the default setting is for new |options during an upgrade as well as on an initial installation. | |--- scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in.orig 2018-12-08 14:22:36.000000000 +0000 |+++ scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in -------------------------- Patching file scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in using Plan A... Hunk #1 succeeded at 2634 (offset -59 lines). done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm,v 1.4 2024/12/01 13:49:48 gdt Exp $ | |Perl doesn't really support "> /dev/null", so just capture into $output. | |% ktruss -i perl -e 'qx(does-not-exist >/dev/null 2>&1);'|egrep 'dup2.*2' |does-not-exist: not found |% ktruss -i perl -e 'qx(does-not-exist 2>&1);'|egrep 'dup2.*2' | 16954 1 perl dup2(0x1, 0x2) = 2 | |The problem is that, whilst Perl supports 2>&1 internally (and does not use |the shell at all) if there is no other redirection, it does not support file |redirection - it defers that (and therefore necessarily must also defer the |stderr redirection) to the shell. If the system's shell happens to report |"Not found" errors before redirection is processed (E.g. NetBSD shell) then |the stderr redirection is happening too late to be captured. | |That leads to unintended errors reported on stderr - primarily if sudo is not |installed on the system, or not in the $PATH. | |Use the -m parameter to su, as ZM_WEB_USER shouldn't require a login shell. | |--- scripts/ZoneMinder/lib/ZoneMinder/General.pm.orig 2023-02-23 21:44:01.000000000 +0000 |+++ scripts/ZoneMinder/lib/ZoneMinder/General.pm -------------------------- Patching file scripts/ZoneMinder/lib/ZoneMinder/General.pm using Plan A... Hunk #1 succeeded at 92. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm,v 1.3 2024/12/01 13:49:48 gdt Exp $ | |Adjust for (more) modern perl. | |Not submitted upstream because pkgsrc is woefully out of date. | |--- scripts/ZoneMinder/lib/ZoneMinder/Memory/Shared.pm.orig 2023-02-23 21:44:01.000000000 +0000 |+++ scripts/ZoneMinder/lib/ZoneMinder/Memory/Shared.pm -------------------------- Patching file scripts/ZoneMinder/lib/ZoneMinder/Memory/Shared.pm using Plan A... Hunk #1 succeeded at 158. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_zm_in => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_zm_in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_zm_in,v 1.6 2024/12/01 13:49:48 gdt Exp $ | |/etc/rc.d/init.d/functions doesn't commonly exist. | |The LOCKFILE feature appears unused, and requires a /var/lock/subsys directory |we don't have. | |--- scripts/zm.in.orig 2016-02-03 18:40:30.000000000 +0000 |+++ scripts/zm.in -------------------------- Patching file scripts/zm.in using Plan A... Hunk #1 succeeded at 7. Hunk #2 succeeded at 54. Hunk #3 succeeded at 66. Hunk #4 succeeded at 107. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_zmpkg_pl_in => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-scripts_zmpkg_pl_in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_zmpkg_pl_in,v 1.2 2024/12/01 13:49:48 gdt Exp $ | |The systemd check in zmpkg.pl does not work, even on systems that use |systemd. It fails to start, eventually timing out, if there is any |parent process between zmpkg.pl and systemd or init - such as |/etc/init.d/zoneminder. But everything does seem to work ok from |systemd without this roundabout code anyway, so just inhibit it. | |Add sleep to avoid suspected race condition. | |\todo After catching up, actually debug and/or send upstream. | |--- scripts/zmpkg.pl.in.orig 2018-12-08 14:22:36.000000000 +0000 |+++ scripts/zmpkg.pl.in -------------------------- Patching file scripts/zmpkg.pl.in using Plan A... Hunk #1 succeeded at 140 (offset -3 lines). Hunk #2 succeeded at 200 (offset 9 lines). done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__event.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__event.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__event.cpp,v 1.5 2024/12/01 13:49:48 gdt Exp $ | |zoneminder uses %ld for time_t, which is troublesome on NetBSD arm and |presumably i386. (Note that there are multiple patch files for the |same issue.) | |Not yet sent upstream -- needs update to latest release first, where |it might be fixed, or the patch might simply need to be rebased. |Also, this fix is expedient and probably a better fix is appropriate. | |Avoid sendfile code when sendfile doesn't exist. | |--- src/zm_event.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_event.cpp -------------------------- Patching file src/zm_event.cpp using Plan A... Hunk #1 succeeded at 113. Hunk #2 succeeded at 164. Hunk #3 succeeded at 373. Hunk #4 succeeded at 526. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__eventstream.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__eventstream.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__eventstream.cpp,v 1.1 2024/12/01 13:49:48 gdt Exp $ | |Only include local sendfile header if there is sendfile support, to |avoid #error for no sendfile implementation. | |--- src/zm_eventstream.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_eventstream.cpp -------------------------- Patching file src/zm_eventstream.cpp using Plan A... Hunk #1 succeeded at 43. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__monitor.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__monitor.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__monitor.cpp,v 1.4 2024/12/01 13:49:48 gdt Exp $ | |The shmat() error return is (apparently) -1 as a pointer. Some compilers |(E.g. clang on MacOS) refuse to consider testing if a pointer is less than |zero as legal code. Fix compilation by converting to explicit tests for |particular values that might make sense. | |Avoid type error (suseconds_t is not long). To be addressed upstream once caught up. | |--- src/zm_monitor.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_monitor.cpp -------------------------- Patching file src/zm_monitor.cpp using Plan A... Hunk #1 succeeded at 200. Hunk #2 succeeded at 236. Hunk #3 succeeded at 2649. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__packet.h => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__packet.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__packet.h,v 1.1 2024/12/01 13:49:48 gdt Exp $ | |Add NetBSD to BSD conditional. | |\todo File upstream PR. | |--- src/zm_packet.h.orig 2024-01-14 21:29:59.095197872 +0000 |+++ src/zm_packet.h -------------------------- Patching file src/zm_packet.h using Plan A... Hunk #1 succeeded at 32. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__rtp__source.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__rtp__source.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__rtp__source.cpp,v 1.5 2024/12/01 13:49:48 gdt Exp $ | |Fix type issue with tv_sec; see earlier patches. | |--- src/zm_rtp_source.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_rtp_source.cpp -------------------------- Patching file src/zm_rtp_source.cpp using Plan A... Hunk #1 succeeded at 196. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__utils.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm__utils.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm__utils.cpp,v 1.4 2024/12/01 13:49:48 gdt Exp $ | |Avoid assuming linux on arm. For now, assume neon. | |Fix time types (sizes). | |--- src/zm_utils.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_utils.cpp -------------------------- Patching file src/zm_utils.cpp using Plan A... Hunk #1 succeeded at 183. Hunk #2 succeeded at 231. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_comms_h => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_comms_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm_comms_h,v 1.6 2024/12/01 13:49:48 gdt Exp $ | |extern "C" system headers. | |Include missing system headers for NetBSD. | |To fix Linux readv/writev, back-port: |https://github.com/ZoneMinder/zoneminder/commit/417421b1d869d1b71c8ec1a1e3b082fcede6ce58#diff-484f666f58ec13f38fa402143f2f6ad8e63a013909d3941ffbb3d66745b20c8d | |--- src/zm_comms.h.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_comms.h -------------------------- Patching file src/zm_comms.h using Plan A... Hunk #1 succeeded at 22. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_logger_cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_logger_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm_logger_cpp,v 1.8 2024/12/01 13:49:48 gdt Exp $ | |Use libgen.h for basename. | |Kludge around const for basename. | |If the system has syscall() but not SYS_gettid [E.g. NetBSD], don't attempt |to use SYS_gettid. | |Fix time types (sizes). | |--- src/zm_logger.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_logger.cpp -------------------------- Patching file src/zm_logger.cpp using Plan A... Hunk #1 succeeded at 439. Hunk #2 succeeded at 534. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_remote_camera_h => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_remote_camera_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm_remote_camera_h,v 1.5 2024/12/01 13:49:48 gdt Exp $ | |Declare sockaddr_in. | |--- src/zm_remote_camera.h.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zm_remote_camera.h -------------------------- Patching file src/zm_remote_camera.h using Plan A... Hunk #1 succeeded at 24. done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_signal_cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zm_signal_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zm_signal_cpp,v 1.4 2024/12/01 13:49:48 gdt Exp $ | |Don't assume machine-dependent IP register details are available for any |platform except Linux. Only Linux is sure to have this style of mcontext_t. | |Resolves build on systems that have ucontext_t but an mcontext_t that |doesn't look like Linux. | |--- src/zm_signal.cpp.orig 2018-12-08 14:22:36.000000000 +0000 |+++ src/zm_signal.cpp -------------------------- Patching file src/zm_signal.cpp using Plan A... Hunk #1 succeeded at 65 (offset -1 lines). done => Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zmu.cpp => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/security/zoneminder/patches/patch-src_zmu.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_zmu.cpp,v 1.5 2024/12/01 13:49:48 gdt Exp $ | |time types | |--- src/zmu.cpp.orig 2023-02-23 21:44:01.000000000 +0000 |+++ src/zmu.cpp -------------------------- Patching file src/zmu.cpp using Plan A... Hunk #1 succeeded at 542. Hunk #2 succeeded at 777. Hunk #3 succeeded at 791. done ===> Creating toolchain wrappers for zoneminder-1.36.33 /usr/bin/mkdir -p /home/pbulk/build/security/zoneminder/work/.buildlink/bin && /usr/bin/ln -fs ../sbin/apxs /home/pbulk/build/security/zoneminder/work/.buildlink/bin/apxs /usr/bin/mkdir -p /home/pbulk/build/security/zoneminder/work/.buildlink/bin && /usr/bin/ln -fs apr-1-config /home/pbulk/build/security/zoneminder/work/.buildlink/bin/apr-config /usr/bin/mkdir -p /home/pbulk/build/security/zoneminder/work/.buildlink/bin && /usr/bin/ln -fs apu-1-config /home/pbulk/build/security/zoneminder/work/.buildlink/bin/apu-config ===> Configuring for zoneminder-1.36.33 => Setting paths in Apache configuration file. => Adjusting paths in scripts. /usr/bin/find /home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33 -name "*.pm*.orig" -type f | /usr/bin/xargs /usr/bin/rm -f => Checking for portability problems in extracted files CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- The C compiler identification is GNU 13.3.0 -- The CXX compiler identification is GNU 13.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/pbulk/build/security/zoneminder/work/.cwrapper/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/pbulk/build/security/zoneminder/work/.cwrapper/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected compiler: /home/pbulk/build/security/zoneminder/work/.cwrapper/bin/gcc -- Performing Test HAVE_SENDFILE4_SUPPORT -- Performing Test HAVE_SENDFILE4_SUPPORT - Failed -- Performing Test HAVE_SENDFILE7_SUPPORT -- Performing Test HAVE_SENDFILE7_SUPPORT - Failed -- Performing Test HAVE_SENDFILE6_SUPPORT -- Performing Test HAVE_SENDFILE6_SUPPORT - Failed -- Building man pages: Yes (default) -- Looking for libv4l1-videodev.h -- Looking for libv4l1-videodev.h - not found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - not found -- Looking for execinfo.h -- Looking for execinfo.h - found -- Looking for backtrace -- Looking for backtrace - found -- Looking for backtrace_symbols -- Looking for backtrace_symbols - found -- Looking for ucontext.h -- Looking for ucontext.h - found -- Looking for sys/sendfile.h -- Looking for sys/sendfile.h - found -- Looking for sys/syscall.h -- Looking for sys/syscall.h - found -- Looking for syscall -- Looking for syscall - found -- Looking for sendfile -- Looking for sendfile - not found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of siginfo_t -- Check size of siginfo_t - done -- Check size of ucontext_t -- Check size of ucontext_t - failed -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.3.1") -- Looking for zlib.h -- Looking for zlib.h - found -- Found CURL: /opt/pkg/lib/libcurl.so (found version "8.11.0") -- Looking for curl/curl.h -- Looking for curl/curl.h - found -- Found JPEG: /opt/pkg/lib/libjpeg.so (found version "90") -- Looking for include files stdio.h, jpeglib.h -- Looking for include files stdio.h, jpeglib.h - found -- Could NOT find LibJWT (missing: LIBJWT_INCLUDE_DIR LIBJWT_LIBRARY) -- Found OpenSSL: /opt/pkg/lib/libcrypto.so (found version "3.3.2") -- Looking for openssl/md5.h -- Looking for openssl/md5.h - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pcre.h -- Looking for pcre.h - found -- Looking for mysql.h -- Looking for mysql.h - found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - found -- Looking for libavcodec/avcodec.h -- Looking for libavcodec/avcodec.h - found -- Looking for libavdevice/avdevice.h -- Looking for libavdevice/avdevice.h - found -- Looking for libavutil/avutil.h -- Looking for libavutil/avutil.h - found -- Looking for libavutil/mathematics.h -- Looking for libavutil/mathematics.h - found -- Looking for libavutil/hwcontext.h -- Looking for libavutil/hwcontext.h - found -- Looking for libswscale/swscale.h -- Looking for libswscale/swscale.h - found -- Looking for libswresample/swresample.h -- Looking for libswresample/swresample.h - found CMake Warning (dev) at CMakeLists.txt:664 (message): Video 4 Linux headers weren't found - Analog and USB camera support will not be available This warning is for project developers. Use -Wno-dev to suppress it. -- Checking prototype MD5 for HAVE_MD5_OPENSSL - True -- Found Perl: /opt/pkg/bin/perl (found version "5.40.0") -- Checking for perl module Sys::Syslog -- Checking for perl module Sys::Syslog - found at /opt/pkg/lib/perl5/5.40.0/x86_64-solaris-thread-multi-64/Sys/Syslog.pm -- Checking for perl module DBI -- Checking for perl module DBI - found at /opt/pkg/lib/perl5/vendor_perl/5.40.0/x86_64-solaris-thread-multi-64/DBI.pm -- Checking for perl module DBD::mysql -- Checking for perl module DBD::mysql - found at /opt/pkg/lib/perl5/vendor_perl/5.40.0/x86_64-solaris-thread-multi-64/DBD/mysql.pm -- Checking for perl module Getopt::Long -- Checking for perl module Getopt::Long - found at /opt/pkg/lib/perl5/5.40.0/Getopt/Long.pm -- Checking for perl module Time::HiRes -- Checking for perl module Time::HiRes - found at /opt/pkg/lib/perl5/5.40.0/x86_64-solaris-thread-multi-64/Time/HiRes.pm -- Checking for perl module Date::Manip -- Checking for perl module Date::Manip - found at /opt/pkg/lib/perl5/vendor_perl/5.40.0/Date/Manip.pm -- Checking for perl module LWP::UserAgent -- Checking for perl module LWP::UserAgent - found at /opt/pkg/lib/perl5/vendor_perl/5.40.0/LWP/UserAgent.pm -- Checking for perl module ExtUtils::MakeMaker -- Checking for perl module ExtUtils::MakeMaker - found at /opt/pkg/lib/perl5/5.40.0/ExtUtils/MakeMaker.pm -- Checking for perl module Sys::Mmap -- Checking for perl module Sys::Mmap - found at /opt/pkg/lib/perl5/vendor_perl/5.40.0/x86_64-solaris-thread-multi-64/Sys/Mmap.pm -- Found PerlModules: TRUE -- Using web user: www -- Using web group: www -- The ASM compiler identification is GNU -- Found assembler: /home/pbulk/build/security/zoneminder/work/.cwrapper/bin/gcc CMake Deprecation Warning at dep/RtspServer/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Building unit tests: No (default) -- Optional libraries found: zlib cURL OpenSSL PCRE AVFormat AVCodec AVDevice AVUtil SWScale SWResample -- Optional libraries not found: LIBJWT GCrypt libVLC libVNC -- Running ZoneMinder configuration generator Generating '/home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/cmake-pkgsrc-build/zm_config_defines.h' Updating '/home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/cmake-pkgsrc-build/db/zm_create.sql' -- ZoneMinder configuration generator completed successfully -- Configuring done (63.1s) -- Generating done (0.3s) CMake Warning: Manually-specified variables were not used by the project: FETCHCONTENT_FULLY_DISCONNECTED GNUTLS_LIBRARIES ZM_DIR_IMAGES -- Build files have been written to: /home/pbulk/build/security/zoneminder/work/zoneminder-1.36.33/cmake-pkgsrc-build