DFSG NEW Queue

DFSG, Licensing & New Packages Team

rust-libffi-sys 4.2.2+ds-1

Package Information

DescriptionRaw Rust bindings for libffi - Rust source code

Source code for Debianized Rust crate "libffi-sys"

MaintainerDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed ByMichael Schwarz <m.schwarz.sec@gmail.com>
Sponsortsimonq2@debian.org
Distributionunstable
Architectureany
VCSgit: https://salsa.debian.org/rust-team/debcargo-conf.git [src/libffi-sys] (browse)
Trackerhttps://tracker.debian.org/pkg/rust-libffi-sys
Uploaded2 hours ago

New Package Report

.changes◂
Architecturesource amd64
Distributionunstable
DateMon, 30 Nov 2026 16:08:02 -0600
Sourcerust-libffi-sys
Version4.2.2+ds-1
Changed-ByMichael Schwarz <m.schwarz.sec@gmail.com>
Changelog◂
rust-libffi-sys (4.2.2+ds-1) unstable; urgency=medium
 .
   [ Michael Schwarz ]
   * Package libffi-sys 4.2.2 from crates.io using debcargo 2.8.4
 .
   [ Simon Quigley ]
   * Keep linking libffi when the check_only feature is enabled.
.dsc◂
Priorityoptional
Componentmain
Package-Listlibrust-libffi-sys-dev deb rust optional arch=any
Sectionrust
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libffi-sys
Upstream-Contact: Jesse A. Tov <jesse.tov@gmail.com>
Source: https://github.com/libffi-rs/libffi-rs
Files-Excluded:
 libffi/**
 include/msvc/**

Files: *
Copyright: 2026 Jesse A. Tov <jesse.tov@gmail.com>
License: Expat or Apache-2.0

Files: debian/*
Copyright:
 2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
 2026 Michael Schwarz <m.schwarz.sec@gmail.com>
License: Expat or Apache-2.0

License: Apache-2.0
 Debian systems provide the Apache 2.0 license in
 /usr/share/common-licenses/Apache-2.0

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 0 blocker, 0 important, 1 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 1 hour ago.

Report◂

DFSG NEW review for rust-libffi-sys version 4.2.2+ds-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 0 important, 1 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

debian/copyright is machine-readable DEP-5 and covers the whole tree: Files: * (Expat or Apache-2.0) for the crate and Files: debian/* for the packaging. Upstream's Cargo.toml declares license = "MIT OR Apache-2.0", which matches: Expat is copyright-format's short name for MIT, and the full Expat text is included while Apache-2.0 is referenced at /usr/share/common-licenses/Apache-2.0, as Policy 12.5 allows. Files-Excluded documents the +ds repack (bundled libffi and MSVC headers), both absent from the tree; the only other copyright holders found are the ones named. No non-free terms, no unlicensed files, no built or minified files.

Packaging

Standard debcargo-generated packaging: compat 13 with dh-sequence-cargo, dh $@ --buildsystem cargo, matching X-Cargo-Crate/version, arch-qualified <!nocheck> Rust build dependencies (dh_auto_build only stages the crate, cargo runs in the test step, which dh skips under DEB_BUILD_OPTIONS=nocheck at compat 13), a DEP-3-documented Debian patch whose Forwarded: not-needed is right for the +ds repack, autopkgtests, current Standards-Version (4.7.4 against Policy 4.7.4.1), and sane changelog/Vcs fields. Only defect: pkgconf is declared although no build step uses pkg-config.

Issues

minor packaging 1. pkgconf is an unused dependency in Build-Depends-Arch and in librust-libffi-sys-dev Depends ◂
  • Files: debian/debcargo.toml:7, debian/control:10, debian/control:28, build/not_msvc.rs:63, debian/patches/system-use.patch
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/debcargo.toml: depends = ["libffi-dev", "pkgconf"]; debian/control: pkgconf <!nocheck> and pkgconf under Depends; build/not_msvc.rs: pub fn probe_and_link() { println!("cargo:rustc-link-lib=dylib=ffi"); }, and system-use.patch makes that the only non-MSVC path.
  • Problem: No part of the build configures, compiles or links through pkg-config: the patched build script only emits a -lffi link directive, so libffi-dev alone supplies what is needed. The extra Build-Depends-Arch entry adds pkgconf to every build-dependency closure of the package, and the Depends entry installs pkgconf for every consumer of the -dev package, for no benefit.
  • Fix: Drop pkgconf from [packages.lib] depends in debian/debcargo.toml and regenerate debian/control, keeping libffi-dev; no other change is needed.
Verified ◂
  • The prescan listed no files to account for; its author check (13 files scanned) found every holder named in debian/copyright.
  • Read the full debian/ directory: copyright, copyright.debcargo.hint, control, changelog, rules, debcargo.toml, source/format, patches/series and system-use.patch, tests/control, upstream/metadata. No maintainer scripts, .install/.links/.dirs files.
  • Full upstream inventory is 13 files (.cargo_vcs_info.json, Cargo.lock, Cargo.toml{,.orig}, CHANGELOG.md, README.md, release.toml, build/{build,common,msvc,not_msvc}.rs, src/{arch,lib}.rs); no LICENSE/COPYING file exists in the crate, and Cargo.toml alone declares MIT OR Apache-2.0.
  • Expat is the correct DEP-5 short name for MIT (copyright-format 7.1); the Expat text in debian/copyright is the standard permission notice and names Jesse A. Tov; Apache-2.0 is pointed at /usr/share/common-licenses/Apache-2.0 (Policy 12.5).
  • grep over the tree for Copyright/(C)/©/SPDX/Licensed under/Permission is hereby granted/GNU/Apache/MPL/public domain/All rights reserved found no licence notices other than the Cargo.toml licence field and the README licence badges; src/lib.rs and src/arch.rs contain only libffi ABI constants and doc comments, no third-party notices.
  • Files-Excluded libffi/** and include/msvc/** match nothing in the tree; debian/patches/system-use.patch routes non-MSVC builds to the system libffi, consistent with the +ds repack, and has DEP-3 headers with a documented vendor origin.
  • debian/control: debhelper-compat 13 (supported, not discouraged per the debhelper tool), dh-sequence-cargo is provided by dh-cargo 34, Standards-Version 4.7.4 matches Policy 4.7.4.1 in its first two components, and all named dependencies exist (librust-cc-1+default-dev via librust-cc-dev 1.2.60, libffi-dev 3.8.x).
  • debian/rules %: dh $@ --buildsystem cargo with override_dh_auto_test: dh_auto_test -- test --all; the debhelper tool confirms compat 13 makes dh skip that override when DEB_BUILD_OPTIONS=nocheck, so the <!nocheck> Rust dependencies are only needed by the test step, which dh-cargo's build step does not run.
  • Changelog 4.2.2+ds-1/unstable, X-Cargo-Crate-Version 4.2.2 and the debian/tests/control crate version agree; autopkgtests present and the dsc carries Testsuite: autopkgtest.
  • uscan found upstream releases with debian/watch; a newer upstream version is available (upstream 4.2.4, packaged 4.2.2+ds), which is not a fault of the package.
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
  • Only the +ds repack tarball accompanies the upload, so the Files-Excluded patterns could not be compared against the pristine crates.io tarball; they were verified only against the unpacked repacked tree.
  • The package was not built or tested.
Proposed changes ◂

None.

Uploader's response to the LLM review

The uploader was emailed about the review 1 hour ago.

Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.

Back to Dashboard | View all reviews for this package