File reproducible.patch of Package kdelibs3
Index: kdelibs-3.5.10/admin/ltmain.sh
===================================================================
--- kdelibs-3.5.10.orig/admin/ltmain.sh
+++ kdelibs-3.5.10/admin/ltmain.sh
@@ -3719,7 +3719,7 @@ EOF
done
fi
- libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | LC_ALL=C sort | $NL2SP`
done
fi
fi
@@ -4013,7 +4013,7 @@ EOF
done
fi
- reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | LC_ALL=C sort | $NL2SP`
done
fi
fi
@@ -5043,7 +5043,7 @@ fi\
done
fi
- oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+ oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | LC_ALL=C sort | $NL2SP`
done
fi
Index: kdelibs-3.5.10/admin/am_edit
===================================================================
--- kdelibs-3.5.10.orig/admin/am_edit
+++ kdelibs-3.5.10/admin/am_edit
@@ -1168,7 +1168,7 @@ sub handle_TOPLEVEL()
my $pofiles = "";
my @restfiles = ();
opendir (THISDIR, ".");
- foreach $entry (readdir(THISDIR)) {
+ foreach $entry (sort(readdir(THISDIR))) {
next if (-d $entry);
next if ($entry eq "CVS" || $entry =~ /^\./ || $entry =~ /^Makefile/ || $entry =~ /~$/ || $entry =~ /^\#.*\#$/ || $entry =~ /.gmo$/);
@@ -1209,7 +1209,7 @@ sub tag_SUBDIRS ()
my $subdirs = ".";
opendir (THISDIR, ".");
- foreach $entry (readdir(THISDIR)) {
+ foreach $entry (sort(readdir(THISDIR))) {
next if ($entry eq "CVS" || $entry =~ /^\./);
if (-d $entry && -f $entry . "/Makefile.am") {
$subdirs .= " $entry";
@@ -1490,7 +1490,7 @@ sub tag_ICON()
my @files = ();
opendir (THISDIR, ".");
- foreach $entry (readdir(THISDIR)) {
+ foreach $entry (sort(readdir(THISDIR))) {
next if ($entry eq "CVS" || $entry =~ /^\./ || $entry =~ /^Makefile/ || $entry =~ /~$/ || $entry =~ /^\#.*\#$/);
next if (! -f $entry);
if ( $iconauto )
@@ -1732,7 +1732,7 @@ sub tag_POFILES ()
if ($tmp =~ /^\s*AUTO\s*$/)
{
opendir (THISDIR, ".");
- $pofiles = join(" ", grep(/\.po$/, readdir(THISDIR)));
+ $pofiles = join(" ", grep(/\.po$/, sort(readdir(THISDIR))));
closedir (THISDIR);
print STDOUT "pofiles found = $pofiles\n" if ($verbose);
if (-f "charset" && -f "kdelibs/kdelibs.po") {
@@ -1905,7 +1905,7 @@ sub tag_NMCHECK () {
sub tag_DIST () {
my %foundfiles = ();
opendir (THISDIR, ".");
- foreach $entry (readdir(THISDIR)) {
+ foreach $entry (sort(readdir(THISDIR))) {
next if ($entry eq "CVS" || $entry =~ /^\./ || $entry eq "Makefile" || $entry =~ /~$/ || $entry =~ /^\#.*\#$/);
next if (! -f $entry);
next if ($entry =~ /\.moc/ || $entry =~ /\.moc.$cppExt$/ || $entry =~ /\.lo$/ || $entry =~ /\.la$/ || $entry =~ /\.o/);
@@ -1933,7 +1933,7 @@ sub tag_DIST () {
}
my $KDE_DIST = "";
- foreach $file (keys %foundfiles) {
+ foreach $file (sort(keys %foundfiles)) {
if ($foundfiles{$file} == 1) {
$KDE_DIST .= "$file ";
}
@@ -1978,7 +1978,7 @@ sub tag_DOCFILES ()
if ($tmp !~ / - /)
{
opendir (THISDIR, ".");
- foreach $entry (readdir(THISDIR)) {
+ foreach $entry (sort(readdir(THISDIR))) {
next if ($entry eq "CVS" || $entry =~ /^\./ || $entry =~ /^Makefile/ || $entry =~ /~$/ || $entry =~ /^\#.*\#$/ || $entry eq "core" || $entry eq "index.cache.bz2");
next if (! -f $entry);
$files .= "$entry ";
@@ -2094,7 +2094,7 @@ sub findMocCandidates ()
{
my @list = ();
opendir (SRCDIR, "$dir");
- @hFiles = grep { /.+\.$hExt$/o && !/^\./ } readdir(SRCDIR);
+ @hFiles = grep { /.+\.$hExt$/o && !/^\./ } sort(readdir(SRCDIR));
closedir SRCDIR;
foreach $hf (@hFiles)
{
@@ -2176,7 +2176,7 @@ sub checkMocCandidates ()
opendir(THISDIR, ".") || return;
@cppFiles = grep { /.+\.$cppExt$/o && !/.+\.moc\.$cppExt$/o
&& !/.+\.all_$cppExt\.$cppExt$/o
- && !/^\./ } readdir(THISDIR);
+ && !/^\./ } sort(readdir(THISDIR));
closedir THISDIR;
return unless (@cppFiles);
my $files = join (" ", @cppFiles);