FS#74399 - makepkg should provide $RUSTARCH during a build

Attached to Project: Pacman
Opened by Letu Ren (FantasqueX) - Friday, 08 April 2022, 09:03 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 December 2022, 10:43 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Currently, the Rust package guidelines[1] suggests to use cargo fetch --locked --target "$CARCH-unknown-linux-gnu" in the prepare stage. However, the problem is the semantic of $CARCH and the semantic of <arch><sub> of target triple in cargo fetch[2]. For example, like what is described in x86_64_v3 RFC[3], $CARCH is x86_64_v3 in x86_64_v3 which is incompatible with target triple in cargo fetch and will make a lot of mess. Instead of using this undefined behavior, I suggest exporting the $RUSTARCH flag to make the guideline more general.

[1] https://wiki.archlinux.org/title/Rust_package_guidelines
[2] https://doc.rust-lang.org/cargo/commands/cargo-fetch.html
[3] https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0002-march.rst
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 04 December 2022, 10:43 GMT
Reason for closing:  None
Additional comments about closing:  Moved to gitlab:
https://gitlab.archlinux.org/pacman/pacm an/-/issues/3

Loading...