Review: rust-rammap-core 1.2.0-1
Package Information
| Description | core alignment/read-mapping library for rammap - Rust source code Source code for Debianized Rust crate "rammap-core" for use in Debian builds. Other Rust packages wishing to use the "rammap-core" crate can either add the "librust-rammap-core-dev" package to the build dependencies, or use the packaged Debian source code in the Rust source build. |
|---|---|
| Maintainer | Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org> |
| Changed By | Andreas Tille <tille@debian.org> |
| Sponsor | tille@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/med-team/rust-rammap-core.git (browse) |
| Closes | #1156124 |
| Tracker | https://tracker.debian.org/pkg/rust-rammap-core |
| Uploaded | 2 days ago |
New Package Report
.changes
| Changed-By | Andreas Tille <tille@debian.org> |
|---|---|
| Architecture | source amd64 |
| Distribution | unstable |
| Date | Wed, 02 Dec 2026 18:58:36 +0100 |
| Source | rust-rammap-core |
| Version | 1.2.0-1 |
Changelog
rust-rammap-core (1.2.0-1) unstable; urgency=medium . * Initial release (Closes: #1156124)
.dsc
| Package-List | librust-rammap-core-dev deb rust optional arch=any |
|---|---|
| Section | rust |
| Priority | optional |
| Component | main |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rust-rammap-core Upstream-Contact: Jing Wang <wangjwchn@gmail.com> Source: https://github.com/jwanglab/rammap Files: * Copyright: 2018-2026 Jing Wang / jwanglab License: Expat Files: debian/* Copyright: 2026 Andreas Tille <tille@debian.org> License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DFSG Assistant LLM REVIEW 1 blocker, 1 important, 0 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 2 days ago.
Report
DFSG NEW review for rust-rammap-core version 1.2.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: No
- Issues: 1 blocker, 1 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The crate itself is MIT/Expat (Cargo.toml license = "MIT", README "License MIT"), the Expat text in debian/copyright is correct, and the prescan found every holder that is written down in the tree. But substantial parts of src/ are documented in-tree as ports of minimap2's C sources (Port of pe.c:76-177 (mm_pair), implements mm_set_parent logic from hit.c:125-186) and reproduce ksw2's kernel internals, while debian/copyright attributes every file to Jing Wang / jwanglab only. minimap2/ksw2 is MIT with its own copyright holder, whose notice the licence requires to be retained; debian/copyright is therefore incomplete for code shipped and built from librust-rammap-core-dev.
Packaging
The packaging is otherwise conventional debcargo/dh-cargo output: correct Build-Depends, compat 14, DEP-3 patches that only relax deps or drop wasm32-only ones, a sane test setup, current Standards-Version and a clean changelog. The one control bug is the Provides field, which does not match the crate version: it offers librust-rammap-core-0* and -1.1* virtual packages that debcargo never generates for a 1.2.0 crate and omits the -1.2* ones a dependent would require.
Issues
blocker licensing 1. debian/copyright names only Jing Wang for code ported from minimap2/ksw2 (Heng Li) ◂
- Files:
src/align/pair.rs:24,src/align/map.rs:712,src/align/filter.rs:98,src/align/dp/single.rs:20-46,src/align/dp/lw.rs:106-130,debian/copyright:7 - Basis: inferred from what was read, not seen directly
- Evidence:
/// Port of pe.c:76-177 (mm_pair).(src/align/pair.rs:24);/// Port of mm_filter_suboptimal_multi_segment (pe.c:6-43).(src/align/map.rs:712);/// Assign parents based on query overlap (implements mm_set_parent logic from hit.c:125-186)(src/align/filter.rs:98); DP kernels keep ksw2's internals (z_drop,end_bonus,approx_max,flag1_/flag2_/flag8_/flag16_,sc_mch_/sc_mis_). debian/copyright:7 saysCopyright: 2018-2026 Jing Wang / jwanglaband no other holder. - Problem: pe.c and hit.c are minimap2's sources and the DP kernels mirror ksw2; both are MIT-licensed, copyright Heng Li. A translation into Rust is a derivative work, and the MIT text reproduced in debian/copyright itself requires that
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.The source files are shipped in librust-rammap-core-dev (and compiled by every dependent), so Policy 12.2/2.3 require the holder to be stated; it is nowhere in the package. - Fix: Add a Files stanza for the ported sources (src/align/map.rs, pair.rs, filter.rs, extend.rs, junc.rs, split.rs, seed.rs, index.rs and src/align/dp/*) naming Heng Li / minimap2-ksw2 with the MIT licence (the Expat text already present can be reused), and ask upstream to put the corresponding notice in the files.
important packaging 2. Provides offers librust-rammap-core-0* and -1.1* and omits -1.2* for a 1.2.0 crate ◂
- Files:
debian/control:56-64 - Basis: checked, in the package or with a reference tool
- Evidence:
librust-rammap-core-0+default-dev,...-0+parallel-dev,...-0-dev,librust-rammap-core-1.1+default-dev,...-1.1+parallel-dev,...-1.1-devare provided, then...-1.2.0+default-dev,...-1.2.0+parallel-dev,...-1.2.0-dev. debcargo-generated control for a 1.x crate provides -, -. and -.. and no -0: apt-cache shows librust-rayon-dev 1.12.0 provideslibrust-rayon-1-dev,-1.12-dev,-1.12.0-devand no-0; librust-memchr-dev 2.8.3 likewise provides-2,-2.8,-2.8.3. - Problem: The versioned virtual packages do not describe this package:
librust-rammap-core-1.2+*is missing, so a dependent built against rammap-core 1.2 cannot satisfylibrust-rammap-core-1.2+parallel-dev, while the package falsely claims to be the 0.x and 1.1 API. This is not output debcargo can generate, so the field was hand-edited and drifted from the 1.2.0 crate version. - Fix: Regenerate debian/control with debcargo for rammap-core 1.2.0, or replace the three
1.1entries with1.2and drop the three0entries.
Verified ◂
- Read debian/copyright in full: DEP-5 with the exact Format URL; Expat text matches Cargo.toml
license = "MIT"and the README License section; Files: * covers the crate and debian/* has its own stanza. - Grepped all 43 upstream files (src/, examples/, Cargo.toml, Cargo.toml.orig, Cargo.lock, .cargo_vcs_info.json, README.md, .cargo_vcs_info.json) for copyright/licence notices: no LICENSE/COPYING/NOTICE/AUTHORS file, no SPDX header, no copyright line anywhere; the prescan's holder check (all holders named) is consistent with that, but it cannot see the unattributed ports reported above.
- Cargo.lock, Cargo.toml.orig and .cargo_vcs_info.json are cargo-generated metadata for a crate whose Cargo.toml only declares
license = "MIT"; they are covered by Files: * and carry no separate holder. - All three patches in debian/patches are DEP-3 (Description/Author/Origin/Forwarded/Last-Update) and only drop wasm32-only dependencies, drop the rayon web_spin_lock feature, and relax hashbrown 0.15 to 0.16; none brings in third-party work.
- src/align/wasm_lib.rs is gated by
#[cfg(target_arch = "wasm32")](src/align/mod.rs:50-51), so dropping the wasm dependencies is harmless for native builds; the removedwasm-threadsfeature is only referenced in that module. - Checked the dependencies named in debian/control against the archive: librust-hashbrown-dev 0.16.1-2+b1 provides
+serde/+defaultand the 0.16 names, and librust-rayon-dev 1.12.0, librust-thiserror-dev 2.0.21, librust-rustc-hash-dev 2.1.3, librust-bincode-1-dev 1.3.3, librust-anyhow-dev 1.0.104, librust-bitflags-dev 2.13.2 and librust-flate2-dev 1.1.11 all exist and provide the names used. - dh-cargo 34 Depends: cargo, so
cargo:native <!nocheck>cannot break a nocheck build; rustc/libstd-rust-dev are only used by the test step, and at compat 14 dh skips the override_dh_auto_test target when DEB_BUILD_OPTIONS has nocheck (sub testin the cargo buildsystem and dh's handling of overrides checked). - debian/rules'
dh_auto_test -- test --allmatches dh-cargo's cargo buildsystem test invocation; the two examples only use API re-exported from src/lib.rs, so the autopkgtest--all-targetsruns are buildable. - Standards-Version 4.7.4 against Policy 4.7.4.1 is current (first two components match); changelog 1.2.0-1/unstable with Closes: #1156124 is sane; Vcs-Git/Vcs-Browser and Homepage are consistent.
- No built, minified or generated binaries in the tree; the SIMD kernels are hand-written Rust. The word
licensein src/align/dp/mod.rs:8,27 (AVX-512 license throttling) refers to CPU frequency licensing, not a copyright term. - The prescan listed no files beyond its holder summary (no built files, no unusual licence wording, no missing holders found by name); there are no files to explain individually.
- uscan found the packaged version as the newest upstream release (upstream
1.2.0, packaged1.2.0).
Not confirmed ◂
- minimap2 is not installed on the reviewing system, so its licence text could not be read from /usr; the attribution issue rests on the in-tree
Port of pe.c/hit.cstatements plus knowledge that minimap2/ksw2 is MIT, copyright Heng Li. - Whether the upstream repository ships a LICENSE file (absent from the crates.io tarball) that already names Heng Li; debian/copyright would still be the file Debian must get right.
Proposed changes ◂
None.
Uploader's response to the LLM review
The uploader rejected this upload in response to the review.
Review Information
rejected — allocated to dfsg-uploader 2 days ago, started 2 days ago, completed 2 days ago.
Final Comment
The uploader rejected this upload in response to the automated (LLM) review of it, so that they can fix the problems it found and upload again.
The uploader said:
I disagree with the licensing blocker, but the hint to work on d/copyright is well perceived and I'll follow it in a subsequent upload. Thank you for the helpful review