Date: Tue, 31 Dec 2024 14:00:38 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 007dfde66093 - main - biology/coverm: fix build with char being unsigned Message-ID: <202412311400.4BVE0cKr053117@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=007dfde66093b7995840d9af068404d3f177f227 commit 007dfde66093b7995840d9af068404d3f177f227 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-12-26 16:48:39 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-12-31 13:59:43 +0000 biology/coverm: fix build with char being unsigned error[E0308]: mismatched types --> /wrkdirs/usr/ports/biology/coverm/work/CoverM-0.7.0/cargo-crates/rust-htslib-0.44.1/src/bam/record.rs:2324:17 | 2319 | let ret = hts_sys::bam_mods_query_type( | ---------------------------- arguments to this function are incorrect ... 2324 | &mut canonical, | ^^^^^^^^^^^^^^ expected `*mut u8`, found `&mut i8` | = note: expected raw pointer `*mut u8` found mutable reference `&mut i8` --- ...cargo-crates_rust-htslib-0.44.1_src_bam_record.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/biology/coverm/files/patch-cargo-crates_rust-htslib-0.44.1_src_bam_record.rs b/biology/coverm/files/patch-cargo-crates_rust-htslib-0.44.1_src_bam_record.rs new file mode 100644 index 000000000000..04465b46c6d1 --- /dev/null +++ b/biology/coverm/files/patch-cargo-crates_rust-htslib-0.44.1_src_bam_record.rs @@ -0,0 +1,20 @@ +--- cargo-crates/rust-htslib-0.44.1/src/bam/record.rs.orig 2024-12-26 16:34:58 UTC ++++ cargo-crates/rust-htslib-0.44.1/src/bam/record.rs +@@ -2216,7 +2216,7 @@ pub struct BaseModificationMetadata { + pub struct BaseModificationMetadata { + pub strand: i32, + pub implicit: i32, +- pub canonical: i8, ++ pub canonical: c_char, + } + + /// struct containing the internal state required to access +@@ -2314,7 +2314,7 @@ impl BaseModificationState<'_> { + unsafe { + let mut strand: i32 = 0; + let mut implicit: i32 = 0; +- let mut canonical: i8 = 0; ++ let mut canonical: c_char = 0; + + let ret = hts_sys::bam_mods_query_type( + self.state,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412311400.4BVE0cKr053117>