git: b421d406a3ec - main - graphics/librsvg2-rust: fix build on powerpc64le
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Sep 30 14:47:21 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b421d406a3ec54bbd777daf98ea0112489da3021
commit b421d406a3ec54bbd777daf98ea0112489da3021
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-09-30 14:45:09 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-09-30 14:45:09 +0000
graphics/librsvg2-rust: fix build on powerpc64le
Add powerpc64le-unknown-freebsd target support to cfg_expr so that
system-deps can build:
thread 'main' panicked at 'Invalid TARGET: powerpc64le-unknown-freebsd', /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.52.0/vendor/system-deps/src/lib.rs:735:32
---
.../patch-vendor_cfg-expr_src_targets_builtins.rs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/graphics/librsvg2-rust/files/patch-vendor_cfg-expr_src_targets_builtins.rs b/graphics/librsvg2-rust/files/patch-vendor_cfg-expr_src_targets_builtins.rs
new file mode 100644
index 000000000000..a59c12448419
--- /dev/null
+++ b/graphics/librsvg2-rust/files/patch-vendor_cfg-expr_src_targets_builtins.rs
@@ -0,0 +1,19 @@
+--- vendor/cfg-expr/src/targets/builtins.rs.orig 2021-09-30 14:33:28 UTC
++++ vendor/cfg-expr/src/targets/builtins.rs
+@@ -1004,6 +1004,16 @@ pub const ALL_BUILTINS: &[TargetInfo<'static>] = &[
+ 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",
+ os: Some(Os::linux),
+ arch: Arch::powerpc64,
More information about the dev-commits-ports-all
mailing list