I think about this change to the code:
--- a/bin/wanna-build
+++ b/bin/wanna-build
@@ -2323,7 +2323,7 @@ sub parse_all_v3 {
my $tstate = {'installed' => 'Installed', 'related' =>
'Installed',
'arch-not-in-arch-list' => 'Auto-Not-For-Us',
'packages-arch-specific' => 'Auto-Not-For-Us',
'overwritten-by-arch-all' => 'Auto-Not-For-Us', 'arch-all-only' =>
'Auto-Not-For-Us',
}->{$pkgs->{'status'}};
- next if isin( $pkg->{'state'}, qw<Not-For-Us Failed
Failed-Removed Dep-Wait Dep-Wait-Removed>) && isin( $tstate,
qw<Auto-Not-For-Us>);
+ next if isin( $pkg->{'state'}, qw<Not-For-Us>) && isin(
$tstate, qw<Auto-Not-For-Us>);
# if the package is currently current, the status is
Installed, not not-for-us
if ($pkg->{'state'} ne $tstate) {
change_state( \$pkg, $tstate);