[DRE-commits] [ruby-re2] 06/08: drop patch

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sat Aug 19 05:41:52 UTC 2017


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

praveen pushed a commit to branch master
in repository ruby-re2.

commit 09eb9ae8dbbe9d4e35f51ba743fb9c54f166f1f0
Author: Pirate Praveen <praveen at debian.org>
Date:   Sat Aug 19 11:05:53 2017 +0530

    drop patch
---
 debian/patches/c++11 | 55 ----------------------------------------------------
 1 file changed, 55 deletions(-)

diff --git a/debian/patches/c++11 b/debian/patches/c++11
deleted file mode 100644
index 473e42c..0000000
--- a/debian/patches/c++11
+++ /dev/null
@@ -1,55 +0,0 @@
-Description: RE2 now requires C++11
-Author: Stefano Rivera <stefanor at debian.org>
-Forwarded: https://github.com/mudge/re2/pull/30
-Bug-Debian: https://bugs.debian.org/820349
-
---- a/ext/re2/extconf.rb
-+++ b/ext/re2/extconf.rb
-@@ -8,12 +8,35 @@ require 'mkmf'
- 
- incl, lib = dir_config("re2", "/usr/local/include", "/usr/local/lib")
- 
--$CFLAGS << " -Wall -Wextra -funroll-loops"
-+# for try_compile: Pass -x c++ to force gcc to compile the test program as C++
-+# (as it will end in .c by default).
-+cxx_source = "-x c++"
-+
-+if defined? $CXXFLAGS
-+  $CXXFLAGS << " -Wall -Wextra -std=c++11"
-+  cxx_source << " #{$CXXFLAGS}"
-+else
-+  $CFLAGS << " -Wall -Wextra -std=c++11"
-+end
- 
- have_library("stdc++")
- have_header("stdint.h")
- have_func("rb_str_sublen")
- 
-+checking_for("C++11 support") do
-+  trivial_test = <<SRC
-+int main() {
-+  return 0;
-+}
-+SRC
-+
-+  if !try_compile(trivial_test, cxx_source)
-+    abort "Require a compiler with C++11 support"
-+  else
-+    true
-+  end
-+end
-+
- if have_library("re2")
- 
-   # Determine which version of re2 the user has installed.
-@@ -35,9 +58,7 @@ int main() {
- }
- SRC
- 
--    # Pass -x c++ to force gcc to compile the test program
--    # as C++ (as it will end in .c by default).
--    if try_compile(test_re2_match_signature, "-x c++")
-+    if try_compile(test_re2_match_signature, cxx_source)
-       $defs.push("-DHAVE_ENDPOS_ARGUMENT")
-     end
-   end

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



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