[DRE-commits] [ruby-shadow] 01/03: Don't overwrite CFLAGS|LDFLAGS

David Suárez deiv-guest at alioth.debian.org
Sat Oct 26 10:45:54 UTC 2013


This is an automated email from the git hooks/post-receive script.

deiv-guest pushed a commit to branch master
in repository ruby-shadow.

commit 425755f041159b2d0212ccb437a11c99fe69b5bf
Author: David Suárez <david.sephirot at gmail.com>
Date:   Sat Oct 26 12:26:03 2013 +0200

    Don't overwrite CFLAGS|LDFLAGS
---
 debian/patches/dont-overwrite-compiler-flags |   30 ++++++++++++++++++++++++++
 debian/patches/series                        |    2 ++
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/dont-overwrite-compiler-flags b/debian/patches/dont-overwrite-compiler-flags
new file mode 100644
index 0000000..fa1769e
--- /dev/null
+++ b/debian/patches/dont-overwrite-compiler-flags
@@ -0,0 +1,30 @@
+Description: Don't overwrite CFLAGS|LDFLAGS
+ It seems that the current extconf.rb overwrites the CFLAGS/LDFLAGS.
+
+Author: Cédric Boutillier <boutil at debian.org>
+Author: David Suárez <david.sephirot at gmail.com>
+Last-Update: 2013-10-26
+
+--- ruby-shadow-2.2.0.orig/extconf.rb
++++ ruby-shadow-2.2.0/extconf.rb
+@@ -6,16 +6,16 @@
+ 
+ require 'mkmf'
+ 
+-$CFLAGS = case RUBY_VERSION
+-          when /^1\.9/; '-DRUBY19'
+-          when /^2\./; '-DRUBY19'
++$CFLAGS += case RUBY_VERSION
++          when /^1\.9/; ' -DRUBY19'
++          when /^2\./; ' -DRUBY19'
+           else; ''
+           end
+ 
+ #$LDFLAGS = "-lshadow"
+ 
+ if( ! (ok = have_library("shadow","getspent")) )
+-  $LDFLAGS = ""
++  #$LDFLAGS = ""
+   ok = have_func("getspent")
+ end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ffb1a97..d7074aa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
 010_fix_license
+dont-overwrite-compiler-flags
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-shadow.git



More information about the Pkg-ruby-extras-commits mailing list