DFSG NEW Queue

DFSG, Licensing & New Packages Team

rust-bat 0.26.1+ds-4

Package Information

DescriptionCat(1) clone with wings - Rust source code

Source code for Debianized Rust crate "bat"

MaintainerDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed BySylvestre Ledru <sylvestre@debian.org>
Sponsorsylvestre@debian.org
Distributionunstable
Architectureany all
VCSgit: https://salsa.debian.org/rust-team/debcargo-conf.git [src/bat] (browse)
Closes#1142805
Popcon Installs6728
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/rust-bat
Uploaded3 hours ago

New Package Report

.changes◂
Changed-BySylvestre Ledru <sylvestre@debian.org>
Architecturesource all amd64
Distributionunstable
DateWed, 02 Dec 2026 07:37:55 +0100
Sourcerust-bat
Version0.26.1+ds-4
Changelog◂
rust-bat (0.26.1+ds-4) unstable; urgency=medium
 .
   * Team upload.
   * Package bat 0.26.1 from crates.io using debcargo 2.8.4
   * Ship syntaxes.bin, themes.bin and acknowledgements.bin in the new
     unversioned arch:all package bat-assets, in /usr/share/bat/assets/.
     librust-bat-dev depends on it and its assets/ directory now contains
     symlinks to these files. (Closes: #1142805)
   * Also ship LICENSE-MIT in /usr/share/bat/assets/ for users of the
     assets (e.g. presenterm).
.dsc◂
Sectionutils
Priorityoptional
Componentmain
Package-Listbat deb utils optional arch=any
bat-assets deb utils optional arch=all
librust-bat-dev deb utils optional arch=any
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bat
Upstream-Contact: David Peter <mail@david-peter.de>
Source: https://github.com/sharkdp/bat
Files-Excluded:
 tests/benchmarks/**
 tests/examples/**
 tests/syntax-tests/**
 tests/scripts/**

Files: *
Copyright:
 2018-2025 David Peter <mail@david-peter.de>
 2018-2025 bat-developers (https://github.com/sharkdp/bat).
License: MIT or Apache-2.0

Files: debian/*
Copyright:
 2018-2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
 2018-2019 Paride Legovini <paride@debian.org>
      2019 Helen Koike <helen@koikeco.de>
License: MIT 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: MIT
 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.

License: BSD-2-clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
 met:
 .
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
 .
     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

DFSG Assistant LLM REVIEW 2 blocker, 0 important, 3 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 hours ago.

Report◂

DFSG NEW review for rust-bat version 0.26.1+ds-4

Summary

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

Licensing

debian/copyright is valid DEP-5 and correctly covers bat's own MIT/Apache-2.0 code, but the three asset blobs are serialized caches built from dozens of third-party syntax and theme sources that are not in the source package, and debian/copyright attributes them all to bat-developers under MIT/Apache-2.0. The third-party holders and licences (MIT, BSD, Apache-2.0, CC-BY-4.0, Unlicense, WTFPL) are not described, and the compiled caches are shipped without their preferred form for modification. Both are DFSG/Policy blockers.

Packaging

The debcargo-generated packaging is sound: compat 13 dh rules, correct library/binary/assets split, dependency substvars, build dependencies, autopkgtests, Vcs fields and a current Standards-Version. Only minor defects remain: a stale lintian override path, one obsolete patch file left in debian/patches, and a typo in debcargo.toml.

Issues

blocker licensing 1. assets/syntaxes.bin and assets/themes.bin are precompiled from third-party syntax and theme sources that are absent from the source package ◂
  • Files: assets/syntaxes.bin, assets/themes.bin, assets/acknowledgements.bin, assets/create.sh, Cargo.toml:19-21, Cargo.toml.orig:10, assets/.ignore:1-2, .gitmodules
  • Basis: checked, in the package or with a reference tool
  • Evidence: exclude = ["assets/syntaxes/*", "assets/themes/*"] in Cargo.toml; assets/create.sh runs bat cache --build --blank --acknowledgements --source="$ASSET_DIR" --target="$ASSET_DIR" after applying assets/patches/*.patch; .gitmodules records the syntax/theme repositories whose trees those paths would contain; src/assets.rs does include_bytes!("../assets/syntaxes.bin") and include_bytes!("../assets/themes.bin").
  • Problem: syntaxes.bin, themes.bin and acknowledgements.bin are generated data, not source: they are serialized syntax sets, theme sets and notices built from the .sublime-syntax/.tmTheme trees and their LICENSE files, and those trees are not in the orig tarball or in the package. The only form shipped is the opaque cache, so neither Debian nor a user can modify or regenerate bat's built-in syntax highlighting; the scripts in the package cannot run because their inputs and the patches' targets are absent. This fails DFSG 2 (the program must include its preferred form for modification) and Policy 2.2.1 for main. It is also the reason the copyright of those sources is unverifiable (next issue).
  • Fix: Repack the orig tarball to include the pinned assets/syntaxes and assets/themes sources (with assets/patches) and the files the acknowledgements are built from, and build the three .bin files during the package build (or ship the sources and build the caches from them). Do not ship the compiled caches as the only form.
blocker licensing 2. debian/copyright calls the third-party syntax and theme data bat-developers' MIT/Apache-2.0 work and omits their holders and licences ◂
  • Files: debian/copyright:11-15, assets/acknowledgements.bin, src/assets/build_assets/acknowledgements.rs:85-112, tests/integration_tests.rs:3016-3035
  • Basis: checked, in the package or with a reference tool
  • Evidence: Files: * / Copyright: 2018-2025 David Peter ... 2018-2025 bat-developers / License: MIT or Apache-2.0. The asset build script's licence whitelist includes "Creative Commons Attribution 4.0 International Public License", BSD and Apache markers, and public-domain/WTFPL markers; the acknowledgement test expects Copyright (c) 2012-2020 The Sublime CMake authors, Copyright 2014-2015 SaltStack Team, Copyright (c) 2013-present Dracula Theme, Copyright (c) 2017 b123400, Copyright (c) 2021 Keith Hall and Copyright 2014 Clams, plus syntaxes/01_Packages/Rust/LICENSE.txt and themes/dracula-sublime/LICENSE.
  • Problem: The .bin files shipped in bat-assets, and compiled into bat and librust-bat-dev via include_bytes!, embed works from the syntax and theme repositories listed in .gitmodules, under several licences. debian/copyright names only bat's holders and only the MIT/Apache-2.0 texts, so third-party copyright holders are missing and the stated licence is wrong for those files. Policy 2.3 requires the notices for compiled-in files in debian/copyright; acknowledgements.bin is a compressed binary blob, not a plain text version of the notices, so the exception does not apply. The per-source licence set cannot be verified while the sources are missing.
  • Fix: Add Files stanzas for the data in the asset blobs, naming each syntax/theme source and its copyright holders and licences (MIT, BSD, Apache-2.0, CC-BY-4.0, public domain/Unlicense, WTFPL, ...), with the required licence texts or references to /usr/share/common-licenses (CC-BY-4.0 and Apache-2.0 are there), once the sources are in the package.
minor packaging 3. librust-bat-dev lintian override still names the bat-0.25.0 registry path and no longer suppresses national-encoding ◂
  • Files: debian/librust-bat-dev.lintian-overrides:2, tests/snapshots/sample.modified.rs
  • Basis: inferred from what was read, not seen directly
  • Evidence: librust-bat-dev: national-encoding [usr/share/cargo/registry/bat-0.25.0/tests/snapshots/sample.modified.rs], while the package version and install path are 0.26.1; the file is still intentionally invalid UTF-8 (533 bytes).
  • Problem: Lintian matches the path in an override literally, so the override no longer applies to usr/share/cargo/registry/bat-0.26.1/tests/snapshots/sample.modified.rs and the tag will reappear on every upload until the version in the path is updated.
  • Fix: Change the path to bat-0.26.1 (and regenerate it at each version bump), or stop shipping the invalid-UTF-8 fixture if it is not needed.
minor packaging 4. debian/patches/update-etcetera.diff is not in series and was already dropped according to the changelog ◂
  • Files: debian/patches/update-etcetera.diff, debian/patches/series, debian/changelog
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/patches/series lists disable-bugreport.diff through serial-test-4.patch but not update-etcetera.diff; the 0.26.1+dfsg-1 changelog entry says Drop update-etcetera.diff, no longer needed.
  • Problem: An obsolete patch is still shipped in the source package and looks applied when it is not; this is dead weight and contradicts the changelog.
  • Fix: Delete debian/patches/update-etcetera.diff.
minor packaging 5. debcargo.toml spells the minimal-application package minimal-aaplication, so its test setting never applies ◂
  • Files: debian/debcargo.toml:26, debian/tests/control
  • Basis: inferred from what was read, not seen directly
  • Evidence: [packages."lib+minimal-aaplication"] against the generated test Test-Command: ... --features minimal-application which still carries Restrictions: allow-stderr, flaky.
  • Problem: debcargo ignores the misnamed package stanza, so the intended test_is_broken = false is never applied and regenerating the packaging will keep the minimal-application test marked flaky.
  • Fix: Correct the key to [packages."lib+minimal-application"].
Verified ◂
  • Read debian/copyright in full; it is DEP-5 with the correct Format URL, a Files: * stanza, a debian/* stanza and stand-alone MIT and Apache-2.0 paragraphs; the MIT text matches LICENSE-MIT and the Apache-2.0 paragraph points to /usr/share/common-licenses/Apache-2.0.
  • Read LICENSE-MIT, LICENSE-APACHE and NOTICE; their holder is bat-developers, covered by Files: *.
  • Grepped the whole upstream tree (gitignore: false) for Copyright, (C), SPDX-License-Identifier, GNU, Apache, BSD, Creative Commons, public domain, All rights reserved and similar; no other licence or copyright notice exists outside the test-fixture strings and the acknowledgement code.
  • doc/README-ru.md:646 and README.md:931, doc/README-ja.md:647, doc/README-ko.md:829 and doc/README-zh.md:673 all name bat-developers (the Russian file as Разработчики bat), which Files: * names; the scan's possible-name match is the same holder, not a missing one.
  • src/less.rs:43,56,69,82 contain less --version output strings in test functions; Mark Nudelman is not a holder of any bat file, the strings are test fixtures and compile only under cfg(test).
  • tests/integration_tests.rs:3016-3035 are expected-output strings for bat --acknowledgements, i.e. test data quoting the notices embedded in assets/acknowledgements.bin; they are not notices of that file, but they confirm the third-party notices in the asset blob (reported above).
  • assets/syntaxes.bin, assets/themes.bin and assets/acknowledgements.bin are bincode/flate2 serialized syntect caches, included with include_bytes! in src/assets.rs and installed by debian/bat-assets.install; their generator is assets/create.sh with inputs absent from the tarball (reported above). Their contents were not opened as blobs; judged from the generator, the code and the acknowledgements test.
  • Read every file under debian/: control, rules, changelog, copyright, the .install/.manpages/.shell-completions files, tests/control, patches/series and every patch, source/format, upstream/metadata, README.Debian, debcargo.toml, the .hint files and the lintian overrides.
  • Compat is 13 via debhelper-compat; ${misc:Depends} is present where needed; dh-sequence-cargo and dh-shell-completions are used correctly; no substvar issue.
  • Sampled dependency names in apt-cache and all resolve: librust-syntect-5+regex-fancy-dev, librust-prettyplease-0.3+default-dev, librust-syn-3+full-dev, librust-serial-test-4-dev, librust-expect-test-1+default-dev, librust-clircle-0.6-dev, librust-bytesize+default-dev, librust-toml+preserve-order-dev, librust-minus-5+search-dev, librust-indexmap-2+serde-dev, dh-shell-completions, dh-sequence-cargo.
  • Standards-Version 4.7.4 matches the reviewing system's Policy 4.7.4.1 in its first two components, so it is current enough.
  • The 3.0 (quilt) source format, debian/clean of the generated doc/batcat.1, the shell-completion generation, the manpage generation via PROJECT_EXECUTABLE=batcat and the bat-assets symlink hook are coherent with the build system (build/application.rs, build/main.rs).
  • tests/snapshots/sample.modified.rs is intentionally invalid UTF-8 test data; its presence is why the lintian override exists, and the override path is stale (reported above).
  • No maintainer scripts, *.maintscript, links, dirs or docs files exist; none is needed.
  • The debian/tests/control tests are debcargo-generated command tests with valid comma-separated fields and restrictions; the dev-dependency packages they name are in test Depends, not Build-Depends.
  • uscan found upstream releases with debian/watch; a newer upstream version is available (upstream 0.27.0, packaged 0.26.1+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 ◂
  • The per-file copyright holders and licences of the assets/syntaxes and assets/themes sources cannot be confirmed because those trees are not in the package; only the licence families handled by src/assets/build_assets/acknowledgements.rs are known.
  • The three .bin asset blobs were not decoded or inspected as binaries; the findings rest on the generator scripts, include_bytes! use and the acknowledgement test's expected notices.
  • No build or test was run; the package is assumed to build in a clean unstable chroot as the task states.
Proposed changes ◂

None.

Uploader's response to the LLM review

Waiting for the uploader's response until , because the review found serious issues.

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