pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: cargo-c
pin <voidpin%protonmail.com@localhost> writes:
> On Wednesday, April 16th, 2025 at 2:25 PM, Greg Troxel <gdt%lexort.com@localhost> wrote:
>
>> pin voidpin%protonmail.com@localhost writes:
>> What is the set of platforms that can run rust-1.76 and cannot (even
>> with rust-bin) run the current version (1.85.1?)?
>
> It's my understanding that cross-compiled rust-bin should work on all platforms.
> Hence my question about the update, as I no longer see a reason to hold it back.
> But, perhaps he@ can comment.
> 32bits ARM cannot natively build rust > 1.76
I just looked more, and realized this update is blcoked on changing the
code that currently selects rust 1.76 for earmv7hf. I have in my local
tree:
--- rust/platform.mk 8 Apr 2025 09:31:06 -0000 1.31
+++ rust/platform.mk 16 Apr 2025 13:09:09 -0000
@@ -16,9 +16,10 @@ RUST_PLATFORMS+= ${rust_os}-*-${rust_arc
. endfor
.endfor
-.if ${MACHINE_PLATFORM:MNetBSD-*-earm*} && ${OPSYS_VERSION} < 100000
-RUST_DIR?= ../../lang/rust176
-.endif
+# rust-bin works on RPI3
+#.if ${MACHINE_PLATFORM:MNetBSD-*-earm*} && ${OPSYS_VERSION} < 100000
+#RUST_DIR?= ../../lang/rust176
+#.endif
RUST_DIR?= ../../lang/rust
.for rust_platform in ${RUST_PLATFORMS}
We are about to say "rust (upstream) is infeasiable on earm*, so on that
platform you have to have RUST_TYPE=bin", and it remains to make that
default (on platforms that rust is too piggy for, only).
Once we set RUST_TYPE=bin, the above can just be dropped.
>> What is the minimum rust version for new cargo-c?
>
> 1.84
That's crazy, and I'm even a little surprised. But since in pkgsrc,
either you can have 1.85.1, or you lose, I guess it doesn't actually
matter.
>> My take is that it's increasing less reasonable to hold things back for
>> netbsd-9 as it's more than 5 years old*, but that we need to have a path
>> for NetBSD 10 on earmv7hf-el with 1 GB of RAM (e.g. RPI2/3).
>
> Please see answer to the first question.
I guess we have a path, but it fails by default, and I should have said
something stronger.
Looking towards adding a conditional to set RUST_TYPE=bin:
Does lang/rust build on any 32-bit arm? I would think this is not
about NetBSD.
Does lang/rust build on i386? Is this a 32-bit CPU problem in
general, or is it just the arm build that is too piggy to fit in
32-bit VA?
Home |
Main Index |
Thread Index |
Old Index