Pārlūkot izejas kodu

Make target lists deterministic

find produces lists in filesystem order, not deterministic. Sort the result, to make build reproducible.
Chris Hofstaedtler 4 mēneši atpakaļ
vecāks
revīzija
699606f0ed
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      configure

+ 2 - 2
configure

@@ -243,9 +243,9 @@ _os_find() {
     local name="${2}"
     local depth="${3}"
     if test_nz "${depth}"; then
-        _ret=$(find "${dir}" -maxdepth "${depth}" -mindepth "${depth}" -type f -name "${name}")
+        _ret=$(find "${dir}" -maxdepth "${depth}" -mindepth "${depth}" -type f -name "${name}" | LC_ALL=C sort)
     else
-        _ret=$(find "${dir}" -type f -name "${name}")
+        _ret=$(find "${dir}" -type f -name "${name}" | LC_ALL=C sort)
     fi
 }