🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Building offline cache for port of node application.

#136
From: Mark Millard
Date: Sun, 01 Nov 2026 01:39
88 lines
10129 bytes
On 10/31/26 16:50, Leonard Rucker wrote:
> 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.
> 
> 

Was LTO involved? LTO involves LLVM bit code files (.bc file) for which
older version LLVM linkers do not generally handle for newer version
LLVM bit code. Going the other way is allowed but has the issue that the
newer semantics used may not fully match the older semantics, including
undefined behavior details and optimization mismatches.

This is a greater degree of issues than when .bc file usage is avoided.
For this type of context, using older version LLVM linkers with newer
version non-LTO clang/clang++ code can still have its own examples of
running into something new that it does not handle (not as common).

Building rust things that involve linking non-rust things best use the
same LLVM toolchain.

A difficulty here is that the range of LLVM versions' allowed for a
given rust version's build can be fairly narrow:  Rust 1.79 allowed only
LLVM17 and LLVM18 . But 1.99 is fairly wide: LLVM18 .. LLVM23 . However,
only LLVM23 building gets fixes for mis-compilations: no explicit
backporting of fixes to LLVM18 .. LLVM22 based build contexts when the
distinction matters.


-- 
===
Mark Millard
marklmi at yahoo.com


--
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: <2b3346a7-e1c7-4b50-ba42-f28f8a33f178@yahoo.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: <20261031165007.0ecca810@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: Mark Millard <marklmi@yahoo.com>
Newsgroups: muc.lists.freebsd.ports
Subject: Re: Building offline cache for port of node application.
Date: Sat, 31 Oct 2026 18:39:05 -0700
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-ports@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <2b3346a7-e1c7-4b50-ba42-f28f8a33f178@yahoo.com>
References: <20261031165007.0ecca810@mediamaster.perpetualthought.com> <>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="54521"; mail-complaints-to="news-admin@muc.de"
User-Agent: Mozilla Thunderbird
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793497189; 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=gC3t18vZrxyRv7KWzIdTQeZ+WxgrRMG0A8J4Rs+3q/M=;
	b=Ns8qmoRwGHPidhLUsMPXtUd7D2ZSkkjP3ppRAaXPnOh8pQBv2LKpivOoPwjLpTgEa4YlK3
	NwB2gX9d40dRRv0n4H/zcNKptt+3Ch2CdQWCGEYtviGJrILMzaQv60zkZwd2d1yPl/wssE
	LEbgLJ0TxGRNe6Gv5hF/KwpIgKbV6NlINLiUxrRxPI+/8+KT8zISmzM2f48FDNJdYvyTzI
	j1WstbkVT7/k+cXNexzsp9qWkCVWKeJOH1dOjlfTe3eoKfgAt2zqVQLVLbS0dh9gEtlh9P
	sDec2hTPnTyAcEIObGijFFwcfbQil4n0YsirCOchNfn6ut6Rwx6XZ9gYuw/4hQ==
X-Original-To: ports@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=yahoo.com header.s=s2048 header.b=sczmACgh;
	spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 34.2.70.26 as permitted sender) smtp.mailfrom=marklmi@yahoo.com;
	dmarc=pass (policy=reject) header.from=yahoo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1793497148; bh=gC3t18vZrxyRv7KWzIdTQeZ+WxgrRMG0A8J4Rs+3q/M=; h=Date:Subject:To:References:From:In-Reply-To:From:Subject:Reply-To; b=sczmACghaZNj4FNCwx/AVuMI8fLa7C75Yy1EVPxlvfrhA+x9ZPME6aJlkbw8iW0FXMab6S2jJaOKY5X79TNu+l2fpDpfFa9iBDbwulzfpqPVRYuj60IlnVwok+54lCFDly3BQEywvqEmR1RAYgLf9QR+A6+G5RtbY0bMOr2adGzBW/V09FXHzlmqakh9ApOtxfV27YdFP7Mx5PAFPfzJMhv54QgkBSh3dV1Tz6MFdxEd0u0ppBJdvzMnLbYyhhCBxglXuOf+lE8W37lWGEg3L3uu916YmDYL2hpYZVgELhEFGS7a9Mw/pHYlXBwZa6O25xVGkFyYbF+FXA3pOfMajg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1793497148; bh=kOhi+Od4ALFM9YgQBazYPhcC9LkIZjM2ELDDqJ/5c7X=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=QpaLRGcU8tmRZVDdIhVeiVB7TIofxj/v8YVhT4BT3YB/IFrXbbxat/oe9xEy/G1x9N95yDGVA7w4qV6zfF/gni6HI1fgLCAJyPtysejzWHDbM6kVBh25o8mX77m3YSvTrsNjE/4Fwu61l/epB0qx/ZbTyv9gtg+r8qIdU37EYC0ZrQwv/XBKbeYVi4G3bsAnTyyXRc0fFj03zQoNpihoLahKXqwndzxzCmLyXLP1vrlWg+DInUKS4Gg40cyaAfCccozU6QfHv/CvfEcH+OZgOqqYiicQ/FfwN2PZ0qHTBWSftKA6yCxkRozKamO69pd/0sBA/Jp0bc15+h9vNdXjVA==
X-YMail-OSG: .3PGBDAVM1ncIZ.m5JlOplRoSUmXX1_NnbOsYB2S.kSa5oedXsM38ESvvIeZqh6
 egXEqU39zlSoYxm4dVIhyu49Lv.jZbWfpi8JjDtJvDW1dDM4JNigHTSWPyitj2numT58XJLc_GLu
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ZhIYTgzWM6oE8zY
 YHjxVpRwMC3YfQF4XpAfHh5FZP3z5A3EhJpieTDaF7ft20ZFc5juJrjRQpamYaIYroeZaCgaC6qW
 mI9udocmV9mIPxdRWQHGTmPJaJhce3zwTDIpmtxTPkJDCg7JCmM2vOCP7mc_Q_ryYoGPQDJfofV1
 fQfAtgqAFK.8zqmOUopbSZ5ASsDAVwPYuU22xZwSlkTfBb2sXSkX0Wd1ObXJTt2ghavOGqgZHdYw
 hpO_6Lc9_GEYdbjvq1sITCKezfCvk57OzpUHMiLl_rxoX5hvej_uvcLfIdcU1HT.TOF7mDM2.nfX
 SwNMWAZbjsSNluzuj9LSkjudEVhg8niZGikQc.p2w_uNLpkVpcyGU5FWpQDsJwpD2gKN76wRkZYZ
 7OZfbIz2LxXorEIWwUK4MwQWxwEl0GFln1BR9zSntJKLCrrMdMoSGlBeudd_q2TygoZ_7yST_eWm
 YOrjqVCRHYgeV70amDFXU0N2i1dnBjV9QD7zozfWA.ofCr4T.IVlkVQB4FgJUqWtJQZfg8zNsVWW
 gppV5_qLg.jQcJBVLkttP55D03hbGofbsePO3ttBhLBgkpI96N1x6coNGz3fWWfSszT.q_m0q4FN
 8B9wwVU.ieBSAQfVh3uLv5FMkYaKbTLffe3COi_oinW2gzo6ghbKxZLaGoVKcwGf16M0aN5grJDY
 2diiU4jCPrIOZ2TP1.rKi3cJTVms0kaBq4uCYEQ2Ca1Esei99VHLHL2MwdtMA.Zo1QzhmJTRKd1A
 u7DfEBn3yHSfaZiiW4NTea5VQkW1P.T35g_zv51qktpoxKemwezOCMjbya3DOmEzsZlgJ2ssdzXM
 cPa3s9t332W8Rc2yrpNiWVN01kglNEcRKSl.emNumeuvWJRhm2Wjfblwxlg--
X-Sonic-MF: <marklmi@yahoo.com>
X-Sonic-ID: 1e0af013-7a80-4da3-8253-cb7dd222620a
X-BeenThere: freebsd-ports@freebsd.org
Precedence: list
Content-Language: en-US
In-Reply-To: <20261031165007.0ecca810@mediamaster.perpetualthought.com>
X-Rspamd-Queue-Id: 4jHHYn3wZRz4Jdq
X-Spamd-Bar: -
X-Spamd-Result: default: False [-1.20 / 15.00];
	DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject];
	R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048];
	R_SPF_ALLOW(-0.20)[+ip4:34.2.64.0/19];
	RWL_MAILSPIKE_VERYGOOD(-0.20)[34.2.70.26:from];
	MIME_GOOD(-0.10)[text/plain];
	ASN(0.00)[asn:15169, ipnet:34.2.70.0/23, country:US];
	ARC_NA(0.00)[];
	FREEMAIL_FROM(0.00)[yahoo.com];
	TO_DN_SOME(0.00)[];
	FREEMAIL_ENVFROM(0.00)[yahoo.com];
	DWL_DNSWL_NONE(0.00)[yahoo.com:dkim];
	MIME_TRACE(0.00)[0:+];
	MID_RHS_MATCH_FROM(0.00)[];
	RCPT_COUNT_TWO(0.00)[2];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[34.2.70.26:from];
	RCVD_COUNT_TWO(0.00)[2];
	RCVD_TLS_LAST(0.00)[];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	MLMMJ_DEST(0.00)[ports@freebsd.org];
	DKIM_TRACE(0.00)[yahoo.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes