Source: ruby-compass Version: 1.0.3~dfsg-4 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], I noticed that ruby-compass could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/2004_reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/2004_reproducible-build.patch 2016-08-28 18:26:54.511593100 +0100 @@ -0,0 +1,20 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2016-08-28 + +--- ruby-compass-1.0.3~dfsg.orig/cli/lib/compass/commands/print_version.rb ++++ ruby-compass-1.0.3~dfsg/cli/lib/compass/commands/print_version.rb +@@ -56,7 +56,12 @@ Options: + if name = ::Compass.version[:name] + lines.last << " (#{name})" + end +- lines << "Copyright (c) 2008-#{Time.now.year} Chris Eppstein" ++ if ENV['SOURCE_DATE_EPOCH'].nil? ++ now = Time.now ++ else ++ now = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime ++ end ++ lines << "Copyright (c) 2008-#{now.year} Chris Eppstein" + lines << "Released under the MIT License." + lines << "Compass is charityware." + lines << "Please make a tax deductable donation for a worthy cause: http://umdf.org/compass" --- a/debian/patches/series 2016-08-28 18:18:38.966324108 +0100 --- b/debian/patches/series 2016-08-28 18:26:53.407581357 +0100 @@ -3,3 +3,4 @@ 2001_avoid_git_in_gemspec.patch 2002-frameworks-below-usr-share.patch 2003_disable_rb-fsevent.patch +2004_reproducible-build.patch
_______________________________________________ Reproducible-builds mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds
