Commit 0927524
committed
fix(kernel-debs): allow 'dwarves' as alternative for 'pahole' in headers Depends
Older releases (Debian buster/bullseye, Ubuntu focal) do not have a
standalone 'pahole' package — pahole ships inside the 'dwarves'
package there. The headers .deb's unsatisfiable 'Depends: pahole'
broke apt install on these older releases:
E: Unable to locate package pahole
E: Unable to correct problems, you have held broken packages.
Reproduces with e.g. helios4 / bullseye / edge.
Use 'pahole | dwarves' alternative dependency so apt picks 'pahole'
on modern releases and falls back to 'dwarves' on the older ones
(on bookworm+/jammy+ 'dwarves' is a transitional package that pulls
'pahole', so the alternative remains satisfiable everywhere).
This also lets us drop the explicit pre-install of pahole from
install_distribution_agnostic(): installing the headers .deb pulls
in pahole/dwarves automatically via Depends.
When buster/bullseye/focal support is dropped, the alternative can
be simplified back to a plain 'pahole'.
Assisted-by: Claude:claude-opus-4.71 parent cfacf12 commit 0927524
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
514 | 517 | | |
515 | 518 | | |
516 | 519 | | |
| |||
519 | 522 | | |
520 | 523 | | |
521 | 524 | | |
522 | | - | |
| 525 | + | |
523 | 526 | | |
524 | 527 | | |
525 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
| |||
0 commit comments