git: 9d28fde03c28 - main - devel/pylyzer: Fix build with rust-1.76.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Feb 2024 11:59:47 UTC
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=9d28fde03c284630be8ddce78b8ddac7bb452462 commit 9d28fde03c284630be8ddce78b8ddac7bb452462 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2024-02-10 11:36:39 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2024-02-19 11:59:02 +0000 devel/pylyzer: Fix build with rust-1.76.0 Import upstream patch [1] to fix the following error: error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> /wrkdirs/usr/ports/devel/pylyzer/work/pylyzer-0.0.51/cargo-crates/rustpython-ast-0.3.0/src/impls.rs:60:1 [1] https://github.com/RustPython/Parser/commit/29c4728dbedc7e69cc2560b9b34058bbba9b1303 PR: 276920 Approved by: portmgr (build fix blanket) --- devel/pylyzer/Makefile | 2 +- ...-cargo-crates_rustpython-ast-0.3.0_src_impls.rs | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/devel/pylyzer/Makefile b/devel/pylyzer/Makefile index 2106c80bbade..96e373102bb1 100644 --- a/devel/pylyzer/Makefile +++ b/devel/pylyzer/Makefile @@ -1,7 +1,7 @@ PORTNAME= pylyzer DISTVERSIONPREFIX= v DISTVERSION= 0.0.51 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MAINTAINER= yuri@FreeBSD.org diff --git a/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs b/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs new file mode 100644 index 000000000000..8fdeef915564 --- /dev/null +++ b/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs @@ -0,0 +1,24 @@ +https://github.com/RustPython/Parser/commit/29c4728dbedc7e69cc2560b9b34058bbba9b1303 + +--- cargo-crates/rustpython-ast-0.3.0/src/impls.rs.orig 2024-02-10 11:55:13 ++++ cargo-crates/rustpython-ast-0.3.0/src/impls.rs +@@ -54,11 +54,12 @@ impl<R> Expr<R> { + } + } + +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Expr, [u8; 72]); +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]); +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]); +-#[cfg(target_arch = "x86_64")] ++// TODO: make this a #[test] to avoid eq comparison ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Expr, [u8; 72]); ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]); ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]); ++// #[cfg(target_arch = "x86_64")] + static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);