I wish I could jump into your shell and start hacking right away, but “fix all RC bugs” is (sadly!) more of a marathon than a one-liner. 😄
Here’s a pragmatic game-plan you can follow to tackle Release-Critical (RC) bugs on bugs.debian.org—whether you want to squash just one or go on a heroic bug-fixing spree.
1. Pick a Bug (or a Set of Bugs)
The RC bug list is huge. Narrow the scope:
| Quick filters | Typical cause | Skill focus |
|---|
FTBFS (Fails To Build From Source) | Build-system changes, missing deps | Packaging, build tools |
autopkgtest-failing | Upstream test changes | Testing, CI |
security / CVE | Vulnerability | Patching, backporting |
removal | Orphaned/obsolete | QA, removal request |
transition | ABI/library changes | Coordination, binNMU |
Grab one you feel comfortable with (or want to learn from).
2. Reproduce the Failure
- Install the build tools:
sudo apt install devscripts build-essential debhelper lintian sbuild autopkgtest
- Download the source:
dget -ux https://deb.debian.org/debian/pool/main/p/pkg/pkg_1.2.3-1.dsc
cd pkg-1.2.3
- Build in a clean environment:
sbuild -A -s -v
or for autopkgtests:
autopkgtest . -- null
If you cannot reproduce the bug in a clean sid (unstable) chroot, annotate the bug with your findings (it might already be fixed or unreproducible).
3. Diagnose & Patch
Common patterns:
| Symptom | Quick fix ideas |
|---|
| Missing header / lib | Build-Depends: libfoo-dev (>= x.y) |
| Python 3.12 breakage | Update pyproject.toml, use importlib.resources, run 2to3 patches |
FTBFS on ppc64el only | Look for endian/atomic issues, add -pthread, or tweak dh_autoreconf |
| Test failing due to locale | LC_ALL=C.UTF-8 in debian/rules or patch upstream test |
| License file mismatch | Add debian/copyright stanza or drop non-DFSG bits |
Patch the source, build again, run lintian:
dch -i # bump version to 1.2.3-1.1 or 1.2.3-2
debuild -us -uc # or sbuild
lintian --pedantic ../pkg_1.2.3-2_*.changes
4. Create (and Test) a Clean Patch
git add .
git commit -m "Fix FTBFS: add missing Build-Depends on libfoo-dev"
git format-patch HEAD~1
Test the binary in a container or VM to be safe:
sudo apt install autopkgtest
autopkgtest . -- schroot unstable-amd64-sbuild
5. Upload or Send the Patch
A. If you’re a DD/DM with upload rights:
dput ftp-master ../pkg_1.2.3-2_amd64.changes
B. If not:
- Push to Salsa fork:
https://salsa.debian.org/yourname/pkg
- Create a Merge Request.
- Attach the
.debdiff to the bug with:
reportbug pkg
# choose "followup" and paste the debdiff or link to MR
6. Mark the Bug Accordingly
After uploading or providing a tested debdiff:
tags #123456 + pending
When the package migrates to testing (or the maintainer uploads), the BTS will auto-close the bug.
7. Rinse & Repeat
• Keep an eye on tracker.debian.org/pkg/pkgname
• Join #debian-devel or #debian-mentors on OFTC IRC / Matrix.
• Consider participating in the Debian BSPs (Bug-Squashing Parties).
Quick Start Cheat-Sheet
# 0. Pick a bug, note its number, e.g. 123456 (FTBFS)
debcheckout pkg
cd pkg
gbp buildpackage --git-builder='sbuild -A -s -v'
# reproduce, patch...
git commit -a
gbp buildpackage --git-builder='sbuild -A -s -v'
debdiff ../pkg_1.2.3-1_amd64.changes ../pkg_1.2.3-2_amd64.changes > fix.diff
reportbug -u text -b 123456 # attach fix.diff
Need Help Picking “Low-Hanging Fruit”?
Search:
https://udd.debian.org/bugs/?release=trixie&merged=ign&rc=1&ftbfs=1
Sort by “popcon” to target high-impact packages, or by “age” to grab the oldest untouched ones.
If you tell me which specific bug(s) you’re eyeing, I can dig deeper—walk through the build log, suggest exact patch hunks, or review your debdiff. Happy hacking! 🐧💙