Ticket #289 (closed todo: fixed)
[TODO] config/gen/makefiles/dynpmc_pl.in sub gather_groups_and_libs()
| Reported by: | jkeenan | Owned by: | jkeenan |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | configure | Version: | |
| Severity: | low | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
This XXX flag comment generated a t/codingstd/perlcritic.t failure tonight. (Why tonight? After sitting in the file for so long? Don't know.)
# XXX: ordering of libs might be crucial
sub gather_groups_and_libs {
my @pmcs = @_;
my ( %group_files, %group_libs, %pmc_group, %pmc_libs );
for my $pmc (@pmcs) {
our $class = retrieve("$pmc.dump");
# there can be many libs
my %libs = %{ $class->{flags}{lib} || {} };
$pmc_libs{$pmc} = \%libs;
# There should be at most a single group
my $group = $class->{flags}{group}
or next;
$pmc_group{$pmc} = $group;
push @{ $group_files{$group} }, $pmc;
$group_libs{$group} ||= {};
foreach my $lib ( keys %libs ) {
$group_libs{$group}->{$lib} = 1;
}
}
return (\%group_files, \%group_libs, \%pmc_group, \%pmc_libs);
}
So I'm converting this to a Trac ticket: Can anyone opine as to whether the ordering of the libs might indeed be crucial?
Thank you very much.
kid51
Change History
Note: See
TracTickets for help on using
tickets.
