Skip to content

Commit

Permalink
Sort input file list
Browse files Browse the repository at this point in the history
so that libsass.so builds in a reproducible way
in spite of indeterministic filesystem readdir order.

See https://reproducible-builds.org/ for why this is good.

This PR was done while working on reproducible builds for openSUSE.
  • Loading branch information
bmwiedemann committed Jan 9, 2020
1 parent 7cbb577 commit 0458396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
$VPATH << "$(srcdir)/libsass/src"
Dir.chdir(__dir__) do
$VPATH += Dir['libsass/src/*/'].map { |p| "$(srcdir)/#{p}" }
$srcs = Dir['libsass/src/**/*.{c,cpp}']
$srcs = Dir['libsass/src/**/*.{c,cpp}'].sort
end

# Don't link libruby.
Expand Down

0 comments on commit 0458396

Please sign in to comment.