DFSG NEW Queue

DFSG, Licensing & New Packages Team

libmustache 0.6.2-1

Package Information

DescriptionMustache template engine for C++

libmustache is a C++ implementation of the Mustache logic-less template language. It tokenizes and compiles templates, renders them against data that can be read from JSON or YAML, and supports partials and lambdas.

It is the library behind the mustache extension for PHP.

This package provides the shared library.

MaintainerOndřej Surý <ondrej@debian.org>
Changed ByOndřej Surý <ondrej@debian.org>
Sponsorondrej@debian.org
Distributionunstable
Architectureany
Trackerhttps://tracker.debian.org/pkg/libmustache
Uploaded2 hours ago

New Package Report

.changes◂
Distributionunstable
DateFri, 27 Nov 2026 15:20:11 +0100
Sourcelibmustache
Version0.6.2-1
Changed-ByOndřej Surý <ondrej@debian.org>
Architecturesource amd64
Changelog◂
libmustache (0.6.2-1) unstable; urgency=medium
 .
   * Initial packaging.
.dsc◂
Sectionlibdevel
Priorityoptional
Componentmain
Package-Listlibmustache-dev deb libdevel optional arch=any
libmustache6 deb libs optional arch=any
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libmustache
Upstream-Contact: John Boehr <jbboehr@gmail.com>
Source: https://github.com/jbboehr/libmustache

Files: *
Copyright: 2012-2024 John Boehr & contributors
License: Expat
Comment: LICENSE.md writes the years in Roman numerals: "Copyright (c) anno
 Domini nostri Jesu Christi MMXII-MMXXIV John Boehr & contributors".

Files: vendor/cista/*
Copyright: 2018-2021 Felix Gündling
License: Expat
Comment: A private snapshot of the single-header distribution of Cista 0.16
 (https://github.com/felixguendling/cista), used by the archived-template
 code. It is not installed.

Files: vendor/xxhash/*
Copyright: 2012-2023 Yann Collet
License: BSD-2-clause
Comment: A private snapshot of the header of xxHash 0.8.3
 (https://github.com/Cyan4973/xxHash), used by the archived-template code.
 It is not installed.

Files: m4/libtool.m4
Copyright: 1996-2001, 2003-2019, 2021-2024 Free Software Foundation, Inc.
License: FSFULLR and GPL-2+ with Libtool exception
Comment: The file is under the all-permissive notice; the text it writes
 into the generated libtool script is under the GPL with the exception.
 The build of this package uses CMake and does not use the file.

Files: m4/ltoptions.m4
       m4/ltsugar.m4
       m4/ltversion.m4
       m4/lt~obsolete.m4
Copyright: 2004-2005, 2007-2009, 2011-2019, 2021-2024 Free Software Foundation, Inc.
License: FSFULLR

Files: m4/ax_prefix_config_h.m4
Copyright: 2014 Reuben Thomas <rrt@sc3d.org>
           2008 Guido U. Draheim <guidod@gmx.de>
           2008 Marten Svantesson
           2008 Gerald Point <Gerald.Point@labri.fr>
License: GPL-3+ with Autoconf exception

Files: debian/*
Copyright: 2026 Ondřej Surý <ondrej@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.

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 HOLDER 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.

License: FSFULLR
 This file is free software; the Free Software Foundation gives
 unlimited permission to copy and/or distribute it, with or without
 modifications, as long as this notice is preserved.

License: GPL-2+ with Libtool exception
 GNU Libtool is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 .
 As a special exception to the GNU General Public License, if you
 distribute this file as part of a program or library that is built
 using GNU Libtool, you may include this file under the  same
 distribution terms that you use for the rest of that program.
 .
 GNU Libtool is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 On Debian systems, the complete text of the GNU General Public License
 version 2 can be found in "/usr/share/common-licenses/GPL-2".

License: GPL-3+ with Autoconf exception
 This program is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License as published by the
 Free Software Foundation; either version 3 of the License, or (at your
 option) any later version.
 .
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 Public License for more details.
 .
 As a special exception, the respective Autoconf Macro's copyright owner
 gives unlimited permission to copy, distribute and modify the configure
 scripts that are the output of Autoconf when processing the Macro. You
 need not follow the terms of the GNU General Public License when using
 or distributing such scripts, even though portions of the text of the
 Macro appear in them. The GNU General Public License (GPL) does govern
 all other use of the material that constitutes the Autoconf Macro.
 .
 This special exception to the GPL applies to versions of the Autoconf
 Macro released by the Autoconf Archive. When you make and distribute a
 modified version of the Autoconf Macro, you may extend this special
 exception to the GPL to apply to your modified version as well.
 .
 On Debian systems, the complete text of the GNU General Public License
 version 3 can be found in "/usr/share/common-licenses/GPL-3".

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

Report◂

DFSG NEW review for libmustache version 0.6.2-1

Summary

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

Licensing

debian/copyright is DEP-5 and matches the tree. Upstream files are MIT (Expat, John Boehr & contributors, with the Roman-numeral years of LICENSE.md correctly rendered as 2012-2024); vendor/cista/* is Felix Guendling's MIT snapshot; vendor/xxhash/* is Yann Collet's BSD-2-Clause (full notice reproduced); m4/* is the FSF all-permissive licence plus GPL-2+ with Libtool exception and GPL-3+ with Autoconf exception, both with their exception texts and pointers to /usr/share/common-licenses. Full texts are given for everything not in common-licenses. I found no non-free terms, no file without a licence, and no holder absent from debian/copyright; the pre-scan's holder check agrees. The only third-party code compiled in (cista, xxHash) is permissively licensed and its notice is in debian/copyright, which is installed in both binary packages.

Packaging

The packaging is close to acceptable: correct SONAME/package split, complete install lists covering every file the CMake install step produces (dh_missing --fail-missing is therefore satisfied), hardening, a working pkg-config and CMake package, and the standard ARGS+= idiom to skip the one test that needs the absent mustache/spec submodule. Two things keep it from being upload-ready: libmustache-dev is Multi-Arch: same while /usr/include/mustache/mustache_config.h is generated per architecture (archived templates are turned off on big-endian), so the -dev package is not bit-identical across architectures and the API differs; and the vendored xxHash 0.8.3 is compiled into the library although Debian ships the same version as libxxhash-dev, contra Policy 4.13.

Issues

important packaging 1. libmustache-dev is Multi-Arch: same but installs a per-architecture /usr/include/mustache/mustache_config.h, and the archived-template API exists only on little-endian architectures ◂
  • Files: debian/control (Package: libmustache-dev, Multi-Arch: same), CMakeLists.txt:79-82, CMakeLists.txt:191-212, cmake/mustache_config.h.in:15, src/archived_template.hpp:7, debian/rules
  • Basis: inferred from what was read, not seen directly
  • Evidence: Policy 5.6.34.3: "For a given file name, if the package for one architecture installs a file there, then the packages for every other architecture must either install no file there, or a bit-identical file." cmake/mustache_config.h.in:15: #cmakedefine MUSTACHE_HAVE_ARCHIVED_TEMPLATES 1; CMakeLists.txt:191-212 enables it only when MUSTACHE_ARCHIVE_BIG_ENDIAN is 0, and with the default AUTO (CMakeLists.txt:79-82, not overridden in debian/rules) silently leaves it off on a big-endian target; src/archived_template.hpp:7 puts the whole API under #if defined(MUSTACHE_HAVE_ARCHIVED_TEMPLATES).
  • Problem: debian/rules leaves MUSTACHE_ENABLE_ARCHIVED_TEMPLATES at AUTO, so on big-endian release architectures (s390x, powerpc) the feature is switched off while on amd64/arm64 it is on. The installed config header src/CMakeLists.txt:196-199 puts into /usr/include/mustache is then generated with /* #undef MUSTACHE_HAVE_ARCHIVED_TEMPLATES */ there and #define ... 1 elsewhere: same path, different bytes, which is exactly what Multi-Arch: same forbids (Policy 5.6.34.3). Beyond the file-identity rule, the shared library's interface differs per architecture: every declaration in archived_template.hpp and the archive functions of libmustache.so exist only on little-endian targets, so a program built against the amd64 -dev package cannot be built or linked on s390x, and a co-installed Multi-Arch: same -dev package silently provides a different API.
  • Fix: Make the feature uniform across architectures: pass -DMUSTACHE_ENABLE_ARCHIVED_TEMPLATES=OFF in debian/rules' override_dh_auto_configure so every architecture generates the identical header and the same interface (OFF, not ON, because ON aborts the configure on big-endian), or have upstream always declare the archived-template API and report at runtime that it is unavailable on this architecture. Removing Multi-Arch: same from libmustache-dev and libmustache6 would cure the byte-identity violation but leave the silent per-architecture API difference, so it is the least good option.
minor packaging 2. The Mustache specification conformance suite is never run: debian/rules disables the spec test and there is no autopkgtest ◂
  • Files: debian/rules (override_dh_auto_test), tests/CMakeLists.txt (add_test(NAME spec ...)), tests/spec_expectations.hpp, spec/
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/rules: "the "spec" test needs the mustache/spec submodule, which the release archive does not include" / dh_auto_test -- ARGS+=-E ARGS+='^spec$$'; tests/CMakeLists.txt: add_test(NAME spec COMMAND test_spec "${MUSTACHE_SPEC_DIR}") with MUSTACHE_SPEC_DIR = <source>/spec/specs; spec/ in the source is an empty directory.
  • Problem: The project's primary correctness test, the mustache/spec conformance suite (tests/spec_expectations.hpp even pins v1.4.3 and records the expected deviations), is compiled but never executed: the spec test is excluded from the build's ctest run, and the source package has no debian/tests/ so it is not run at package-test time either. The other unit tests do run, so this is reduced coverage rather than a policy violation.
  • Fix: Ship or fetch the mustache/spec v1.4.3 suites and run them, preferably as an autopkgtest (debian/tests/control plus a script that obtains the suite and runs test_spec with MUSTACHE_SPEC_DIR pointing at spec/specs), so the conformance ledger in tests/spec_expectations.hpp is actually exercised.
minor packaging 3. libmustache.so compiles in a private copy of xxHash 0.8.3 although Debian ships libxxhash-dev 0.8.3 ◂
  • Files: vendor/xxhash/xxhash.h, vendor/xxhash/LICENSE, src/archive/xxh3.cpp, src/CMakeLists.txt:33-40, CMakeLists.txt:85-86, CMakeLists.txt:270-283
  • Basis: inferred from what was read, not seen directly
  • Evidence: Policy 4.13: "If the included code is already in the Debian archive in the form of a library, the Debian packaging should ensure that binary packages reference the libraries already in Debian and the convenience copy is not used." src/archive/xxh3.cpp does #include <xxhash.h> with XXH_IMPLEMENTATION=1 and XXH_NAMESPACE=MUSTACHE_CISTA_XXH_ (src/CMakeLists.txt:33-40), i.e. the 262 KB vendor/xxhash/xxhash.h is compiled into libmustache.so.6.0.2. Upstream supports the system library: option(MUSTACHE_USE_SYSTEM_XXHASH "Use a system xxHash package instead of the bundled private snapshot") with find_package(xxHash 0.8 CONFIG REQUIRED) (CMakeLists.txt:85, 270-273).
  • Problem: A convenience copy of xxHash is compiled into the shared and static libraries, yet Debian carries xxHash 0.8.3 in libxxhash-dev/libxxhash0 — the very version the snapshot is pinned to — and Policy 4.13 says the packaged library should be used instead. The copy is private-namespaced and pinned with checksums, so this is a quality issue rather than a licensing one, but it means security fixes to xxHash in Debian do not reach libmustache.
  • Fix: Add libxxhash-dev to Build-Depends and pass -DMUSTACHE_USE_SYSTEM_XXHASH=ON in override_dh_auto_configure; confirm the archive golden fixtures (tests/fixtures/cista-archive-v3-.hex) and the cista version witness still pass, and then drop vendor/xxhash/. If Debian's libxxhash-dev turns out to lack the xxHash::xxhash CMake package config, ask upstream to fall back to a pkg-config lookup of libxxhash.
Verified ◂
  • Read debian/control, rules, changelog, copyright, both .install files, gbp.conf and source/format in full; there is no debian/patches/, no maintainer scripts and no debian/tests/.
  • Prescan's dfsc-author-check reported no holder missing from debian/copyright; I re-checked each notice it compared: LICENSE.md (MIT, 2012-2024 John Boehr & contributors), vendor/cista/LICENSE and cista.h (2018-2021 Felix Guendling, MIT text embedded), vendor/xxhash/LICENSE and xxhash.h (2012-2021 / 2012-2023 Yann Collet, BSD-2-Clause with full notice), m4/libtool.m4 (FSF all-permissive notice plus the GPL-2+ Libtool exception block), m4/ltoptions.m4, ltsugar.m4, ltversion.m4, lt~obsolete.m4 (FSFULLR), m4/ax_prefix_config_h.m4 (GPL-3+ with Autoconf exception).
  • vendor/cista/cista.h contains only Cista code and its embedded MIT text: it has no xxHash implementation (no XXH3_kSecret/XXH_PRIME), because it was regenerated with src/archive/xxh3/xxh3.h (647 bytes, libmustache's own declaration-only header) in place of Cista's old embedded hash, so the vendor/cista stanza needs no other holder.
  • No file in the tree carries non-commercial, no-modification or other non-free wording (grep for non-commercial, Creative Commons, no modification, All rights reserved); 'All rights reserved' appears only in vendor/xxhash/LICENSE as part of the BSD-2-Clause notice.
  • Every file the CMake install step produces is covered by the two .install files: the shared library by usr/lib//libmustache.so.6, the static library, headers including the generated mustache_config.h, the two cmake/mustache target exports plus mustacheConfig.cmake, and the pkgconfig/mustache.pc written by install(CODE) are all under usr/lib//cmake/mustache, usr/include/mustache or usr/lib//pkgconfig; benchmarks/ and tests/ install nothing, and the CLI is off, so dh_missing --fail-missing (the compat-13 default) has nothing to complain about.
  • SONAME/package naming: CMakeLists.txt sets MUSTACHE_ABI_VERSION 6 and SOVERSION 6, producing libmustache.so.6, matching the libmustache6 package name; libmustache-dev depends on libmustache6 (= ${binary:Version}) and both ${misc:Depends} and ${shlibs:Depends} are present in the library package.
  • The dh_auto_test override uses the make/ctest ARGS+= idiom that debhelper's own cmake buildsystem uses (/usr/share/perl5/Debian/Debhelper/Buildsystem/cmake.pm:185-186), and at compat 13 dh skips the override under DEB_BUILD_OPTIONS=nocheck; no Build-Depends is marked <!nocheck>, so there is no nocheck FTBFS.
  • Standards-Version 4.7.2 against Policy 4.7.4.1: first two components match, no issue; the build-dependency set (cmake >= 3.18 matching cmake_minimum_required 3.18, debhelper-compat (= 13), libyaml-dev for MUSTACHE_ENABLE_YAML=ON via pkg-config, nlohmann-json3-dev >= 3.10.5 for MUSTACHE_ENABLE_JSON=ON, pkgconf for find_package(PkgConfig)) covers every required component.
  • The installed public headers include no <yaml.h> or <nlohmann/json.hpp> (both are used only in .cpp files), so libmustache-dev correctly needs libyaml-dev for the static library and pkg-config's Requires.private: yaml-0.1, and does not need nlohmann-json3-dev.
  • apt-cache: libxxhash-dev 0.8.3-2+b2 exists in the reviewing system's package lists (Multi-Arch: same); the vendored snapshot is the same version.
  • uscan found the packaged version as the newest upstream release (upstream 0.6.2, packaged 0.6.2).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (GPL-2, GPL-3).
Not confirmed ◂
  • No build was run (read-only review). The per-architecture difference of /usr/include/mustache/mustache_config.h and the symbol-set difference of libmustache.so are reasoned from CMakeLists.txt:191-212 and cmake/mustache_config.h.in:15, not observed on a big-endian build.
  • libxxhash-dev is not installed on the reviewing system, so I could not inspect whether it ships the xxHash CMake package config that MUSTACHE_USE_SYSTEM_XXHASH needs; apt-cache shows version 0.8.3-2+b2 (Multi-Arch: same).
Proposed changes ◂

None.

Uploader's response to the LLM review

The uploader was emailed about the review 0 hours ago.

Back to Dashboard | View all reviews for this package