From nobody Tue Apr 16 13:47:52 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 4VJljT4PDqz5GttG for ; Tue, 16 Apr 2024 13:47:57 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) (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 4VJljS2vbjz47m7 for ; Tue, 16 Apr 2024 13:47:56 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm2 header.b=SKhHtWLz; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=NAoTYo7f; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.155 as permitted sender) smtp.mailfrom=void@f-m.fm Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id EABD71800156 for ; Tue, 16 Apr 2024 09:47:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 16 Apr 2024 09:47:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1713275274; x=1713361674; bh=MvFutmJjC6 luBZu/Q0ZlTq3WL61f7aOH75LAOIO4MRM=; b=SKhHtWLzNSV3wAPjrNK0e08Fl2 Y+ImUch9PrXcG0d9pSJK1fdlUBZa+MAN/i37MVH9zCJwNmHKZfh4OqdTmwPIDmCf Iw+C5iefW8cLlc8Q2h8cJiqGT3i62Gc89dbznrTtx2EQ11zlPbT4zOv4eNvGaFtA Y4B/xh1kN4kWIm+VxIsgGwp4briWvv3kR5lahR5jHYabuGIzMinRPOuZ0yWheT5T si7J8BZOpJ7NEP1Qx5p6pVXsa2rBsI1XrrFI3zRdDstx7qqSJOWNU4Z01kxIZrEJ FMzXuUBbHs9VsppSagBQSXwE3iE4q7dKCTZmNV3dR0fJjLIfmvJKwkNnPpHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1713275274; x=1713361674; bh=MvFutmJjC6luBZu/Q0ZlTq3WL61f 7aOH75LAOIO4MRM=; b=NAoTYo7fnKIMdjuj3q9U1kKCwOYrZkyqCZYfqjYxyLXt VI52g+ParBg8jwKi+yuZ99h58rnrtcMs80BQ55/PBqGmT2AXinepuRydKsHpCV2h fL/dsY/yQzOEUjKMwMHo5M5Yzk4fzfwidy2R8qqn7IRy/4qNzy5vVlV26VsqxGXo m0AQSWnztheLJJm80XCBUZQ1nHztk6be3tT9PV/dleCFNCuHpx0CVIS/690pEM7J VHzJ563hYGXQnVBvqvEmT8a9XVpKVh6MhnmZV3/nRoRiMumef2ZCBJGLeK1hHiqr W/WSka1/KQNwjwYOuqpEAVd6e1Inoln5eF+k70gppg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejiedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepkeeutdelkeetvdeggeetgfehjeettddvgeduieeiieehgfetvdeivedtte eileeknecuffhomhgrihhnpehvvghrshhiohhnshdrmhhkpdgtrghtfhhlrghprdhorhhg necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhhoih gusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 16 Apr 2024 09:47:53 -0400 (EDT) Date: Tue, 16 Apr 2024 14:47:52 +0100 From: void To: freebsd-ports@freebsd.org Subject: Re: holding rust at a particular version Message-ID: Mail-Followup-To: freebsd-ports@freebsd.org References: <202404160319.43G3JYV4025119@donotpassgo.dyslexicfish.net> 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; format=flowed Content-Disposition: inline In-Reply-To: <202404160319.43G3JYV4025119@donotpassgo.dyslexicfish.net> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.80)[-0.796]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm2,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.128/27]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.155:from]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4VJljS2vbjz47m7 On Tue, Apr 16, 2024 at 04:19:34AM +0100, Jamie Landeg-Jones wrote: >I don't use poudriere, but for normal port buidling, and >specifically for rust, set this is /etc/make.conf: > >CARGO_BUILDDEP= "any-version" this might have fixed it for me - testing right now >If you then install a new rust port, it won't require updating rust. > >However, as you noticed, all the rust ports get version-bumped when >there is a new rust, so presumably if your setup does a "build all new ports", >then they will be affected by this. yeah. The other method would be taking the commit back to 1.76 and checking that none of the ports I'm using which are dependent on rust are themselves requiring a version bump for vuln reasons. 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. >Secondly, I'm sure some people reading this are screaming in horror - there >are obviously reasons why it's been decided to bump all the rust ports, >support and security issues based on previous rust versions being just two, >so, take this advice with a pinch of salt. I don't know what the reasons are. If it's to patch a vuln, and that vuln is either in rust itself or in something that needs it to build, then fair enough, it's just going to have to build latest rust. >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. thanks for everything. your link looks interesting. --