From 202ebf794cbd5ea293170f71999bc4e8f788779e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 1 Mar 2016 11:01:00 +0100 Subject: [PATCH] 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. --- pkgs/build-support/vm/rpm/rpm-closure.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/vm/rpm/rpm-closure.pl b/pkgs/build-support/vm/rpm/rpm-closure.pl index 8f7669d6fef..6442cd91a95 100644 --- a/pkgs/build-support/vm/rpm/rpm-closure.pl +++ b/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};