+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/logrot-1.7/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/logrot-1.7/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Installing for logrot-1.7
=> Generating pre-install file lists
./mkinstalldirs /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/bin /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/man/man1
mkdir /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/bin
mkdir /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/man
mkdir /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/man/man1
/usr/bin/install -c -s -o pbulk -g pbulk -m 755 logrot /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/bin/logrot
/usr/bin/install -c -o pbulk -g pbulk -m 644 logrot.1 /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/man/man1/logrot.1
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for logrot-1.7
=> Checking for non-existent script interpreters in logrot-1.7
=> Checking file permissions in logrot-1.7
=> Checking for PIE in logrot-1.7
=> Checking for RELRO in logrot-1.7
=> Checking for missing run-time search paths in logrot-1.7
=> Checking for work-directory references in logrot-1.7
ERROR: Binary file /home/pbulk/build/sysutils/logrot/work/.destdir/usr/pkg/bin/logrot matches
ERROR: *** The above files still have references to the build directory.
ERROR:     This is possibly an error that should be fixed by unwrapping
ERROR:     the files or adding missing tools to the package makefile!
*** Error code 1

Stop.
bmake[1]: stopped making "stage-install" in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/sysutils/logrot
*** Error code 1

Stop.
bmake: stopped making "stage-install" in /data/jenkins/workspace/pkgsrc-netbsd-trunk-x86_64/sysutils/logrot