Commit e46cf1d
committed
eclean-pkg: add --changed-iuse to clean binpkgs with stale IUSE
When PYTHON_COMPAT gains a new target, ebuilds grow a new
default-disabled IUSE flag (e.g. python_targets_python3_14). Existing
binary packages lack that flag, so Portage refuses to install them and
there is no way to make them usable again -- they are orphaned and will
only ever be rebuilt from source. Add --changed-iuse to delete such
binpkgs.
The comparison ignores USE flag defaults and only considers whether the
set of flags matches the current ebuild's IUSE.
Closes: https://bugs.gentoo.org/965888
Signed-off-by: Matt Turner <mattst88@gentoo.org>1 parent 4962c21 commit e46cf1d
3 files changed
Lines changed: 41 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
| |||
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
| 433 | + | |
| 434 | + | |
428 | 435 | | |
429 | 436 | | |
430 | 437 | | |
| |||
480 | 487 | | |
481 | 488 | | |
482 | 489 | | |
| 490 | + | |
483 | 491 | | |
484 | 492 | | |
485 | 493 | | |
| |||
497 | 505 | | |
498 | 506 | | |
499 | 507 | | |
| 508 | + | |
500 | 509 | | |
501 | 510 | | |
502 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
660 | 677 | | |
661 | 678 | | |
662 | 679 | | |
| |||
806 | 823 | | |
807 | 824 | | |
808 | 825 | | |
809 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
810 | 831 | | |
811 | 832 | | |
812 | 833 | | |
813 | | - | |
| 834 | + | |
814 | 835 | | |
815 | 836 | | |
816 | 837 | | |
| |||
842 | 863 | | |
843 | 864 | | |
844 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
845 | 871 | | |
846 | 872 | | |
847 | 873 | | |
| |||
0 commit comments