[Pkg-sass-devel] Bug#835834: ruby-compass: please make the build reproducible
Chris Lamb
lamby at debian.org
Sun Aug 28 17:28:48 UTC 2016
Source: ruby-compass
Version: 1.0.3~dfsg-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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
More information about the pkg-sass-devel
mailing list