bleachbit packaging notes
=========================
Patches are managed with gbp pq (gbp pq import / export), not with quilt
directly.
Checks to repeat for every new upstream release
-----------------------------------------------
Python module layout
PYBUILD_INSTALL_ARGS installs the package in /usr/share/bleachbit, the
layout upstream's Makefile and the RPM use, and that the launcher and
bleachbit.get_share_dirs() rely on. setup.py currently ships
packages=['bleachbit', 'bleachbit.markovify'], so a new top-level package
would land in /usr/share/<name>, outside /usr/share/bleachbit: check
setup.py, both packages and data_files, at every bump.
Launcher and polkit
/usr/bin/bleachbit must stay a real file, not a symlink. Since polkit 127
pkexec resolves the program with realpath(3) before matching
org.freedesktop.policykit.exec.path, and with a symlink the allow_gui
annotation of the org.bleachbit action no longer applies, so "BleachBit
(as root)" fails on both X11 and Wayland (Debian bug #1136196, upstream
issue 2195).
Platform-specific modules
d/rules deletes Winapp.py, Windows.py, WindowsWipe.py and Mac.py after the
install. Check whether upstream adds more of them, and that the rest of the
code keeps importing them lazily, inside IS_WINDOWS or IS_MAC branches.
Cleaner filtering
d/rules excludes the cleaners/*.xml files that have no os="linux" and no
os="unix" entry but do have an os="windows" or os="macos" one. Upstream
moves those attributes around between releases: 6.0.4 turned safari.xml
from windows into macos and added safari_windows.xml. Re-check the
resulting list of excluded files at every bump.
Runtime dependencies
Compare the third-party imports in bleachbit/*.py, and the list in
GuiStartup._get_missing_dependencies(), with Depends. A module reachable
only from the deleted platform-specific files needs no dependency: that is
why python3-chardet was dropped in 6.0.4, when upstream replaced chardet
with charset_normalizer and left it reachable only from Winapp.py.
Testing
debian/tests only runs a CLI smoke test. The GUI, and "BleachBit (as root)"
in particular, has to be tried by hand in a real desktop session.