Bug#743671: Building extensions breaks resulting packages

2014-04-05 Thread Antonio Terceiro
Control: reassign -1 gem2deb

Hello, thanks for your bug report.

On Sat, Apr 05, 2014 at 01:14:04AM +0200, Marc Dequènes (Duck) wrote:
 Package: libruby2.1
 Version: 2.1.1-2
 Severity: grave
 Control: block 743664 with -1
 
 Coin,
 
 Building extensions leaves mkmf.log files in weird places since 2.1, see
 #743664.
 
 I though the problem was in mkmf.rb which had changed a bit since 2.0 but
 after investigation it appears to be a change in
 rubygems/ext/ext_conf_builder.rb:
 39c37,41
  run cmd, results
 ---
 begin
   run cmd, results
 ensure
   FileUtils.mv 'mkmf.log', dest_path if File.exist? 'mkmf.log'
 end
 
 Commenting FileUtils.mv fixed this issue. I honestly don't understand the
 reason for moving the log file at all.

That was probably added to help people debug built extensions, and kind
of makes sense for the usual upstream use case where people install
stuff from rubygems and have their binary extensions compiled at
installation time. For this reason I think the best option is to make
gem2deb cope with this.

I am working on a fix for this.

-- 
Antonio Terceiro terce...@debian.org


signature.asc
Description: Digital signature


Bug#743671: Building extensions breaks resulting packages

2014-04-04 Thread Marc Dequènes (Duck)

Package: libruby2.1
Version: 2.1.1-2
Severity: grave
Control: block 743664 with -1

Coin,

Building extensions leaves mkmf.log files in weird places since 2.1,  
see #743664.


I though the problem was in mkmf.rb which had changed a bit since 2.0  
but after investigation it appears to be a change in  
rubygems/ext/ext_conf_builder.rb:

39c37,41
 run cmd, results
---

begin
  run cmd, results
ensure
  FileUtils.mv 'mkmf.log', dest_path if File.exist? 'mkmf.log'
end


Commenting FileUtils.mv fixed this issue. I honestly don't understand  
the reason for moving the log file at all.


Thanks Mr KiBi for his help :-).

Regards.

--
Marc Dequènes (Duck)



pgpw85PL_oc8L.pgp
Description: PGP Digital Signature