From nobody Mon Mar 9 16:13:30 2026 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fV2B31bDQz6Vwrj for ; Mon, 09 Mar 2026 16:13:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fV2B26yKRz3FGf for ; Mon, 09 Mar 2026 16:13:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773072811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVKKWmYsellUD6KdTdplMkMKmUY8uCPiLPwW72ZQb3Y=; b=CoiNburgqrDmnucX6/QemWHK4A9b1CVXyoohV5UrP8RIMwyVi0n4rGk+CenDUUPyxQmxTD oRwyB5oR3treCPUuPD0FGZkAa+kxKz7DOMgoTb0mMav0A9AhRKUEkXK5NjtoqwlU3Uiys3 hdhqJXsxEQDJ+bgUcADwyz8crsjb8ArQ45oanpEvbhys1YpXfMRoDT64XrWIhsPhQBFV/h jrpMbhLVo2GKzKwcPlqKaqnZLELBcB0HjkjIxeARm0aRpDk6TQuapwrCCP1syi4nTVE2nO 02Lzn1YTfOmYBMrWBnPsNBn/pWgRFi0QfTicif/sMyKSDCVHsoyWiBhB4oJOyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773072811; a=rsa-sha256; cv=none; b=FyZLbLVW0e9FZWJf9jNGMaMWgPkXiOeHPOkLk48Q3i5gbBneRN76rOzjbDq8zhWuoNW5EL qQddBKjZ6SmhH4nxR3SXtaMLA97xbhPiv6g+TBWBucKJ6s9zlVnDDu+Y31X8w0nLeBJtS3 svm8AGX5Zp7y4kesPjmvIwYmR21Gwe/pm0AVlGIVjKnSQ327VUxUKcgCOtrk49NHc5sUyf D3RhjEe2SYj3HNmbL4YSBSRuUTtZsONdD3If6RGdh3ZE7hMlx1KiKpDtoRXSYoVt5WktSp wlmPnYKxuA/jhtulrFNhqlOYZmUINB+SBW9IFSDh0YGRAf3IiNiN+DyYTrdHnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773072811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVKKWmYsellUD6KdTdplMkMKmUY8uCPiLPwW72ZQb3Y=; b=bwc6A5dkoAYyW0gxyzec9zRIBzwjPu2JT0A6ub+c/v2a2Wb8NWNSo3GqKm9TKD+85Crxx5 WJ2RpXl1CuoJTJqMsN78ADiKzhqxd8DYTFKOjI9w98Nv3n8g8T7LWXYKxbYw+jYZ4edcZE oVbmGGfLGzMjCrZqBPb++qjgVe52U0CML5ETSZ84Cgi2rkYR12M0FaZqzSn6dIYW5bJk08 4IDUaPjawFfBnb8gq1JRRdu6AQw6FZCVNNcRxmVJLC5P2pfJ+3fRB71S4iWcI14bWEXlGt nctpMWNwUVw3et+ihd9OCPVCUXnqAiSrjpnYqDR2taamw6OxuTg1K+pJGlf/1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fV2B26Dq7zZ25 for ; Mon, 09 Mar 2026 16:13:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41481 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 09 Mar 2026 16:13:30 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: bccac3973c7d - main - Tools/scripts: Use CA certificates in Tools/scripts/npmjs-fetch-with-dependencies.sh List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bccac3973c7d7603884a1b538095f7c45ccca2a3 Auto-Submitted: auto-generated Date: Mon, 09 Mar 2026 16:13:30 +0000 Message-Id: <69aef1aa.41481.721f7f7c@gitrepo.freebsd.org> The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bccac3973c7d7603884a1b538095f7c45ccca2a3 commit bccac3973c7d7603884a1b538095f7c45ccca2a3 Author: Yuri Victorovich AuthorDate: 2026-03-09 15:49:08 +0000 Commit: Yuri Victorovich CommitDate: 2026-03-09 16:13:25 +0000 Tools/scripts: Use CA certificates in Tools/scripts/npmjs-fetch-with-dependencies.sh --- Tools/scripts/npmjs-fetch-with-dependencies.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/npmjs-fetch-with-dependencies.sh b/Tools/scripts/npmjs-fetch-with-dependencies.sh index 4884de6724fe..d2c95ccb095e 100755 --- a/Tools/scripts/npmjs-fetch-with-dependencies.sh +++ b/Tools/scripts/npmjs-fetch-with-dependencies.sh @@ -27,12 +27,20 @@ PACKAGE_VERSION="$2" PACKAGE_LOCK_JSON="$3" PACKAGE_TARBALL_OUTPUT="$4" +LOCALBASE=${LOCALBASE} + if [ -z "$PACKAGE_NAME" ] || [ -z "$PACKAGE_VERSION" ] || [ -z "$PACKAGE_LOCK_JSON" ] || [ -z "$PACKAGE_TARBALL_OUTPUT" ]; then echo "Usage: $0 " echo "Example: $0 sharp 0.34.4 outdir/sharp-package-lock.json outdir/sharp-0.34.4.tar.gz" exit 1 fi +if ! [ -f ${LOCALBASE}/share/certs/ca-root-nss.crt ]; then + echo "error: the CA certificate file ${LOCALBASE}/share/certs/ca-root-nss.crt is missing" + echo " please install the 'ca_root_nss' package to provide it" + exit 1 +fi + PACKAGE_NAME_PURE="$(echo $PACKAGE_NAME | sed 's|.*/||')" if [ -z "$TMPDIR" ]; then @@ -92,7 +100,7 @@ if [ -f $PACKAGE_LOCK_JSON ]; then # fetch dependencies echo "{\"name\":\"${PACKAGE_NAME}-installer\",\"version\":\"1.0.0\",\"dependencies\":{\"${PACKAGE_NAME}\":\"${PACKAGE_VERSION}\"}}" > package.json cp $PACKAGE_LOCK_JSON package-lock.json - HOME=${TMPDIR} npm ci --ignore-scripts --global-style --legacy-peer-deps --omit=dev + HOME=${TMPDIR} NODE_EXTRA_CA_CERTS=${LOCALBASE}/share/certs/ca-root-nss.crt npm ci --ignore-scripts --global-style --legacy-peer-deps --omit=dev else # info echo "INFO: the file $PACKAGE_LOCK_JSON does not exist, we will attempt to generate it"