+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/gappa-1.3.5/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/gappa-1.3.5/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for gappa-1.3.5.tar.gz
=> Checksum SHA512 OK for gappa-1.3.5.tar.gz
===> Installing dependencies for gappa-1.3.5
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency boost-headers-1.83.*: found boost-headers-1.83.0
=> Build dependency gcc13>=13.1.0: found gcc13-13.2.0
=> Full dependency gcc13-libs>=13.2.0: found gcc13-libs-13.2.0
=> Full dependency gmp>=5.0.1: found gmp-6.3.0
=> Full dependency mpfr>=4.0.0: found mpfr-4.2.1
===> Overriding tools for gappa-1.3.5
===> Extracting for gappa-1.3.5
===> Patching for gappa-1.3.5
=> Applying pkgsrc patches for gappa-1.3.5
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/math/gappa/patches/patch-Remakefile.in
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/math/gappa/patches/patch-Remakefile.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Remakefile.in,v 1.2 2020/07/17 17:30:13 riastradh Exp $
|
|Install to DESTDIR.
|
|https://gitlab.inria.fr/gappa/gappa/-/commit/ba4dbb3ef66bbdd9d1f3d660a293515df0b57b43
|
|--- Remakefile.in.orig	2019-05-24 12:52:39.000000000 +0000
|+++ Remakefile.in
--------------------------
Patching file Remakefile.in using Plan A...
Hunk #1 succeeded at 136.
done
===> Creating toolchain wrappers for gappa-1.3.5
===> Configuring for gappa-1.3.5
=> 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 whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for x86_64-sun-solaris2.11-gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -ll
checking whether yytext is a pointer... yes
checking for bison... no
checking for byacc... no
checking how to run the C preprocessor... gcc -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for __gmpz_init in -lgmp... yes
checking for mpfr_snprintf in -lmpfr... yes
checking for Boost (>=1.32)... yes
checking for tr1/unordered_map... yes
configure: building remake...
remake.cpp:789:8: error: 'log' does not name a type
  789 | static log debug;
      |        ^~~
remake.cpp: In destructor 'log_auto_close::~log_auto_close()':
remake.cpp:799:21: error: 'debug' was not declared in this scope
  799 |                 if (debug.active && still_open) debug(false) << "done\n";
      |                     ^~~~~
remake.cpp: In function 'void load_dependencies(std::istream&)':
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:1440:17: note: in expansion of macro 'DEBUG'
 1440 |                 DEBUG << "reading dependencies of target " << targets.front() << std::endl;
      |                 ^~~~~
remake.cpp: In function 'void load_dependencies()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:1461:9: note: in expansion of macro 'DEBUG_open'
 1461 |         DEBUG_open << "Loading database... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1465:17: note: in expansion of macro 'DEBUG_close'
 1465 |                 DEBUG_close << "not found\n";
      |                 ^~~~~~~~~~~
remake.cpp: In function 'void save_dependencies()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:1477:9: note: in expansion of macro 'DEBUG_open'
 1477 |         DEBUG_open << "Saving database... ";
      |         ^~~~~~~~~~
remake.cpp: In function 'void load_rule(std::istream&, const std::string&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:1591:9: note: in expansion of macro 'DEBUG_open'
 1591 |         DEBUG_open << "Reading rule for target " << first << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1595:17: note: in expansion of macro 'DEBUG_close'
 1595 |                 DEBUG_close << "failed\n";
      |                 ^~~~~~~~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:1606:14: note: in expansion of macro 'DEBUG'
 1606 |         else DEBUG << "actual target: " << targets.front() << std::endl;
      |              ^~~~~
remake.cpp: In function 'void load_rules(const std::string&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:1725:9: note: in expansion of macro 'DEBUG_open'
 1725 |         DEBUG_open << "Loading rules... ";
      |         ^~~~~~~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:1759:33: note: in expansion of macro 'DEBUG'
 1759 |                                 DEBUG << "Assignment to variable " << name << std::endl;
      |                                 ^~~~~
remake.cpp: In function 'const status_t& get_status(const std::string&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:1931:9: note: in expansion of macro 'DEBUG_open'
 1931 |         DEBUG_open << "Checking status of " << target << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1938:25: note: in expansion of macro 'DEBUG_close'
 1938 |                         DEBUG_close << "missing\n";
      |                         ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1943:17: note: in expansion of macro 'DEBUG_close'
 1943 |                 DEBUG_close << "up-to-date\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1950:17: note: in expansion of macro 'DEBUG_close'
 1950 |                 DEBUG_close << "forcefully obsolete\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1964:45: note: in expansion of macro 'DEBUG_close'
 1964 |                         if (st == Uptodate) DEBUG_close << *k << " missing\n";
      |                                             ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1978:25: note: in expansion of macro 'DEBUG_close'
 1978 |                         DEBUG_close << "older than " << *k << std::endl;
      |                         ^~~~~~~~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:1984:25: note: in expansion of macro 'DEBUG'
 1984 |                         DEBUG << "obsolete dependency " << *k << std::endl;
      |                         ^~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:1988:29: note: in expansion of macro 'DEBUG_close'
 1988 |         if (st == Uptodate) DEBUG_close << "all siblings up-to-date\n";
      |                             ^~~~~~~~~~~
remake.cpp: In function 'void update_status(const std::string&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2004:9: note: in expansion of macro 'DEBUG_open'
 2004 |         DEBUG_open << "Rechecking status of " << target << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2011:17: note: in expansion of macro 'DEBUG_close'
 2011 |                 DEBUG_close << "possibly remade\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2017:17: note: in expansion of macro 'DEBUG_close'
 2017 |                 DEBUG_close << "missing\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2022:17: note: in expansion of macro 'DEBUG_close'
 2022 |                 DEBUG_close << "remade\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2027:17: note: in expansion of macro 'DEBUG_close'
 2027 |                 DEBUG_close << "unchanged\n";
      |                 ^~~~~~~~~~~
remake.cpp: In function 'bool still_need_rebuild(const std::string&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2040:9: note: in expansion of macro 'DEBUG_open'
 2040 |         DEBUG_open << "Rechecking obsoleteness of " << target << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2054:9: note: in expansion of macro 'DEBUG_close'
 2054 |         DEBUG_close << "no longer obsolete\n";
      |         ^~~~~~~~~~~
remake.cpp: In function 'void complete_job(int, bool, bool)':
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:2071:9: note: in expansion of macro 'DEBUG'
 2071 |         DEBUG << "Completing job " << job_id << '\n';
      |         ^~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:2098:33: note: in expansion of macro 'DEBUG'
 2098 |                                 DEBUG << "Removing " << *j << '\n';
      |                                 ^~~~~
remake.cpp: In function 'status_e run_script(int, const job_t&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2214:9: note: in expansion of macro 'DEBUG_open'
 2214 |         DEBUG_open << "Starting script for job " << job_id << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2217:17: note: in expansion of macro 'DEBUG_close'
 2217 |                 DEBUG_close << "no script\n";
      |                 ^~~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2225:17: note: in expansion of macro 'DEBUG_close'
 2225 |                 DEBUG_close << "failed\n";
      |                 ^~~~~~~~~~~
remake.cpp: In function 'status_e start(const std::string&, std::__cxx11::list<client_t>::iterator&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2319:9: note: in expansion of macro 'DEBUG_open'
 2319 |         DEBUG_open << "Starting job " << job_id << " for " << target << "... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2325:17: note: in expansion of macro 'DEBUG_close'
 2325 |                 DEBUG_close << "failed\n";
      |                 ^~~~~~~~~~~
remake.cpp: In function 'void complete_request(client_t&, bool)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2376:9: note: in expansion of macro 'DEBUG_open'
 2376 |         DEBUG_open << "Completing request from client of job " << client.job_id << "... ";
      |         ^~~~~~~~~~
remake.cpp: In function 'bool handle_clients()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2433:9: note: in expansion of macro 'DEBUG_open'
 2433 |         DEBUG_open << "Handling client requests... ";
      |         ^~~~~~~~~~
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2442:17: note: in expansion of macro 'DEBUG_open'
 2442 |                 DEBUG_open << "Handling client from job " << i->job_id << "... ";
      |                 ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2522:25: note: in expansion of macro 'DEBUG_close'
 2522 |                         DEBUG_close << (i->failed ? "failed\n" : "finished\n");
      |                         ^~~~~~~~~~~
remake.cpp: In function 'void create_server()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2558:9: note: in expansion of macro 'DEBUG_open'
 2558 |         DEBUG_open << "Creating server... ";
      |         ^~~~~~~~~~
remake.cpp: In function 'void accept_client()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2629:9: note: in expansion of macro 'DEBUG_open'
 2629 |         DEBUG_open << "Handling client request... ";
      |         ^~~~~~~~~~
remake.cpp:805:58: error: 'debug' was not declared in this scope
  805 | #define DEBUG_close if ((auto_close.still_open = false), debug.active) debug(false)
      |                                                          ^~~~~
remake.cpp:2659:17: note: in expansion of macro 'DEBUG_close'
 2659 |                 DEBUG_close << "failed\n";
      |                 ^~~~~~~~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:2688:9: note: in expansion of macro 'DEBUG'
 2688 |         DEBUG << "receiving request from job " << job_id << std::endl;
      |         ^~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:2710:25: note: in expansion of macro 'DEBUG'
 2710 |                         DEBUG << "adding dependency " << target << " to job\n";
      |                         ^~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:2719:25: note: in expansion of macro 'DEBUG'
 2719 |                         DEBUG << "adding variable " << var << " to job\n";
      |                         ^~~~~
remake.cpp: In function 'void server_loop()':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2765:17: note: in expansion of macro 'DEBUG_open'
 2765 |                 DEBUG_open << "Handling events... ";
      |                 ^~~~~~~~~~
remake.cpp: In function 'void client_mode(char*, const string_list&)':
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2879:9: note: in expansion of macro 'DEBUG_open'
 2879 |         DEBUG_open << "Connecting to server... ";
      |         ^~~~~~~~~~
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2918:17: note: in expansion of macro 'DEBUG_open'
 2918 |                 DEBUG_open << "Sending target " << *i << "... ";
      |                 ^~~~~~~~~~
remake.cpp:804:51: error: 'debug' was not declared in this scope
  804 | #define DEBUG_open log_auto_close auto_close; if (debug.active) debug(true)
      |                                                   ^~~~~
remake.cpp:2929:17: note: in expansion of macro 'DEBUG_open'
 2929 |                 DEBUG_open << "Sending variable " << i->first << "... ";
      |                 ^~~~~~~~~~
remake.cpp: In function 'int main(int, char**)':
remake.cpp:3004:43: error: 'debug' was not declared in this scope
 3004 |                         if (echo_scripts) debug.active = true;
      |                                           ^~~~~
remake.cpp:803:19: error: 'debug' was not declared in this scope
  803 | #define DEBUG if (debug.active) debug()
      |                   ^~~~~
remake.cpp:3038:25: note: in expansion of macro 'DEBUG'
 3038 |                         DEBUG << "New target: " << arg << '\n';
      |                         ^~~~~
configure: error: in `/home/pbulk/build/math/gappa/work/gappa-1.3.5':
configure: error: failed
See `config.log' for more details
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/math/gappa
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/math/gappa