mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
pycares: update to version 4.10.0.
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
From 453186ac548dd30c1749e26093c61246617d5e8c Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Wed, 11 Jul 2018 14:02:51 +0200
|
||||
Subject: Add Haiku support.
|
||||
|
||||
Just pretend we are NetBSD.
|
||||
|
||||
diff --git a/setup_cares.py b/setup_cares.py
|
||||
index 97c4cc6..5044766 100644
|
||||
--- a/setup_cares.py
|
||||
+++ b/setup_cares.py
|
||||
@@ -78,6 +78,8 @@ class cares_build_ext(build_ext):
|
||||
elif sys.platform.startswith('freebsd'):
|
||||
self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_freebsd'))
|
||||
self.compiler.add_library('kvm')
|
||||
+ elif sys.platform.startswith('haiku'):
|
||||
+ self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_netbsd'))
|
||||
elif sys.platform.startswith('dragonfly'):
|
||||
self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_freebsd'))
|
||||
elif sys.platform.startswith('netbsd'):
|
||||
--
|
||||
2.16.4
|
||||
|
||||
61
dev-python/pycares/patches/pycares-4.10.0.patchset
Normal file
61
dev-python/pycares/patches/pycares-4.10.0.patchset
Normal file
@@ -0,0 +1,61 @@
|
||||
From e80b5c81b7464dacd9c584bfcd9039640955b4d0 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Wed, 11 Jul 2018 14:02:51 +0200
|
||||
Subject: Add Haiku support.
|
||||
|
||||
Just pretend we are NetBSD.
|
||||
|
||||
diff --git a/setup_cares.py b/setup_cares.py
|
||||
index 640c863..ea51b65 100644
|
||||
--- a/setup_cares.py
|
||||
+++ b/setup_cares.py
|
||||
@@ -139,6 +139,8 @@ class cares_build_ext(build_ext):
|
||||
self.add_include_dir(os.path.join(self.build_config_dir, 'config_freebsd'))
|
||||
elif sys.platform.startswith('netbsd'):
|
||||
self.add_include_dir(os.path.join(self.build_config_dir, 'config_netbsd'))
|
||||
+ elif sys.platform.startswith('haiku'):
|
||||
+ self.add_include_dir(os.path.join(self.build_config_dir, 'config_netbsd'))
|
||||
elif sys.platform.startswith('openbsd'):
|
||||
self.add_include_dir(os.path.join(self.build_config_dir, 'config_openbsd'))
|
||||
elif sys.platform.startswith('sunos'):
|
||||
--
|
||||
2.50.1
|
||||
|
||||
|
||||
From c2d3b9c4bae2fbdad3b01291482d5c97ae069565 Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Wed, 27 Aug 2025 01:41:47 -0300
|
||||
Subject: Haiku doesn't defines EV_ENABLE.
|
||||
|
||||
|
||||
diff --git a/deps/c-ares/src/lib/event/ares_event_kqueue.c b/deps/c-ares/src/lib/event/ares_event_kqueue.c
|
||||
index 00cdcbe..84af05b 100644
|
||||
--- a/deps/c-ares/src/lib/event/ares_event_kqueue.c
|
||||
+++ b/deps/c-ares/src/lib/event/ares_event_kqueue.c
|
||||
@@ -148,7 +148,11 @@ static void ares_evsys_kqueue_event_process(ares_event_t *event,
|
||||
}
|
||||
|
||||
if (new_flags & ARES_EVENT_FLAG_READ && !(old_flags & ARES_EVENT_FLAG_READ)) {
|
||||
+#ifdef EV_ENABLE
|
||||
ares_evsys_kqueue_enqueue(kq, event->fd, EVFILT_READ, EV_ADD | EV_ENABLE);
|
||||
+#else
|
||||
+ ares_evsys_kqueue_enqueue(kq, event->fd, EVFILT_READ, EV_ADD);
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (!(new_flags & ARES_EVENT_FLAG_READ) && old_flags & ARES_EVENT_FLAG_READ) {
|
||||
@@ -157,7 +161,11 @@ static void ares_evsys_kqueue_event_process(ares_event_t *event,
|
||||
|
||||
if (new_flags & ARES_EVENT_FLAG_WRITE &&
|
||||
!(old_flags & ARES_EVENT_FLAG_WRITE)) {
|
||||
+#ifdef EV_ENABLE
|
||||
ares_evsys_kqueue_enqueue(kq, event->fd, EVFILT_WRITE, EV_ADD | EV_ENABLE);
|
||||
+#else
|
||||
+ ares_evsys_kqueue_enqueue(kq, event->fd, EVFILT_WRITE, EV_ADD);
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (!(new_flags & ARES_EVENT_FLAG_WRITE) &&
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Reference in New Issue
Block a user