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

Hleb Valoshka 375GNU at Gmail.COM
Tue Mar 6 17:36:07 UTC 2012


The following commit has been merged in the master branch:
commit 9f6f25ef2663155bb93d9ebb73bfc7fe94bf7110
Author: Hleb Valoshka <375GNU at Gmail.COM>
Date:   Tue Mar 6 20:02:42 2012 +0300

    define necessary flags for accept4
    disable already unnecessary patch `fix-buildconfig-for-gnu-not-linux'

diff --git a/debian/patches/fix-define-flags-for-accept4 b/debian/patches/fix-define-flags-for-accept4
new file mode 100644
index 0000000..f25352e
--- /dev/null
+++ b/debian/patches/fix-define-flags-for-accept4
@@ -0,0 +1,21 @@
+From 56cce133d979c22bbef80fdba1881d8f40876e2f Mon Sep 17 00:00:00 2001
+From: Eric Wong <normalperson at yhbt.net>
+Date: Mon, 05 Mar 2012 22:37:20 +0000
+Subject: accept4: require SOCK_NONBLOCK/SOCK_CLOEXEC macros
+
+The check for the accept4() function actually succeeds on a
+stock installation of Debian GNU/kFreeBSD 6.0, but the
+eglibc headers fail to define the necessary flags.
+---
+diff --git a/ext/kgio/missing_accept4.h b/ext/kgio/missing_accept4.h
+index 2801b5d..3e9ec67 100644
+--- a/ext/kgio/missing_accept4.h
++++ b/ext/kgio/missing_accept4.h
+@@ -1,4 +1,4 @@
+-#ifndef HAVE_ACCEPT4
++#if !defined(HAVE_ACCEPT4) || !defined(SOCK_CLOEXEC) || !defined(SOCK_NONBLOCK)
+ #  ifndef _GNU_SOURCE
+ #    define _GNU_SOURCE
+ #  endif
+--
+cgit v0.9.0.2-54-g2d9a
diff --git a/debian/patches/series b/debian/patches/series
index b23dca2..ad21062 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,6 @@
 fix-test-under-fakeroot
-fix-buildconfig-for-gnu-not-linux
+#fix-buildconfig-for-gnu-not-linux
 fix-potential-race-in-test-poll
 fix-autopush-on-nonlinux
 fix-increase-delta-range
+fix-define-flags-for-accept4

-- 
ruby-kgio.git



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