[DRE-commits] [ruby-kyotocabinet] 01/02: Fix uninitialized constant Config

zeha at debian.org zeha at debian.org
Wed Jul 8 12:32:56 UTC 2015


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

zeha pushed a commit to branch master
in repository ruby-kyotocabinet.

commit a2e54b8b3feabed403068f9ddc08a6592509b5cb
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Wed Jul 8 14:21:33 2015 +0200

    Fix uninitialized constant Config
    
    Closes: #791779
---
 debian/patches/config-rbconfig.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/config-rbconfig.patch b/debian/patches/config-rbconfig.patch
new file mode 100644
index 0000000..47bd81c
--- /dev/null
+++ b/debian/patches/config-rbconfig.patch
@@ -0,0 +1,26 @@
+Index: ruby-kyotocabinet/extconf.rb
+===================================================================
+--- ruby-kyotocabinet.orig/extconf.rb
++++ ruby-kyotocabinet/extconf.rb
+@@ -7,7 +7,7 @@ kclibs = `pkg-config --libs-only-l kyoto
+ kccflags = `pkg-config --cflags kyotocabinet`.chomp
+ kcldflags = `pkg-config --libs-only-L kyotocabinet`.chomp
+ 
+-Config::CONFIG["CPP"] = "g++ -E"
++RbConfig::CONFIG["CPP"] = "g++ -E"
+ $CFLAGS = "-I. #{kccflags} -Wall #{$CFLAGS} -O2"
+ $LDFLAGS = "#{$LDFLAGS} -L. #{kcldflags}"
+ $libs = "#{$libs} #{kclibs}"
+Index: ruby-kyotocabinet/test.rb
+===================================================================
+--- ruby-kyotocabinet.orig/test.rb
++++ ruby-kyotocabinet/test.rb
+@@ -40,7 +40,7 @@ if ("ruby" + /libruby-?(\d+.\d+(.\d+)?)\
+ end if File.exists? "kyotocabinet.so"
+ 
+ system("rm -rf casket*")
+-rubycmd = Config::CONFIG["bindir"] + "/" + RbConfig::CONFIG['ruby_install_name']
++rubycmd = RbConfig::CONFIG["bindir"] + "/" + RbConfig::CONFIG['ruby_install_name']
+ all = confs.size * formats.size
+ cnt = 0
+ oknum = 0
diff --git a/debian/patches/series b/debian/patches/series
index 1ef84b2..e38db49 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-DFSG-include-source-for-jquery.js-1.2.6.patch
 0005-DFSG-include-source-for-thickbox-3.patch
 
+config-rbconfig.patch

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



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