From nobody Thu May 23 09:34:18 2024 X-Original-To: freebsd-ports@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 4VlNKp1ySQz5LKlt for ; Thu, 23 May 2024 09:34:22 +0000 (UTC) (envelope-from SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4VlNKn0HTZz4ndx for ; Thu, 23 May 2024 09:34:20 +0000 (UTC) (envelope-from SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=MdE7I3Au; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl" Date: Thu, 23 May 2024 11:34:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1716456859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=J8oyildie3OoYQgd2mHFHf7rsVWdKp75aU8BANpaqNI=; b=MdE7I3AujogxAOFJMgSuOpi/1opoJupqSy9ondDWj1SfqlGUpr5SaDNJULIDORCh6Uek+e mvVWjHn7VsFKgkUJvELdpG8O+Nn1DfiocgmknF9NXipAZZbpsQMWY4TjRAlVKfGoTUmzla orm4AOEw3LI6XWsmJsdNz93rqsu8uOT/HwNDg98FhcRLkjyIcNvh3b8g1mnhtfObAy1xR4 XUp0rd6gAXuO0jkeWkfXnUqQqTNYPnMebEnSE1b5v/x8XG3TM8l9/OqiD2+btQqHo79kuy MbBT2x1m3R40YvxeUqcWXA71bmXbifjwTmG99D65X3INMst1KyTDVCXX1kYJNA== From: Ronald Klop To: freebsd-ports@freebsd.org Message-ID: <939040813.103.1716456858934@localhost> Subject: help needed for a nodejs + npm port: mongosh List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_102_1449998857.1716456858924" X-Mailer: Realworks (700.200) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.39 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; RWL_MAILSPIKE_VERYGOOD(-0.20)[194.109.157.24:from]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; DKIM_TRACE(0.00)[klop.ws:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=GFVs=M2=klop.ws=ronald-lists@realworks.nl]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; HAS_X_PRIO_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ATTACHMENT(0.00)[] X-Rspamd-Queue-Id: 4VlNKn0HTZz4ndx ------=_Part_102_1449998857.1716456858924 Content-Type: multipart/alternative; boundary="----=_Part_101_481748236.1716456858903" ------=_Part_101_481748236.1716456858903 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm trying to port MongoDB Shell to FreeBSD. See the attached Makefile. The build stage starts to fetch some npm packages which is not possible in poudriere. How can I install NPM packages upfront? The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information. A pointer to some existing port as an example would also help. Regards, Ronald. ------=_Part_101_481748236.1716456858903 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

I'm trying to port MongoDB Shell to FreeBSD.
See the attached Makefile.

The build stage starts to fetch some npm packages which is not possible in poudriere.
How can I install NPM packages upfront?

The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information.

A pointer to some existing port as an example would also help.

Regards,
Ronald.
  ------=_Part_101_481748236.1716456858903-- ------=_Part_102_1449998857.1716456858924 Content-Type: application/octet-stream; name=Makefile Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Makefile PORTNAME= mongosh DISTVERSION= 2.2.6 DISTVERSIONPREFIX= v CATEGORIES= databases MASTER_SITES= NPM MAINTAINER= ronald@FreeBSD.org COMMENT= MongoDB Shell WWW= https://www.mongodb.com/docs/mongodb-shell/ \ https://github.com/mongodb-js/mongosh LICENSE= APACHE20 BUILD_DEPENDS+= npm>0:www/npm USES= nodejs #nodejs:run USE_GITHUB= yes GH_ACCOUNT= mongodb-js do-build: cd ${WRKSRC} && npm --cache=${WRKDIR}/.npm --browser=false run bootstrap cd ${WRKSRC} && npm --cache=${WRKDIR}/.npm --browser=false run compile-exec # npm run evergreen-release package -- --build-variant=deb-x64 .include ------=_Part_102_1449998857.1716456858924--