This page is docs/PACKAGING.md in the repository. The repository copy is the source; this is the same text with its links rewritten for the wiki.

Packaging

Package definitions for the platforms that have one, in packaging/.

Status: two of them have been built

Two of these have produced packages, and four have not. The rest are written against each format's documentation and validated as far as parsing goes: the WiX source and the AppStream metadata are well-formed XML, the Flatpak manifest is valid YAML. That is all that can honestly be claimed about them.

A spec file that has never produced an RPM is a draft, and this table says which is which:

FormatFileBuilt?Installed and run?
Windows MSIpackaging/wix/veilvoice.wxsnono
Debian/Ubuntupackaging/debian/yes, on Ubuntu 24.04, x86-64yes, installed and removed
Fedora/RHEL/SUSEpackaging/rpm/veilvoice.specyes, on Ubuntu 24.04, x86-64binaries run; not installed by rpm
Flatpakpackaging/flatpak/nono
Homebrewpackaging/homebrew/veilvoice.rbnono
Gentoopackaging/gentoo/nono

What the RPM build proved, and what it did not

rpmbuild -bs produced veilvoice-0.1.15-1.src.rpm from a git archive tarball, and rpmbuild -bb produced two binary packages: veilvoice-0.1.15-1.x86_64.rpm and veilvoice-gui-0.1.15-1.x86_64.rpm.

The thing a build proves that a parse cannot is that %files and %install agree. They do: the main package carries /usr/bin/veilvoice, the licence and the whole of docs/; the gui subpackage carries /usr/bin/veilvoice-gui, the desktop entry and the icon. Nothing is listed that is not installed and nothing is installed that is not listed, which is the classic spec defect and is the one that had never been looked for. Extracted with rpm2cpio, the packaged veilvoice --version and veilvoice info both ran.

That build was made at 0.1.15, when a release also carried a third binary for verification. It does not any more: the verifier is a library inside the two above, reached as veilvoice verify and from the desktop application's Verify tab, and the spec has one fewer file in it. The paragraph above describes the packages as they are built today rather than as they were then, because a reader uses it to check a build rather than to date one.

What it did not prove, and the gap is wider than the Debian one. This was built on Ubuntu, not on Fedora or RHEL or openSUSE, so %{dist}, the system RPM macros and the distribution's own Rust packaging are all untested. It needed --nodeps, because rpm on a Debian machine cannot read dpkg's database and so cannot see that cargo, gcc, alsa, gtk+-3.0 and xkbcommon are in fact all installed; every one of them was confirmed present by hand before the flag was used. It needed --nocheck, so the spec's own %check stanza has never run as part of an RPM build, although the identical command runs inside the Debian build. It has not been installed with rpm -i, because doing that on a Debian machine tests nothing. Nothing has been uploaded anywhere.

rpmlint, and what it found

rpmlint 2.10 has now been run over both binary packages and the source RPM. It found two real defects, both now fixed, and eighteen reports that are its default configuration disagreeing with current RPM practice rather than anything wrong with this spec. Both halves are listed, because a tool's output quoted selectively is worth nothing.

Fixed. Four description-line-too-long errors: two lines of %description were exactly 80 characters against a limit of 79. And, separately, rpmbuild itself warned bogus date in %changelog for Sun Aug 31 2026, which was a Monday. Both are the kind of thing a distribution's review would bounce, and neither was visible until the package was built and linted.

Not fixed, with the reason. These are reported against a default configuration that predates, or disagrees with, how RPM packages are written now. Each is a judgement, and a Fedora reviewer is who would settle it:

ReportWhy it stands
no-group-tag ×3Group: is obsolete and Fedora dropped it. Adding one to satisfy a linter would be adding a tag no packaging guide asks for.
no-buildroot-tagBuildRoot: has been unnecessary since RPM 4.6.
no-packager-tag ×3Packager: identifies the build system rather than the software, and is set by whoever builds, not by the spec.
invalid-license GPL-3.0-or-later ×3That is the correct SPDX identifier, and SPDX is what Fedora now requires. The linter's bundled list is what is out of date.
no-signature ×3True, and expected: these were built locally. Release artefacts are signed by the release job.
manpage-not-compressed bz2 ×3The pages are gzipped, which is what these distributions use.
no-dependency-on locales-guiA heuristic for packages that ship translations. This one ships none.
requires-on-releaseThe -gui subpackage requires the exact release of the base package, deliberately: they are built together and share a version.

What this does not settle is the thing the whole section is about. rpmlint reads a package; it does not install one, and it ran on Ubuntu against packages built on Ubuntu. It is one more check than there was, and it is not a Fedora build.

What the Debian build actually proved, and what it did not

dpkg-buildpackage -us -uc -b produced veilvoice_0.1.15-1_amd64.deb and veilvoice-gui_0.1.15-1_amd64.deb. Both installed with dpkg -i, the installed veilvoice --version reported 0.1.15, veilvoice info and the verifier's own help ran, and both packages removed cleanly. The release build and cargo test --release --workspace both ran as part of it, because that is what debian/rules does.

What it did not prove: this was one machine, on x86-64, with the toolchain from rustup rather than from Debian's own cargo and rustc packages, which is why the build needed -d to get past dpkg-checkbuilddeps. On a real Debian build machine those packages are what Build-Depends names and the flag is not wanted. Nothing has been uploaded anywhere.

lintian has now been run, over both packages. The first run found no errors and five warnings; three of those were no-manual-page, one per binary, and that one was a real gap rather than a formality: somebody who installs a package on a Unix system types man veilvoice and got nothing.

Those three are fixed. tools/release/manpage.py derives each page from the binary's own --help during override_dh_auto_install, so nothing is committed and no page can drift from the command it describes. A second run of lintian over the rebuilt packages reports no errors and two warnings, both initial-upload-closes-no-bugs, which asks the changelog to close an ITP bug and applies to a package being uploaded into Debian's own archive rather than one a project publishes itself.

Verified rather than assumed: dpkg -c shows veilvoice.1.gz in the main package and veilvoice-gui.1.gz in the gui one, and each was installed and rendered with groff. At the time this was run there was a third page, for the verifier when it was still a binary; that binary is gone and so is its page, and the verifier's help now reaches a reader through veilvoice's. That took one detour worth recording, because it looked like a packaging bug and was not: this build machine is a minimized Ubuntu image, which carries path-exclude=/usr/share/man/* in /etc/dpkg/dpkg.cfg.d/excludes and throws manual pages away as it installs them. The pages were in the packages the whole time.

Doing it found two defects, F-80 and F-81, both recorded in AUDIT.md. The first was that the recipe below could not run at all. The second was that every definition here still named v0.1.9 while the workspace was at v0.1.15, and nothing was watching: tools/site-tests/packaging.test.js is watching now.

The install scripts and the portable verifier are tested, as INSTALL.md records, and they are the supported route until the rest of this table changes. If you build one of these and it works, or does not, saying so in an issue is the most useful thing you could contribute.


The rule every one of them follows

Optional third-party software is never installed silently and never by default. It is the same rule the install scripts follow, and each format expresses it differently:

  • WiX puts VB-CABLE and Audacity in the feature tree at Level="1000", above the install level, so neither is selected unless the user turns it on. Even then they install a shortcut to the download page, not the software: VB-CABLE is proprietary donationware with its own licence, and this installer has no business accepting somebody else's terms on a user's behalf.
  • Debian, RPM, Gentoo do not mention them at all. A distribution package that pulled in proprietary donationware as a dependency would rightly be rejected, and should be.
  • Flatpak cannot install them, which is the sandbox working as intended.

Why these build from source

Every definition here compiles the tagged source on the machine that will run it, rather than repackaging a published binary. For a project whose argument is that you can check it yourself, that is the more honest default, and each one passes --locked, so it builds the dependency versions the project actually tested rather than whatever resolves on the day. A package that silently drifts from the tested graph is not the software that was audited.

Homebrew is a formula, not a cask, for the same reason. It also sidesteps macOS notarisation, which this project cannot obtain: notarisation requires a certificate issued to a verified legal identity, and this is published under a pseudonym.

What each one deliberately does not do

No package installs a service, a scheduled task, a driver, a shell hook, or anything that runs at startup. A privacy tool with a background service is a privacy tool with a background service. There is nothing here that needs one.

The Flatpak's permissions are the clearest statement of this, because they are public and checkable without reading any code:

# no --share=network

VeilVoice has no networking code and CI fails the build if an HTTP client enters the dependency graph. The absence of that line is the form of that claim a user can verify in one command:

flatpak info --show-permissions io.github.tilas01.VeilVoice

Signing, and what is not signed

ArtefactSigned?
SHA256SUMS in each releaseyes, detached OpenPGP, key 8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A
The release archives themselvesno, see below
The MSI (Authenticode)no, and cannot be
The macOS binaries (notarisation)no, and cannot be

Binaries are never signed in place. The signature is over SHA256SUMS only, so that signing and reproducibility do not conflict: a signature embedded in a binary changes the binary, and two people building the same source would then produce different files for a reason that has nothing to do with the source.

Authenticode and notarisation both require a certificate tied to a verified legal identity. Windows will show "unknown publisher" and macOS Gatekeeper will refuse to run the binaries until allowed explicitly. Both are stated in INSTALL.md rather than worked around, and both are why the OpenPGP signature over the hash list remains the real check: verify the archive, then install it.

Building each one

:: Windows: both MSIs, then the Store's MSIX. The folder is the Windows zip,
:: unpacked. Needs the WiX Toolset 5 (see the script) and, for the MSIX, the
:: Windows SDK.
python tools\package\msi.py veilvoice-v0.1.23-windows-x86_64 dist --version 0.1.22
python tools\package\msix.py veilvoice-v0.1.23-windows-x86_64 dist --version 0.1.22 ^
    --identity-name <from Partner Center> --publisher <from Partner Center> ^
    --publisher-display-name <from Partner Center>

msi.py runs wix build packaging/wix/veilvoice.wxs -d Version=0.1.23 once per scope, with the product code it derives from the version and the licence converted to RTF on the way, so neither is a file somebody has to keep in step by hand.

# The AppImage, from two programs built on the oldest Linux it should run on.
# appimagetool and the runtime are the AppImage project's own; packages.yml
# pins both by hash.
tools/package/appimage.sh target/release dist 0.1.22 ./appimagetool ./runtime
# Debian / Ubuntu  (copy packaging/debian to ./debian first)
#
# `debian/source/format` is a file in a directory, and this repository keeps it
# as `source-format` so that `packaging/debian/` stays a flat directory of
# files. The move below is what turns one into the other.
#
# Add `-d` if your Rust came from rustup rather than from Debian's `cargo` and
# `rustc` packages: `dpkg-checkbuilddeps` looks for the packages named in
# Build-Depends and cannot see a rustup toolchain. On a real Debian build
# machine, leave it off.
cp -r packaging/debian debian
mkdir -p debian/source && mv debian/source-format debian/source/format
dpkg-buildpackage -us -uc -b

# Fedora / RHEL / openSUSE
rpmbuild -ba packaging/rpm/veilvoice.spec \
    --define "_sourcedir $PWD/dist" --define "vv_version 0.1.23"

# Flatpak  (regenerate cargo-sources.json from Cargo.lock first)
python flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
flatpak-builder --user --install build \
    packaging/flatpak/io.github.tilas01.VeilVoice.yml

# Homebrew
brew install --build-from-source packaging/homebrew/veilvoice.rb

# Gentoo  (from a local overlay)
mkdir -p /var/db/repos/local/media-sound
cp -r packaging/gentoo/media-sound/veilvoice /var/db/repos/local/media-sound/
ebuild /var/db/repos/local/media-sound/veilvoice/veilvoice-9999.ebuild manifest
emerge -av media-sound/veilvoice

packaging/flatpak/cargo-sources.json is not committed either: it is a mechanical transform of Cargo.lock and regenerating it is a single command, whereas a committed copy is one more thing that can silently fall out of step with the lock file.

Platform coverage

Eleven targets are built and published today, OpenBSD among them. It had failed for two releases because of a declared toolchain floor that turned out to be wrong; v0.1.11 is the first release to carry an OpenBSD archive.

PlatformBuiltReproducibility checked
Windows x86_64yesyes, twice in separate directories
macOS Apple Siliconyesyes
macOS Intelyesyes
Linux x86_64 (gnu, musl)yesyes
Linux arm64 (gnu, musl)yesyes
Linux armv7 (Raspberry Pi)yesyes
FreeBSD x86_64yesyes, twice inside the VM
OpenBSD x86_64yes, since v0.1.11yes, twice inside the VM
NetBSD x86_64yesyes, twice inside the VM

Windows 10 and 11 share one executable. They are not split, and will not be unless a measurement says they should be: shipping two identical binaries under different names is a way of looking thorough rather than being it.

OpenBSD failed to build for two releases, and the cause was on this side.

Its packaged Rust is 1.94.1, and this workspace declared rust-version = "1.96" -- so cargo refused with "rustc 1.94.1 is not supported by the following packages" before compiling a single line. The documentation here described that as OpenBSD's ports being behind, and an earlier revision of this section recorded that lowering the floor had been "considered and rejected" because "the toolchain floor is a property of the code".

That reasoning was sound and the premise was never checked. When it finally was -- by installing 1.94.0 and compiling every crate in the workspace, including the GUI -- everything built without a single error. The declared floor was not a property of the code. It was the version that happened to be current on the day somebody typed it, and it cost two releases of OpenBSD coverage.

rust-version is now 1.94, measured rather than assumed. rust-toolchain.toml still pins a newer toolchain for development and CI; the two are different things, and only the first is a claim about what the code needs. If something in the tree ever does need a newer feature, cargo will say so by name, which is a better guard than a number nobody re-tests.

The three BSD builds run in emulated VMs on a Linux runner, are the most fragile jobs in the workflow, and are allowed to fail without blocking a release. When one fails the release simply ships without that archive.

They are now built twice, like every other platform. The second build runs inside the same VM, from a copy of the source at a different path, with the same SOURCE_DATE_EPOCH and the same --remap-path-prefix flags the other ten use, and the two binaries are compared byte for byte. The verdict each VM reaches is what its repro-*.txt says, so a BSD that stops reproducing is reported in those words rather than quietly losing the line. Until v0.1.18 these three said not-verified (built once, in a VM), which was honest and was the only gap in the reproducibility claim.

If a BSD job fails before the second build runs, the report says not-verified (the second build did not run). That distinction matters: it is the difference between "we checked and it differed" and "we did not get to check", and collapsing the two would make the first look like the second.

This page is also Doc-PACKAGING in the GitHub wiki, and both are generated from the same document in the repository.