Article View: muc.lists.freebsd.ports
Article #138Re: Building offline cache for port of node application.
From: Leonard Rucker
Date: Sun, 01 Nov 2026 07:01
Date: Sun, 01 Nov 2026 07:01
95 lines
7931 bytes
7931 bytes
On Sat, 31 Oct 2026 18:39:05 -0700 Mark Millard <marklmi@yahoo.com> wrote: > 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. > I don't think LTO was involved. I emabled it and did a build which didn't change anything I then enabled PORT_LLVM but did not disable LTO... I could provide logs too if it would help. > -- 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:
<20261101000152.5af78aa7@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-mailReferences:
<> <2b3346a7-e1c7-4b50-ba42-f28f8a33f178@yahoo.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: Sun, 1 Nov 2026 00:01:52 -0700 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-ports@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <20261101000152.5af78aa7@mediamaster.perpetualthought.com> References: <> <2b3346a7-e1c7-4b50-ba42-f28f8a33f178@yahoo.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="12276"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793516541; 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=iQffJA2sBBpbyKIdzhYWE67bnN419y8K+eqFEmvAUtM=; b=RInZ8Rc29EKyiVIToVQkBIH0jrc1yrL1M0+QhXR8yxoq/FTdyIPkF1ruLbpsCxU8M7OF6g Rb2vDX0/vF9XKLelOqOrKm/s54aLHCXLLawF44FEziCHeV9/5wpogbS4ma8szIyFGCtSVT ggxpTDWUEWPG3Ik0uNgMyN3OKlQajZbB7ZGbelFaBmW6wIUMKmER0PvFcXX5vlEAmDCSHa 5FQKoyTeofl8t1jwpY4Tnm5bKkNApR5IUE08Kh9oOHCoJEuOlwqaHccBThgk3m8XLbMPgP RE42a/FnpJYmfe5U0DYLh3EdsOnYvD/5kdlU5Bhier8hkYIdVVXUO26bWp37sw== X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Authentication-Results: mx1.freebsd.org; dkim=pass header.d=perpetualthought.com header.s=mail header.b=gaDb3np8; dkim=pass header.d=perpetualthought.com header.s=mail header.b=gaDb3np8; 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=1793516456; bh=KUYmQrRhqreyD9dYNHhlSmrb41T0/a1/F8aRHSaEt9k=; h=Date:From:To:Subject:In-Reply-To:References; b=gaDb3np8iAKv49PKDPZVPUsqp1whM18xa5RFfNn1QptC2xuf9yBmUPWIJuuGrZFgY OLeZ0WnE3GuDHx/9RSBodAT6Cr1enOUOooQDFKHYuBoixkUBaBqsjPfW+xkb3QJS0w bOmOqGHl4kRp+B3CurgWnqnpG812Upv2WFVK63bM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=perpetualthought.com; s=mail; t=1793516456; bh=KUYmQrRhqreyD9dYNHhlSmrb41T0/a1/F8aRHSaEt9k=; h=Date:From:To:Subject:In-Reply-To:References; b=gaDb3np8iAKv49PKDPZVPUsqp1whM18xa5RFfNn1QptC2xuf9yBmUPWIJuuGrZFgY OLeZ0WnE3GuDHx/9RSBodAT6Cr1enOUOooQDFKHYuBoixkUBaBqsjPfW+xkb3QJS0w bOmOqGHl4kRp+B3CurgWnqnpG812Upv2WFVK63bM= In-Reply-To: <2b3346a7-e1c7-4b50-ba42-f28f8a33f178@yahoo.com> X-BeenThere: freebsd-ports@freebsd.org Precedence: list X-Rspamd-Queue-Id: 4jHQkC429Wz50ry 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)[freebsd-ports@FreeBSD.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-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