From nobody Mon Apr 15 16:58:11 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 4VJCzS6zbQz5Gxdb for ; Mon, 15 Apr 2024 16:58:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJCzS6WrLz432Z; Mon, 15 Apr 2024 16:58:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713200292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oPZMrn/FGDCRkdkWkaaGzaBy0MgEzHQyj2q7jtKRgiE=; b=fix3GWa1IGPL7YUwWfOo9dJpzvn1y/9YRbTiNrhW9i2qvjMsEDxs+lCw4JeIe4eTDJ7Fm6 YYkjY3dzZ8tl1fenoWvG/xWJ+jczvuKTfkUNA4BLwiWFZOd6xfkJuVSpU6sGRRijLIWFbU ABA0+KwuYdYrXpNoTtjlG4eK5R4j1PkaB/ZCdeRHr1YUwxizCA/rnZYsZYeScu4bPDdL9x GIMGr4c0YhpwWU1RbzpWmXDvT0feFFDYyIBYbOQyqZpUW+nmkT26dOzENHV+alUO+idCS1 8PY57g7+DAOW98ePUms1c4hZWtX2B6OhPjGx9UA5kDN7GRTFLpdhatBAK+Wbww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713200292; a=rsa-sha256; cv=none; b=KveObTQZUBZaXmTips0MZsF8hSxqIbZH2hYIrul+Mgy/FczrgYr1ZdtHniUCY2MGCk3ND+ MCc+ljhfQkuQP6SjjEm5lkq41Gv7cPfY57e6FHpUxQ9+guydkZmtpq/w+iP5nR8TLXtY7s AqnbZDzTdKUMsP+XECgtJWmyt0T2jae1pGItdBjQMh7IgvdEfllzIiK4fzLu5uprvwIeIo oNXawofiw8X4kRAL5As7dRq04d+sg7rOpLlm5Tm/SRCOMQLxYgjjyh9NSzqH/UqFosJOPh HtRiaWsc8sOkG8UQT3Qi7UTq//6araVdU0NbxwVsjh1MLEEgxQOka8AWcXRhbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713200292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oPZMrn/FGDCRkdkWkaaGzaBy0MgEzHQyj2q7jtKRgiE=; b=Fp+eQz8MCDMPszF/DZN5qQj58RMAdP9+PzgDDh8DzT67wHqCVpcshLEOZM0RFvz5zi+cZ0 qIeNJjigbEZAOzUi2ca8E9BQNUcChkGLqbCxr4x9fSjflWVrCWqZgbSLyc9XVIO5rwzG0a 3deXRuPAReidPU83d+gvDCnGQMqMDO7EidiaumDKbj5vHrFI1k1Z6I+rS07GAJoNL2SVFS RB+3jkIVQXte729WMJzlQjl1/EZntxuP6SIb9MS7Yp5KvXv6zgwDZSHta2UNrqvQQu7Wuz 3FWC21iYC8NDFkFziL5NUbj82b6R2fGgYaRRk7HeVuBt4ZZmad+GTAAVlOthlw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VJCzS5XChz1BnX; Mon, 15 Apr 2024 16:58:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 83A2250D8D; Mon, 15 Apr 2024 18:58:11 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: holding rust at a particular version From: Dimitry Andric In-Reply-To: Date: Mon, 15 Apr 2024 18:58:11 +0200 Cc: Moin Rahman , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <559DA6D5-D6F1-4B47-99EA-DC0C0B37417F@FreeBSD.org> References: <20f77d23043622d68d6421bfdc9a1cc7@bsdforge.com> To: Chris X-Mailer: Apple Mail (2.3731.700.6.1.1) On 15 Apr 2024, at 18:48, Chris wrote: >=20 > On 2024-04-15 09:31, Moin Rahman wrote: >>> On Apr 15, 2024, at 6:27 PM, Chris wrote: >>> On 2024-04-15 06:33, void wrote: >>>> Is it possible, either within poudriere or using traditional ports, >>>> to not have ports building fetching latest rust? >>>> rust 1.76 is already installed. 1.77 is in the ports tree. >>>> 1.76 is the latest for -current on arm64 on the pkg builders. >>>> if I go into the ports tree and build something needing rust, >>>> it'll build 1.77 rust locally instead of using the = already-installed 1.76. >>>> which would tie the machine up for hours if not days if allowed to = proceed. >>>> Can this be avoided? >>> make.conf(5) is your friend. You should be able to add >>> DEFAULT_VERSIONS+=3Drust1.76 >>> to accomplish your task. NOTE you may want to comment this line = later >>> should it cause problems with other ports that aren't your current = target. >>> IOW your choices here should be chosen carefully and watched = closely. It's >>> easy to set it and forget it. :) >>> To get the right permutation. Have a look in = Mk/bsd.default-versions.mk >>> -- >>> --Chris Hutchinson >> This is not correct. :/ > I'm sorry to hear this. For the sake of clarity; Is this just my = ignorance for rust? > I have no difficulty accomplishing this task with other targets -- = perl, php, *SQL,... > So long as the *chosen* version is still available within the ports = tree. Granted; > this isn't a one-size-fits-all situation. Much the same as mixing = ports && packages. > But if carefully curated, has worked for me. The problem is that there is only one lang/rust. There are no "versioned" port versions, like lang/phpXY, lang/pythonXYZ, etc. There is a lang/rust-nightly port, but I don't think it is meant for general consumption. That said, I don't know if it is technically possible to have more than one rust port. I would guess the whole crate system depends on which rust version built it? If so, you would also have to "flavorize" all the rust crates and their sub-ports. It sounds like quite a lot of work, while in the mean time the rust releases keep on coming fast. :) -Dimitry