🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.ports
Article #135

Re: Building offline cache for port of node application.

#135
From: Leonard Rucker
Date: Sat, 31 Oct 2026 23:50
58 lines
6308 bytes
On Sat, 26 Sep 2026 20:39:46 -0700
Leonard Rucker <len@perpetualthought.com> wrote:

> On Sat, 26 Sep 2026 09:24:40 +0200
> Matthias Fechner <idefix@fechner.net> wrote:
> 
> > Hi Len,
> > 
> > Am 26.09.26 um 00:31 schrieb Leonard Rucker:  
> > > I am working on a port of the joplin-server backend.  I am
> > > learning the ports system as I go and I have going much support
> > > from the various people as well just reading the other ports, the
> > > Mk files, and the porter's handbook. Right now I am trying to
> > > figure out how to make an offline cache for packing that are
> > > trying to be installed when I do the actual build of the app.
> > > I've read around about making a offline cache and found what the
> > > cache looks like but have yet been able to make the cache
> > > tarball. Could someone point me in the right direction as to how
> > > to make this file? Also I seems like there is a lot of
> > > node_module bloat when the build is done. I don't think I need
> > > all the files in the final pkg file. My question is how do I
> > > whittle this down to a reason amount. 
> > 
> > if you tell use for what you want to make a cache it would be easier
> > to help you.
> > The directory node_modules does not give a clue about the node
> > package manager you use.
> > 
> > I have several example available that I use.
> > yarn: net/gotify-server
> > npm: www/SpectrumKNX
> > pnpm: www/fmd-server (not verified)
> > 
> > I also saw that a npm USE flag was added, maybe that helps too.
> > 
> > Matthias
> > 
> >   
> 
> Mi Matthias,
> 
> Thanks so much  net/gotify's Makefile had a build target for
> building an offline cache and that worked very well. Now I am on to my
> next build problem. 
> 
> Len
> 
I found a fix to my problem. I needed to set OPTION PORT_LLVM when
building Rust. It appears that the version of LLVM that is bundled with
Rust is 23. I guess either you cannot have an older provider with a
newer reader when linking rust binaries, or something changed in Rust
or LLVM that was exposed with LLVM23 that isn't present with LLVM22 and
LLVM21.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <20261031165007.0ecca810@mediamaster.perpetualthought.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <20260926203946.5a73e5d3@mediamaster.perpetualthought.com> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Leonard Rucker <len@perpetualthought.com>
Newsgroups: muc.lists.freebsd.ports
Subject: Re: Building offline cache for port of node application.
Date: Sat, 31 Oct 2026 16:50:07 -0700
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-ports@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <20261031165007.0ecca810@mediamaster.perpetualthought.com>
References: <20260926203946.5a73e5d3@mediamaster.perpetualthought.com> <>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="78232"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793490673; h=from:from:sender:sender: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:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=ZTh8f5XR7ozd+g8JTvzXxcJiKdWbC+lZ3ctQCCWWRz8=;
	b=UKiGFmoXzL6/63G5DXjC+eulcyOVs+NjS3gZHf6gqwN/GF/kjZ4mP11y6A/0BVE1ofurL7
	lKLLvoakSIbl1XKYzY5KtLqulWciU0A+bXYPm2B9YtWnkP8tofb/CWtnVyrOPuhBhYg7uj
	4IcGFyOzXSLi1BWDbomYYq/j5jyaCjnEUgusvruHR/YCNuBP5QzLiI9UAKOmcV3HAReJUd
	8srN5/7aVnwg4HhEeHAigdDK05ijmEM1b64+ejvwkAN1fJUOmeaAHClRJ9/2NdK5WRQn9g
	DJD//jRBt/ITW4RcyMKh6nqlVaZxU4/2n1arSFkm8eIz7jnJZOBF9Y+Dley9Cw==
X-Original-To: ports@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=perpetualthought.com header.s=mail header.b=CeThJ0bE;
	dkim=pass header.d=perpetualthought.com header.s=mail header.b="En/LE6Hh";
	spf=pass (mx1.freebsd.org: domain of len@perpetualthought.com designates 198.199.117.193 as permitted sender) smtp.mailfrom=len@perpetualthought.com;
	dmarc=pass (policy=reject) header.from=perpetualthought.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=perpetualthought.com;
	s=mail; t=1793490552;
	bh=4gn2KgHOFs5v04zq6wMwTHwzMehvpTj5Caer5wKGj+g=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=CeThJ0bEDet/HpG79fsr22ADZRQ3V5Y0lGDWqhmyOQLTVUdxK45TPNcPKo2tAzqUN
	 pl1RR2TunDtKoQIuzA9eg8Np74/UXqTjMWMdRVfyVE+MtslMYOGAhA1htxj2JAbcxw
	 U9wRlXFAzNuSRpvRwSI1HK8IAaL1XX+1P+LiirSc=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=perpetualthought.com;
	s=mail; t=1793490551;
	bh=4gn2KgHOFs5v04zq6wMwTHwzMehvpTj5Caer5wKGj+g=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=En/LE6HhXoU9u0pRpoM9b54OKcp15DtuqUWN/fQDMFQLmdPHtuYs0xLp9AZskVXTz
	 Y9r/2eqYoeoKa+tC5Tn/losnz+G8KB4WpuhUmvAKCmFAt+JMJXAnXLiwVzO5x8HDny
	 jSyS9ZoMXi26PK5e7OLEe19Nkvse/Ou8oJ2wwMbg=
In-Reply-To: <20260926203946.5a73e5d3@mediamaster.perpetualthought.com>
X-BeenThere: freebsd-ports@freebsd.org
Precedence: list
X-Rspamd-Queue-Id: 4jHF8907tSz3GyZ
X-Spamd-Bar: -
X-Spamd-Result: default: False [-1.00 / 15.00];
	DMARC_POLICY_ALLOW(-0.50)[perpetualthought.com,reject];
	R_SPF_ALLOW(-0.20)[+ip4:198.199.117.193];
	R_DKIM_ALLOW(-0.20)[perpetualthought.com:s=mail];
	MIME_GOOD(-0.10)[text/plain];
	TO_DN_NONE(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	MIME_TRACE(0.00)[0:+];
	ASN(0.00)[asn:14061, ipnet:198.199.112.0/21, country:US];
	RCVD_COUNT_TWO(0.00)[2];
	MLMMJ_DEST(0.00)[ports@freebsd.org];
	ARC_NA(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org];
	FROM_EQ_ENVFROM(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	DKIM_TRACE(0.00)[perpetualthought.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes