+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/megacmd-2.0.0nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/megacmd-2.0.0nb2/work.log
=> Checksum BLAKE2s OK for megacmd-2.0.0.tar.gz
=> Checksum SHA512 OK for megacmd-2.0.0.tar.gz
=> Checksum BLAKE2s OK for meganz-sdk-v8.3.1.tar.gz
=> Checksum SHA512 OK for meganz-sdk-v8.3.1.tar.gz
===> Installing dependencies for megacmd-2.0.0nb2
==========================================================================
The following variables will affect the build process of this package,
megacmd-2.0.0nb2.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/openssl/private

Based on these variables, the following variables have been set:

        * CURSES_TYPE = ncurses
        * TERMCAP_TYPE = curses

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 git-base-[0-9]*: found git-base-2.49.0nb2
=> Tool dependency cmake>=0: found cmake-3.31.7nb2
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.4.3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency cryptopp>=8.7.0nb1: found cryptopp-8.9.0
=> Full dependency curl>=8.13.0nb2: found curl-8.13.0nb2
=> Full dependency icu>=77.1: found icu-77.1
=> Full dependency libcares>=1.6.0: found libcares-1.34.5
=> Full dependency libsodium>=0.3: found libsodium-1.0.20
=> Full dependency libuv>=1.6: found libuv-1.50.0
=> Full dependency pcre>=8.30nb1: found pcre-8.45
=> Full dependency readline>=6.0: found readline-8.2nb2
=> Full dependency sqlite3>=3.49.1nb3: found sqlite3-3.49.1nb3
=> Full dependency gettext-lib>=0.22: found gettext-lib-0.22.5
=> Full dependency libiconv>=1.9.1: found libiconv-1.17
=> Full dependency libidn2>=2.0.0: found libidn2-2.3.7
=> Full dependency libunistring>=0.9.3: found libunistring-1.2
=> Full dependency libxml2>=2.6.2: found libxml2-2.14.2nb1
=> Full dependency ncurses>=5.3nb1: found ncurses-6.5
=> Full dependency nghttp2>=1.0.0: found nghttp2-1.65.0nb1
=> Full dependency openssl>=1.1.1: found openssl-3.4.1
=> Full dependency xz>=5.0.0: found xz-5.8.1
=> Full dependency zlib>=1.1.4: found zlib-1.3.1
===> Overriding tools for megacmd-2.0.0nb2
===> Extracting for megacmd-2.0.0nb2
===> Patching for megacmd-2.0.0nb2
=> Applying pkgsrc patches for megacmd-2.0.0nb2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/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.1 2025/02/15 07:40:13 wiz Exp $
|
|* Use system dependencies instead of vcpkg
|* Fix install directories
|* Install inotify conf file only on Linux
|
|--- CMakeLists.txt.orig	2025-01-30 14:04:12.000000000 +0100
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 26.
Hunk #2 succeeded at 40.
Hunk #3 succeeded at 135.
Hunk #4 succeeded at 458.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-build_cmake_modules_megacmd__libraries.cmake
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-build_cmake_modules_megacmd__libraries.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-build_cmake_modules_megacmd__libraries.cmake,v 1.1 2025/02/15 07:40:13 wiz Exp $
|
|* Fix used pcre library name
|
|--- build/cmake/modules/megacmd_libraries.cmake.orig	2025-01-30 14:04:12.000000000 +0100
|+++ build/cmake/modules/megacmd_libraries.cmake
--------------------------
Patching file build/cmake/modules/megacmd_libraries.cmake using Plan A...
Hunk #1 succeeded at 16.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_cmake_modules_sdklib__libraries.cmake
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_cmake_modules_sdklib__libraries.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-sdk_cmake_modules_sdklib__libraries.cmake,v 1.1 2025/02/15 07:40:13 wiz Exp $
|
|* Fix to find libcrypto++
|* Add libinotify check
|
|--- sdk/cmake/modules/sdklib_libraries.cmake.orig	2025-01-24 13:56:57.000000000 +0100
|+++ sdk/cmake/modules/sdklib_libraries.cmake
--------------------------
Patching file sdk/cmake/modules/sdklib_libraries.cmake using Plan A...
Hunk #1 succeeded at 95.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_cmake_modules_sdklib__target.cmake
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_cmake_modules_sdklib__target.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-sdk_cmake_modules_sdklib__target.cmake,v 1.1 2025/02/15 07:40:13 wiz Exp $
|
|* On gcc-10 std::filesystem is in stdc++
|
|--- sdk/cmake/modules/sdklib_target.cmake.orig	2025-02-07 10:00:44.872621812 +0100
|+++ sdk/cmake/modules/sdklib_target.cmake
--------------------------
Patching file sdk/cmake/modules/sdklib_target.cmake using Plan A...
Hunk #1 succeeded at 358.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_include_mega_posix_megafs.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_include_mega_posix_megafs.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-sdk_include_mega_posix_megafs.h,v 1.2 2025/02/15 07:40:13 wiz Exp $
|
|* Use FSACCESS_CLASS of linux on BSDs
|
|--- sdk/include/mega/posix/megafs.h.orig	2025-02-13 10:44:28.677854322 +0100
|+++ sdk/include/mega/posix/megafs.h
--------------------------
Patching file sdk/include/mega/posix/megafs.h using Plan A...
Hunk #1 succeeded at 192.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_src_posix_fs.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-sdk_src_posix_fs.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-sdk_src_posix_fs.cpp,v 1.3 2025/02/15 07:40:14 wiz Exp $
|
|* Fix build on NetBSD, use statvfs
|* Don't use mntent features on BSDs
|* O_NOATIME not available on BSDs
|* BSDs use LinuxFileSystemAccess
|
|--- sdk/src/posix/fs.cpp.orig	2025-01-24 13:56:57.000000000 +0100
|+++ sdk/src/posix/fs.cpp
--------------------------
Patching file sdk/src/posix/fs.cpp using Plan A...
Hunk #1 succeeded at 22.
Hunk #2 succeeded at 33.
Hunk #3 succeeded at 822.
Hunk #4 succeeded at 883.
Hunk #5 succeeded at 1643.
Hunk #6 succeeded at 1809.
Hunk #7 succeeded at 2069.
Hunk #8 succeeded at 2238.
Hunk #9 succeeded at 2267.
Hunk #10 succeeded at 2344.
Hunk #11 succeeded at 2355.
Hunk #12 succeeded at 2372.
Hunk #13 succeeded at 2432.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdcommonutils.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdcommonutils.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_megacmdcommonutils.cpp,v 1.1 2025/02/15 07:40:14 wiz Exp $
|
|* BSDs use the functions of linux
|
|--- src/megacmdcommonutils.cpp.orig	2025-02-07 09:43:13.320748794 +0100
|+++ src/megacmdcommonutils.cpp
--------------------------
Patching file src/megacmdcommonutils.cpp using Plan A...
Hunk #1 succeeded at 1128.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdcommonutils.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdcommonutils.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_megacmdcommonutils.h,v 1.1 2025/02/15 07:40:14 wiz Exp $
|
|* BSDs use the functions of linux
|
|--- src/megacmdcommonutils.h.orig	2025-02-07 09:44:39.977015171 +0100
|+++ src/megacmdcommonutils.h
--------------------------
Patching file src/megacmdcommonutils.h using Plan A...
Hunk #1 succeeded at 269.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdshell_megacmdshellcommunications.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd/patches/patch-src_megacmdshell_megacmdshellcommunications.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_megacmdshell_megacmdshellcommunications.cpp,v 1.2 2025/02/15 07:40:14 wiz Exp $
|
|* Fix include on BSDs
|
|--- src/megacmdshell/megacmdshellcommunications.cpp.orig	2024-05-20 12:29:43.000000000 +0000
|+++ src/megacmdshell/megacmdshellcommunications.cpp
--------------------------
Patching file src/megacmdshell/megacmdshellcommunications.cpp using Plan A...
Hunk #1 succeeded at 44 (offset -11 lines).
done
===> Creating toolchain wrappers for megacmd-2.0.0nb2
===> Configuring for megacmd-2.0.0nb2
=> Replacing sh interpreter in src/client/mega-*.
=> Checking for portability problems in extracted files
-- Found Git: /opt/pkg/bin/git (found version "2.49.0")
fatal: not a git repository (or any of the parent directories): .git
-- Using VCPKG_ROOT = 
-- Using system dependencies
-- 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/net/megacmd/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/net/megacmd/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building MEGAcmd v2.0.0
-- [SDKlib] is building under project [MEGAcmd] Install target, examples and tests will not be enabled by default.
-- Generator: Unix Makefiles
-- Target System Processor: i386
-- Host System Processor: i386
-- Build type set to: Release
-- Building SDKlib v8.3.1
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for glob
-- Looking for glob - found
-- Looking for aio_write,
-- Looking for aio_write, - not found
-- Found PkgConfig: /home/pbulk/build/net/megacmd/work/.tools/bin/pkg-config (found version "2.4.3")
-- Checking for module 'libcryptopp'
--   Found libcryptopp, version 8.9
-- Checking for module 'libinotify'
--   Package 'libinotify' not found
CMake Error at /opt/pkg/share/cmake-3.31/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:

   - libinotify

Call Stack (most recent call first):
  /opt/pkg/share/cmake-3.31/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  sdk/cmake/modules/sdklib_libraries.cmake:101 (pkg_check_modules)
  sdk/cmake/modules/sdklib_target.cmake:358 (load_sdklib_libraries)
  sdk/CMakeLists.txt:153 (include)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
bmake[1]: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd
*** Error code 1

Stop.
bmake: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/megacmd