1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

graphics/librsvg2-rust: fix build on powerpc64le and powerpc

1. There are now two copies of cfg_expr used, both need to be patched.
2. For some reason, when powerpc64le block in cfg_expr 0.9 was lower than it
is currently, the target failed to be identified as supported.
This commit is contained in:
Piotr Kubaj 2022-01-05 19:04:58 +00:00
parent b8d60a503f
commit 51cc50759b
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,38 @@
https://github.com/EmbarkStudios/cfg-expr/commit/f8c59a8dccd0
--- vendor/cfg-expr-0.8.1/src/targets/builtins.rs.orig 2021-09-16 01:15:26 UTC
+++ vendor/cfg-expr-0.8.1/src/targets/builtins.rs
@@ -894,6 +894,16 @@ pub const ALL_BUILTINS: &[TargetInfo<'static>] = &[
endian: Endian::little,
},
TargetInfo {
+ triple: "powerpc-unknown-freebsd",
+ os: Some(Os::freebsd),
+ arch: Arch::powerpc,
+ env: None,
+ vendor: Some(Vendor::unknown),
+ family: Some(Family::unix),
+ pointer_width: 32,
+ endian: Endian::big,
+ },
+ TargetInfo {
triple: "powerpc-unknown-linux-gnu",
os: Some(Os::linux),
arch: Arch::powerpc,
@@ -1002,6 +1012,16 @@ pub const ALL_BUILTINS: &[TargetInfo<'static>] = &[
family: Some(Family::unix),
pointer_width: 64,
endian: Endian::big,
+ },
+ TargetInfo {
+ triple: "powerpc64le-unknown-freebsd",
+ os: Some(Os::freebsd),
+ arch: Arch::powerpc64,
+ env: None,
+ vendor: Some(Vendor::unknown),
+ family: Some(Family::unix),
+ pointer_width: 64,
+ endian: Endian::little,
},
TargetInfo {
triple: "powerpc64le-unknown-linux-gnu",

View File

@ -19,7 +19,7 @@ https://github.com/EmbarkStudios/cfg-expr/commit/f8c59a8dccd0
triple: Triple::new_const("powerpc-unknown-linux-gnu"),
os: Some(Os::linux),
arch: Arch::powerpc,
@@ -1002,6 +1012,16 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
@@ -992,6 +1002,16 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
family: Some(Family::unix),
pointer_width: 64,
endian: Endian::big,
@ -35,4 +35,4 @@ https://github.com/EmbarkStudios/cfg-expr/commit/f8c59a8dccd0
+ endian: Endian::little,
},
TargetInfo {
triple: Triple::new_const("powerpc64-unknown-linux-musl"),
triple: Triple::new_const("powerpc64-unknown-linux-gnu"),