Source: gem2deb
Version: 1.1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
gem2deb was generating Debian packages that were not reproducible.

For example, ruby-enumerable-statistics was installing a mkmf.log file
that contained various absolute build paths, which will make the package
not reproducible.

I note that there is code already in gem2deb that attempts to not
install these (?), but it does not appear to be working. Patch
attached, although this is just a proof of concept and/or to
demonstrate the problem a little more.

  [0] https://reproducible-builds.org/


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/lib/gem2deb/gem_installer.rb b/lib/gem2deb/gem_installer.rb
index 3ceed90..a89a680 100644
--- a/lib/gem2deb/gem_installer.rb
+++ b/lib/gem2deb/gem_installer.rb
@@ -143,6 +143,7 @@ module Gem2Deb
           end
 
           if metadata.has_native_extensions?
+            run 'find', 'extensions', '-name', 'mkmf.log', '-delete'
             run 'find', 'extensions', '-name', 'gem_make.out', '-delete'
           else
             FileUtils::Verbose.rm_rf('extensions')
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to