[package - main-arm64-default][security/gsa] Failed for gsa-23.3.0 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 28 Sep 2024 12:53:10 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     acm@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/p4a16d2e85dd9_sb7cbf741d55/logs/gsa-23.3.0.log
Build URL:      https://pkg-status.freebsd.org/ampere2/build.html?mastername=main-arm64-default&build=p4a16d2e85dd9_sb7cbf741d55
Log:

=>> Building security/gsa
build started at Sat Sep 28 12:51:18 UTC 2024
port directory: /usr/ports/security/gsa
package name: gsa-23.3.0
building for: FreeBSD main-arm64-default-job-11 15.0-CURRENT FreeBSD 15.0-CURRENT 1500023 arm64
maintained by: acm@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 1723 Sep 28 01:02 /usr/ports/security/gsa/Makefile
Ports top last git commit: 4a16d2e85dd
Ports top unclean checkout: no
Port dir last git commit: 0b1f933be60
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.2
Host OSVERSION: 1500023
Jail OSVERSION: 1500023
Job Id: 11

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500023
UNAME_v=FreeBSD 15.0-CURRENT 1500023
UNAME_r=15.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.2
MASTERMNT=/usr/local/poudriere/data/.m/main-arm64-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/main-arm64-default/11/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-arm64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-arm64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.2
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
acm@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/security/gsa/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/gsa/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/gsa/work/.cache  HOME=/wrkdirs/usr/ports/security/gsa/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/gsa/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/gsa/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/security/gsa/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/gsa/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/security/gsa/work/.cache  HOME=/wrkdirs/usr/ports/security/gsa/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/security/gsa/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/gsa/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="i
nstall  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/gsa"  EXAMPLESDIR="share/examples/gsa"  DATADIR="share/gsa"  WWWDIR="www/gsa"  ETCDIR="etc/gsa"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/gsa DOCSDIR=/usr/local/share/doc/gsa EXAMPLESDIR=/usr/local/share/examples/gsa  WWWDIR=/usr/local/www/gsa ETCDIR=/usr/local/etc/gsa
--End SUB_LIST--

---Begin make.conf---
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
ulimit: can't get limit: Invalid argument
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  1048576
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3+ accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   gsa-23.3.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[main-arm64-default-job-11] Installing pkg-1.21.3...
[main-arm64-default-job-11] Extracting pkg-1.21.3: .......... done
===>   gsa-23.3.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of gsa-23.3.0
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3+ accepted by the user
=> gsa-cache-23.3.0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/acm/gsa/gsa-cache-23.3.0.tar.gz
gsa-cache-23.3.0.tar.gz                                 44 MB   81 MBps    01s
=> greenbone-gsa-v23.3.0_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://codeload.github.com/greenbone/gsa/tar.gz/v23.3.0?dummy=/greenbone-gsa-v23.3.0_GH0.tar.gz
fetch: https://codeload.github.com/greenbone/gsa/tar.gz/v23.3.0?dummy=/greenbone-gsa-v23.3.0_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/greenbone/gsa/tar.gz/v23.3.0?dummy=/greenbone-gsa-v23.3.0_GH0.tar.gz: size of remote file is not known
greenbone-gsa-v23.3.0_GH0.tar.gz                      3426 kB   10 MBps    00s
===> Fetching all distfiles required by gsa-23.3.0 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3+ accepted by the user
===> Fetching all distfiles required by gsa-23.3.0 for building
=> SHA256 Checksum OK for gsa-cache-23.3.0.tar.gz.
=> SHA256 Checksum OK for greenbone-gsa-v23.3.0_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License AGPLv3+ accepted by the user
===> Fetching all distfiles required by gsa-23.3.0 for building
===>  Extracting for gsa-23.3.0
=> SHA256 Checksum OK for gsa-cache-23.3.0.tar.gz.
=> SHA256 Checksum OK for greenbone-gsa-v23.3.0_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for gsa-23.3.0
===>  Applying FreeBSD patches for gsa-23.3.0 from /usr/ports/security/gsa/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   gsa-23.3.0 depends on package: npm-node18>0 - not found
===>   Installing existing package /packages/All/npm-node18-10.8.3.pkg
[main-arm64-default-job-11] Installing npm-node18-10.8.3...
[main-arm64-default-job-11] `-- Installing gmake-4.4.1...
[main-arm64-default-job-11] |   `-- Installing gettext-runtime-0.22.5...
[main-arm64-default-job-11] |   | `-- Installing indexinfo-0.3.1...
[main-arm64-default-job-11] |   | `-- Extracting indexinfo-0.3.1: .... done
[main-arm64-default-job-11] |   `-- Extracting gettext-runtime-0.22.5: .......... done
[main-arm64-default-job-11] `-- Extracting gmake-4.4.1: .......... done
[main-arm64-default-job-11] `-- Installing node18-18.20.4...
[main-arm64-default-job-11] |   `-- Installing brotli-1.1.0,1...
[main-arm64-default-job-11] |   `-- Extracting brotli-1.1.0,1: .......... done
[main-arm64-default-job-11] |   `-- Installing c-ares-1.33.1...
[main-arm64-default-job-11] |   `-- Extracting c-ares-1.33.1: .......... done
[main-arm64-default-job-11] |   `-- Installing ca_root_nss-3.93_2...
[main-arm64-default-job-11] |   `-- Extracting ca_root_nss-3.93_2: ....... done
certctl: Skipping untrusted certificate 080911ac (/etc/ssl/untrusted/080911ac.0)
certctl: Skipping untrusted certificate d853d49e (/etc/ssl/untrusted/d853d49e.0)
certctl: Skipping untrusted certificate f90208f7 (/etc/ssl/untrusted/f90208f7.0)
certctl: Skipping untrusted certificate ee1365c0 (/etc/ssl/untrusted/ee1365c0.0)
certctl: Skipping untrusted certificate 26312675 (/etc/ssl/untrusted/26312675.0)
certctl: Skipping untrusted certificate b1b8a7f3 (/etc/ssl/untrusted/b1b8a7f3.0)
certctl: Skipping untrusted certificate c01cdfa2 (/etc/ssl/untrusted/c01cdfa2.0)
certctl: Skipping untrusted certificate 9c2e7d30 (/etc/ssl/untrusted/9c2e7d30.0)
certctl: Skipping untrusted certificate 116bf586 (/etc/ssl/untrusted/116bf586.0)
certctl: Skipping untrusted certificate c47d9980 (/etc/ssl/untrusted/c47d9980.0)
certctl: Skipping untrusted certificate 349f2832 (/etc/ssl/untrusted/349f2832.0)
certctl: Skipping untrusted certificate a8dee976 (/etc/ssl/untrusted/a8dee976.0)
certctl: Skipping untrusted certificate 442adcac (/etc/ssl/untrusted/442adcac.0)
certctl: Skipping untrusted certificate 0c4c9b6c (/etc/ssl/untrusted/0c4c9b6c.0)
certctl: Skipping untrusted certificate cb59f961 (/etc/ssl/untrusted/cb59f961.0)
certctl: Skipping untrusted certificate 5a4d6896 (/etc/ssl/untrusted/5a4d6896.0)
certctl: Skipping untrusted certificate dc45b0bd (/etc/ssl/untrusted/dc45b0bd.0)
certctl: Skipping untrusted certificate 1320b215 (/etc/ssl/untrusted/1320b215.0)
certctl: Skipping untrusted certificate 0b7c536a (/etc/ssl/untrusted/0b7c536a.0)
certctl: Skipping untrusted certificate f3377b1b (/etc/ssl/untrusted/f3377b1b.0)
[main-arm64-default-job-11] |   `-- Installing icu-74.2_1,1...
[main-arm64-default-job-11] |   `-- Extracting icu-74.2_1,1: .......... done
[main-arm64-default-job-11] |   `-- Installing libnghttp2-1.63.0...
[main-arm64-default-job-11] |   `-- Extracting libnghttp2-1.63.0: .......... done
[main-arm64-default-job-11] |   `-- Installing libuv-1.49.0...
[main-arm64-default-job-11] |   `-- Extracting libuv-1.49.0: .......... done
[main-arm64-default-job-11] `-- Extracting node18-18.20.4: .......... done
[main-arm64-default-job-11] `-- Installing python311-3.11.10...
[main-arm64-default-job-11] |   `-- Installing libffi-3.4.6...
[main-arm64-default-job-11] |   `-- Extracting libffi-3.4.6: .......... done
[main-arm64-default-job-11] |   `-- Installing mpdecimal-4.0.0...
[main-arm64-default-job-11] |   `-- Extracting mpdecimal-4.0.0: .......... done
[main-arm64-default-job-11] |   `-- Installing readline-8.2.13...
[main-arm64-default-job-11] |   `-- Extracting readline-8.2.13: .......... done
[main-arm64-default-job-11] `-- Extracting python311-3.11.10: .......... done
[main-arm64-default-job-11] Extracting npm-node18-10.8.3: .......... done
=====
Message from ca_root_nss-3.93_2:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of
the system administrator.

This package installs symlinks to support root certificate discovery
for software that either uses other cryptographic libraries than
OpenSSL, or use OpenSSL but do not follow recommended practice.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from node18-18.20.4:

--
Note: If you need npm (Node Package Manager), please install www/npm.
=====
Message from python311-3.11.10:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py311-gdbm       databases/py-gdbm@py311
py311-sqlite3    databases/py-sqlite3@py311
py311-tkinter    x11-toolkits/py-tkinter@py311
===>   gsa-23.3.0 depends on package: npm-node18>0 - found
===>   Returning to build of gsa-23.3.0
===>   gsa-23.3.0 depends on executable: node - found
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for gsa-23.3.0
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for gsa-23.3.0

> gsa@23.3.0 build
> vite build

failed to load config from /wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/vite.config.ts
error during build:
Error: 
You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.

Specifically the "@esbuild/freebsd-x64" package is present but this platform
needs the "@esbuild/freebsd-arm64" package instead. People often get into this
situation by installing esbuild on Windows or macOS and copying "node_modules"
into a Docker image that runs Linux, or by copying "node_modules" between
Windows and WSL environments.

If you are installing with npm, you can try not copying the "node_modules"
directory when you copy the files over, and running "npm ci" or "npm install"
on the destination platform after the copy. Or you could consider using yarn
instead of npm which has built-in support for installing a package on multiple
platforms simultaneously.

If you are installing with yarn, you can try listing both this platform and the
other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
Keep in mind that this means multiple copies of esbuild will be present.

Another alternative is to use the "esbuild-wasm" package instead, which works
the same way on all platforms. But it comes with a heavy performance cost and
can sometimes be 10x slower than the "esbuild" package, so you may also not
want to do that.

    at generateBinPath (/wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/esbuild/lib/main.js:1736:17)
    at esbuildCommandAndArgs (/wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/esbuild/lib/main.js:1817:33)
    at ensureServiceIsRunning (/wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/esbuild/lib/main.js:1974:25)
    at build (/wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/esbuild/lib/main.js:1873:26)
    at bundleConfigFile (file:///wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66503:24)
    at loadConfigFromFile (file:///wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66473:27)
    at resolveConfig (file:///wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66082:30)
    at build (file:///wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:65179:24)
    at CAC.<anonymous> (file:///wrkdirs/usr/ports/security/gsa/work/gsa-23.3.0/node_modules/vite/dist/node/cli.js:828:11)
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/security/gsa