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