Browse Source

vm/rpm/rpm-closure.pl: make it deterministic

Some recent perl version introduced "keys" to return the keys
in random order. As some of the packages are solved by "provides" and
based on the order, this randomness affects what packages get into the
closure.

This problem may be in other nix perl scripts.
nixos-19.03
Lluís Batlle i Rossell 7 years ago
parent
commit
202ebf794c
  1. 2
      pkgs/build-support/vm/rpm/rpm-closure.pl

2
pkgs/build-support/vm/rpm/rpm-closure.pl

@ -90,7 +90,7 @@ for (my $i = 0; $i < scalar(@packagesFiles); $i++) {
}
my %provides;
PKG: foreach my $pkgName (keys %pkgs) {
PKG: foreach my $pkgName (sort(keys %pkgs)) {
#print STDERR "looking at $pkgName\n";
my $pkg = $pkgs{$pkgName};

Loading…
Cancel
Save