From nobody Mon Nov 06 14:27:38 2023 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 4SPDG32Sjyz4yn1J; Mon, 6 Nov 2023 14:27:39 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPDG31c8hz3JT6; Mon, 6 Nov 2023 14:27:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699280859; 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=HVZJCqifP2yO7pVqGYRvmchaTHSFf4P7W0a5DP/4oVg=; b=sI+2aQCL63thk4CIKM6QSNtwY0faOFGKZPpbni/7yqfzfEBooBMbxw0v1DLBMwozU//Caq taXEMhdSgJj0ospkuzCTXDeyB0fiC+2Q3OdICXu9ebHmxc1oUgBcEtAXc044ngc35BpZZ1 ii2QhtQBfUqdJnTGn8UbrD9hXGthkLtt8E/wqFXzN5Ba0/qZEuRz748YD0SnQ0FTT88s25 ik3WXYVxBaIM93KWr+4kys87jey8DMUlyVU6i66HuQPi8IMo1VFRcy6KlEnhZH3Uz1uz/T zbP2E9wCUF+9fmrsRVj1WX2nSFU1wOxaf8cewmDMi5S8r+HJ89gm2D45kOL1JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699280859; 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=HVZJCqifP2yO7pVqGYRvmchaTHSFf4P7W0a5DP/4oVg=; b=ydng6bDjaXYXXHr9rnuZEgcrL6QHw0MOey6Vv23KKKtBl/XqOW457KruI1A6IqrdDnEL7B U7GaEgxFBdgQJCsdgJo1RnxInTthlnlGmULouvJqxfZyhHMkoHX163QPwyeio36v9jHc4j MUob4WIQ69Ht3N5XRA7r5DCSmNg2qHndruremcqmUgEpljPGmrOjjSvLp+8NhOZ6SYAjGR XabL7nXOeCvScpwMn3ZY5YxigfFLjkavhvXWKRV/XBcfcdznn0BWwtHNe2Mv1vTy0dAyoV 9t6dpHy12qZvB9MfSy217h1GqALg0FMbmiimh50dX6v69M8qdHmexpqosoAYYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699280859; a=rsa-sha256; cv=none; b=FnoCI6bh3MPfdD/t3Rxz9AJ0Na7kQuXW0hNESvFpx3SqddIeeL/3ydnJvNeXSot7egwOQd 8zrxYAyeueO4C8LAYNEDWryhQLppKaCI/f2CRZjZVt21UUdZHe7+blJ2rrQL7vyAe0oXNE VdcKRXndyHNEjtLDzyUtfI3xINdP+1jEyHFLqKeCLuGh3lDo3ij17JRjK10iMX6CH2814f ID/4VNyJC+sXNBYh417x0s3iwqAAeHwxSXOT4eRsMjMp1kSpdDYpU/npcxeJO64EQXLC1B 3tYAHFYNV9QbpeigNGW/0pHd4C+WYE9aBax09D2YXq5y1pZdCHnYqHq184pwLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SPDG30TrRz19Np; Mon, 6 Nov 2023 14:27:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A6ERcJt024256; Mon, 6 Nov 2023 14:27:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A6ERcAh024253; Mon, 6 Nov 2023 14:27:38 GMT (envelope-from git) Date: Mon, 6 Nov 2023 14:27:38 GMT Message-Id: <202311061427.3A6ERcAh024253@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 64cacbc56476 - main - security/bitwarden-cli: fix fetch and build 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 64cacbc564767d1a53e0a3390d28e1d6fb0aa320 Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=64cacbc564767d1a53e0a3390d28e1d6fb0aa320 commit 64cacbc564767d1a53e0a3390d28e1d6fb0aa320 Author: Hiroki Tagato AuthorDate: 2023-11-06 14:23:38 +0000 Commit: Hiroki Tagato CommitDate: 2023-11-06 14:27:11 +0000 security/bitwarden-cli: fix fetch and build npm version 10 fails with the following error when prefetching node modules (this only happens with poudriere): npm ERR! code EEXIST npm ERR! syscall open npm ERR! path /wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0 npm ERR! errno -17 npm ERR! EEXIST: file already exists, open '/wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0' npm ERR! File exists: /wrkdirs/usr/ports/security/bitwarden-cli/work/.npm/_cacache/tmp/e61947a0 npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. As a temporary workaround, install and use npm version 9 for prefetching node modules. Reported by: Miroslav Lachman <000.fbsd@quip.cz> (via private mail) MFH: 2023Q4 --- security/bitwarden-cli/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/security/bitwarden-cli/Makefile b/security/bitwarden-cli/Makefile index 27edd8ba370a..707187e26af5 100644 --- a/security/bitwarden-cli/Makefile +++ b/security/bitwarden-cli/Makefile @@ -37,6 +37,8 @@ USE_GITHUB= yes GH_ACCOUNT= bitwarden GH_PROJECT= clients +MAKE_ENV+= PYTHONDONTWRITEBYTECODE=1 + BUILD_WRKSRC= ${WRKSRC}/apps/cli PLIST_FILES= bin/bw \ @@ -65,7 +67,8 @@ pre-fetch: ${MKDIR} ${WRKDIR}/node-modules-cache; \ ${CP} -R ${FILESDIR}/packagejsons/* ${WRKDIR}/node-modules-cache; \ cd ${WRKDIR}/node-modules-cache && \ - ${SETENV} HOME=${WRKDIR} npm ci --ignore-scripts --no-progress; \ + ${SETENV} HOME=${WRKDIR} npm install -g --prefix=${WRKDIR} npm@9.9.0 && \ + ${SETENV} HOME=${WRKDIR} PATH=${WRKDIR}/bin:${PATH} npm ci --ignore-scripts --no-progress; \ ${FIND} ${WRKDIR}/node-modules-cache -depth 1 -print | \ ${GREP} -v node_modules | ${XARGS} ${RM} -r; \ ${FIND} ${WRKDIR}/node-modules-cache -type d -exec ${CHMOD} 755 {} ';'; \