[DRE-commits] [SCM] ruby-kgio.git branch, master, updated. upstream/2.7.2-7-g6aac4cf

Hleb Valoshka 375GNU at Gmail.COM
Sun Mar 4 17:23:09 UTC 2012


The following commit has been merged in the master branch:
commit 5c0b243859ebab9f10a43bacac1356c942768701
Author: Hleb Valoshka <375GNU at Gmail.COM>
Date:   Sun Mar 4 18:17:52 2012 +0300

    fix check for accept4 on GNU/not Linux

diff --git a/debian/patches/fix-buildconfig-for-gnu-not-linux b/debian/patches/fix-buildconfig-for-gnu-not-linux
new file mode 100644
index 0000000..ccbb49d
--- /dev/null
+++ b/debian/patches/fix-buildconfig-for-gnu-not-linux
@@ -0,0 +1,13 @@
+Index: ruby-kgio/ext/kgio/extconf.rb
+===================================================================
+--- ruby-kgio.orig/ext/kgio/extconf.rb	2012-02-18 16:52:13.000000000 +0300
++++ ruby-kgio/ext/kgio/extconf.rb	2012-03-03 15:30:40.833523552 +0300
+@@ -20,7 +20,7 @@
+   abort "getnameinfo required"
+ have_type("struct sockaddr_storage", %w(sys/types.h sys/socket.h)) or
+   abort "struct sockaddr_storage required"
+-have_func('accept4', %w(sys/socket.h))
++have_func('accept4', %w(sys/socket.h)) if RUBY_PLATFORM =~ /linux/
+ have_header("sys/select.h")
+ 
+ if have_header('ruby/io.h')
diff --git a/debian/patches/series b/debian/patches/series
index 0f80bbf..970c2dd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-test-under-fakeroot
+fix-buildconfig-for-gnu-not-linux

-- 
ruby-kgio.git



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