Package: ruby1.9.1
Version: 1.9.3.194-8.2
Severity: normal
Tags: patch

Hi,

Currently, the Makefile created from extconf.rb files is not verbose.
As a consequence some compiler flags are hidden in the build log, which
prevents from automatic checking for missing hardening flags.

Since:
- there is an effort to track hidden compilers flags, tracked on the PTS
  (http://qa.debian.org/bls/index.html)
- there is ongoing discussions to make verbose builds a release goal for
  Jessie,
I guess that we could make Ruby create verbose Makefiles by default by
making the variable V=1 instead of 0 in lib/mkmf.rb

Patch against current master branch of the Git repository attached. With
this patch, the output of blhc on ruby-nokogiri 1.5.9-3 becomes empty
(it reports currently 34 hidden flags out of 69.
http://qa.debian.org/bls/packages/r/ruby-nokogiri.html


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby1.9.1 depends on:
ii  libc6         2.17-92+b1
ii  libruby1.9.1  1.9.3.194-8.2

ruby1.9.1 recommends no packages.

Versions of packages ruby1.9.1 suggests:
ii  graphviz            2.26.3-15+b1
ii  ri1.9.1             1.9.3.194-8.2
pn  ruby-switch         <none>
ii  ruby1.9.1-dev       1.9.3.194-8.2
pn  ruby1.9.1-examples  <none>

-- no debconf information
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 8f4e69e..e8e9748 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1639,7 +1639,7 @@ def configuration(srcdir)
 SHELL = /bin/sh
 
 # V=0 quiet, V=1 verbose.  other values don't work.
-V = 0
+V = 1
 Q1 = $(V:1=)
 Q = $(Q1:0=@)
 n=$(NULLCMD)

Attachment: signature.asc
Description: Digital signature

Reply via email to