packaging/deb/README.md
Noble .deb / Mint 22.1
This is an amd64 Ubuntu 24.04 Noble / Linux Mint 22.1 package, not a generic Debian/LMDE package. It links the APT-provided GTK/GLib/Pango stack; it does not bundle the AppImage stack or replace system libraries.
Build
Rootless Podman builds and tests without installing host development tools.
Create the frozen source input using the
release guide, then set VERSION
to the exact appVersion in that frozen source:
| 1 | : "${VERSION:?Set VERSION to the frozen source's appVersion}" |
| 2 | SPLOTCH_SOURCE_INPUT="$PWD/packaging/build/inputs/candidate-example/tree" \ |
| 3 | SPLOTCH_DIST_ROOT="$PWD/packaging/build/candidates/candidate-example" \ |
| 4 | ./packaging/deb/build.sh "$VERSION-0candidate~noble1" |
Without SPLOTCH_SOURCE_INPUT, the helper freezes tracked working files into
packaging/build/inputs/deb-<version>/. From an exported tree it consumes the
external source record/archive and needs no .git. Track intended new files before
freezing; existing artifact outputs are refused.
Noble uses the approved upstream binding pinned in noble.mod/noble.sum via
-modfile; native go.mod stays unchanged. The Go toolchain and matching source
are checksum-pinned. APT packages resolve at build/test time, so the environment
is not snapshot-pinned or promised bit-reproducible.
Build and runtime boundaries
The builder verifies modules, tests and compiles the frozen source, validates
the desktop entry and computes dependencies with dpkg-shlibdeps.
librsvg2-common is explicit: ordinary dynamic-link closure misses the SVG
loaders required by built-in artwork.
sh packaging/test-go.sh packaging/deb/noble.mod runs permission regressions and
the ordinary GTK-tagged suite uncached as package-test, not root. This matters
because root can bypass permission-denial checks. Tests use private HOME/cache/
temporary/XDG state and read-only preloaded modules, with dependency networking
disabled. Only container source-directory traversal permissions are normalized,
not source file modes/bytes or host permissions. Root assembles the package;
build-tests.log retains both streams, and test failure stops assembly.
sh packaging/test-go-test.sh is a synthetic launcher/failure-propagation check,
not a substitute for the real Go gate. Desktop opt-ins run separately.
An intermediate package is installed in a fresh Noble runtime without development packages. Unprivileged tests, dedicated-Xvfb startup, resize gestures and single-instance forwarding exercise that installed package. Its actual library and SVG binary/source versions are queried independently of the builder's; build records cannot substitute for tested-runtime records. After embedding both sets, the final package is installed/tested again and runtime identities must still agree.
The completed staged tree determines Installed-Size, not the draft package's
size. Final package metadata is recorded in build-info.txt; test logs stay
separate. Installed source documents and collector are readable by ordinary
users (0644 files, 0755 parents), independently of private archive permissions.
Source identity and outputs
/usr/share/doc/splotch-blot/ contains the source manifest, generated full
third-party notices/retrieval instructions, collector, application copyright,
packaging notes and compiled-module versions. Compiled Go dependencies come
from executable build info, not the entire module cache. Go runtime and C inputs
are recorded as well.
Host-build/host-tested Ubuntu libraries are reconstruction aids, not .deb
contents. Records distinguish binary and source versions and include source
constituents. They do not describe a later user's updated host stack.
Outputs default to packaging/build/deb/<version>/. SPLOTCH_DIST_ROOT retains
compatibility as an override for both build and automatic freeze outputs. This
scratch tree is disposable; retain selected packages and metadata before using
the build cleaner.
Outputs include the .deb, source/provenance copies, manifest sidecar,
build-info, independent tested/final-tested runtime
records, logs and SHA256SUMS. Sidecars and output source copies are not authority:
the source collector extracts from actual package bytes,
checks payload/notices and binds private fallback sources to the artifact hash.
No general source tarballs are embedded. Candidate and approved tagged-release
identities and archive labels must remain distinct.
User installation and limits
On a conventional supported Mint/Noble system, with a verified package:
| 1 | package=/path/to/Selected.deb |
| 2 | sudo apt install "$package" |
| 3 | splotch-blot |
| 4 | sudo apt remove splotch-blot |
Set package to the verified download's path. These are user-run instructions,
not permission to install on an immutable development host. APT resolves dependencies;
removal has no artwork/recovery cleanup script. Remove a user-local AppImage
launcher when switching, or its desktop entry overrides the system one.
The container gate tests X11/Cairo, not Mint's complete desktop, Wayland, GPU, clipboard portals or accessibility. Check the final artifact's desktop behavior and supported install/remove paths using the release guide. Upgrade compatibility from development builds is not guaranteed.