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

From: <pkg-fallout_at_FreeBSD.org>
Date: Mon, 21 Oct 2024 16:12:36 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/ampere3/data/141arm64-default/f06faad6cb80/logs/gsa-23.3.0.log
Build URL:      https://pkg-status.freebsd.org/ampere3/build.html?mastername=141arm64-default&build=f06faad6cb80
Log:

=>> Building security/gsa
build started at Mon Oct 21 16:11:55 UTC 2024
port directory: /usr/ports/security/gsa
package name: gsa-23.3.0
building for: FreeBSD 141arm64-default-job-03 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 arm64
maintained by: acm@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 1723 Oct  1 01:02 /usr/ports/security/gsa/Makefile
Ports top last git commit: f06faad6cb8
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: 1401000
Job Id: 03

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1401000
UNAME_v=FreeBSD 14.1-RELEASE-p5
UNAME_r=14.1-RELEASE-p5
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/141arm64-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/141arm64-default/03/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=141arm64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/141arm64-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=14.1 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---
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--
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
[141arm64-default-job-03] Installing pkg-1.21.3...
[141arm64-default-job-03] 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
===> 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
[141arm64-default-job-03] Installing npm-node18-10.8.3...
[141arm64-default-job-03] `-- Installing gmake-4.4.1...
[141arm64-default-job-03] |   `-- Installing gettext-runtime-0.22.5...
[141arm64-default-job-03] |   | `-- Installing indexinfo-0.3.1...
[141arm64-default-job-03] |   | `-- Extracting indexinfo-0.3.1: .... done
[141arm64-default-job-03] |   `-- Extracting gettext-runtime-0.22.5: .......... done
[141arm64-default-job-03] `-- Extracting gmake-4.4.1: .......... done
[141arm64-default-job-03] `-- Installing node18-18.20.4...
[141arm64-default-job-03] |   `-- Installing brotli-1.1.0,1...
[141arm64-default-job-03] |   `-- Extracting brotli-1.1.0,1: .......... done
[141arm64-default-job-03] |   `-- Installing c-ares-1.33.1...
[141arm64-default-job-03] |   `-- Extracting c-ares-1.33.1: .......... done
[141arm64-default-job-03] |   `-- Installing ca_root_nss-3.104...
[141arm64-default-job-03] |   `-- Extracting ca_root_nss-3.104: ....... done
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
[141arm64-default-job-03] |   `-- Installing icu-74.2_1,1...
[141arm64-default-job-03] |   `-- Extracting icu-74.2_1,1: .......... done
[141arm64-default-job-03] |   `-- Installing libnghttp2-1.63.0...
[141arm64-default-job-03] |   `-- Extracting libnghttp2-1.63.0: .......... done
[141arm64-default-job-03] |   `-- Installing libuv-1.49.1...
[141arm64-default-job-03] |   `-- Extracting libuv-1.49.1: .......... done
[141arm64-default-job-03] `-- Extracting node18-18.20.4: .......... done
[141arm64-default-job-03] `-- Installing python311-3.11.10...
[141arm64-default-job-03] |   `-- Installing libffi-3.4.6...
[141arm64-default-job-03] |   `-- Extracting libffi-3.4.6: .......... done
[141arm64-default-job-03] |   `-- Installing mpdecimal-4.0.0...
[141arm64-default-job-03] |   `-- Extracting mpdecimal-4.0.0: .......... done
[141arm64-default-job-03] |   `-- Installing readline-8.2.13_2...
[141arm64-default-job-03] |   `-- Extracting readline-8.2.13_2: .......... done
[141arm64-default-job-03] `-- Extracting python311-3.11.10: .......... done
[141arm64-default-job-03] Extracting npm-node18-10.8.3: .......... done
=====
Message from ca_root_nss-3.104:

--
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 in /usr/ports/security/gsa