ruby-changes:58098
From: Nobuyoshi <ko1@a...>
Date: Thu, 3 Oct 2019 19:15:39 +0900 (JST)
Subject: [ruby-changes:58098] 8f7fca784a (master): make-snapshot: touch updated files after prepared
https://git.ruby-lang.org/ruby.git/commit/?id=8f7fca784a From 8f7fca784a46c4d4213ed7b166945f5b9143062d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 3 Oct 2019 19:13:05 +0900 Subject: make-snapshot: touch updated files after prepared Align mtime of files updated by `make prepare-package` to make packages reproducible. diff --git a/tool/make-snapshot b/tool/make-snapshot index 6a63305..f9716dd 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -483,6 +483,8 @@ touch-unicode-files: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L483 FileUtils.cp_r(orig, dest) end File.utime(modified, modified, *Dir.glob(["tool/config.{guess,sub}", "gems/*.gem", "tool"])) + return unless make.run("prepare-package") + return unless make.run("clean-cache") if modified new_time = modified + 2 touch_all(new_time, "**/*", File::FNM_DOTMATCH) do |name, stat| @@ -490,8 +492,6 @@ touch-unicode-files: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L492 end modified = new_time end - return unless make.run("prepare-package") - return unless make.run("clean-cache") print "prerequisites" else system(*%W"#{YACC} -o parse.c parse.y") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/