From nobody Tue Apr 16 14:24:16 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 4VJmWT6HRpz5GxnW for ; Tue, 16 Apr 2024 14:24:21 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4VJmWT3vyMz4J2d for ; Tue, 16 Apr 2024 14:24:21 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-ports@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 43GEOGaQ049027; Tue, 16 Apr 2024 15:24:16 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 43GEOGpa049026; Tue, 16 Apr 2024 15:24:16 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202404161424.43GEOGpa049026@donotpassgo.dyslexicfish.net> Date: Tue, 16 Apr 2024 15:24:16 +0100 Organization: Dyslexic Fish To: void@f-m.fm, freebsd-ports@FreeBSD.org Subject: Re: holding rust at a particular version References: <202404160319.43G3JYV4025119@donotpassgo.dyslexicfish.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 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: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Tue, 16 Apr 2024 15:24:16 +0100 (BST) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US] X-Rspamd-Queue-Id: 4VJmWT3vyMz4J2d void wrote: > The entire exercise is to get round having to build latest rust > locally on a weak system. Rust is a special case because it won't > build under qemu. rust on arm64 pkg servers is 1.76 but in > ports it's 1.77. Yeah, similar reason here. I know it's "buyer beware", but it's a risk I'm willing to take on my small arm boxes. > >On my slower machines I less care about, I have a script that automatically > >sets the DEFAULT_VERSIONS for various things (in a file /var/run/port-default.versions.mk > >that is loaded by make.conf) to the latest currently installed version - but > >only if that version is still a valid port in the ports tree. > > > >It's here if you're interested: https://www.catflap.org/jamie/freebsd/ > > The DEFAULT_VERSIONS for rust in /var/run/port-default.versions.mk > are either rust or rust-nightly. I can't see how the version can be held > to a numeric value here. Yes, sorry, the DEFAULT_VERSIONS thing I mentioned was referring to the more general issue with other ports, and not the issue you're having with rust. For rust, stick with the CARGO_BUILDDEP mentioned earlier. See /usr/ports/Mk/Uses/cargo.mk for more info! > > thanks for everything. your link looks interesting. Cheers, feedback welcome!