mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
cffi, revbumb, fix tests (#11710)
Co-authored-by: Oscar Lesta <oscar.lesta@gmail.com>
This commit is contained in:
@@ -4,9 +4,10 @@ HOMEPAGE="https://cffi.readthedocs.io/
|
||||
https://pypi.org/project/cffi/"
|
||||
COPYRIGHT="2012-2021 Armin Rigo, Maciej Fijalkowski"
|
||||
LICENSE="MIT"
|
||||
REVISION="4"
|
||||
REVISION="5"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/c/cffi/cffi-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9"
|
||||
PATCHES="cffi-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
48
dev-python/cffi/patches/cffi-1.15.1.patchset
Normal file
48
dev-python/cffi/patches/cffi-1.15.1.patchset
Normal file
@@ -0,0 +1,48 @@
|
||||
From 341e07c1e8aa6f78ecfa5809a920a369f4b05405 Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Mon, 3 Feb 2025 13:55:59 +0100
|
||||
Subject: Fix tests
|
||||
|
||||
|
||||
diff --git a/testing/cffi0/test_ownlib.py b/testing/cffi0/test_ownlib.py
|
||||
index bbdab8c..ee9aae8 100644
|
||||
--- a/testing/cffi0/test_ownlib.py
|
||||
+++ b/testing/cffi0/test_ownlib.py
|
||||
@@ -388,7 +388,7 @@ class TestOwnLib(object):
|
||||
def test_dlopen_handle(self):
|
||||
if self.module is None:
|
||||
py.test.skip("fix the auto-generation of the tiny test lib")
|
||||
- if sys.platform == 'win32' or is_musl:
|
||||
+ if sys.platform == 'win32' or sys.platform[:5] == 'haiku' or is_musl:
|
||||
py.test.skip("uses 'dl' explicitly")
|
||||
if self.__class__.Backend is CTypesBackend:
|
||||
py.test.skip("not for the ctypes backend")
|
||||
diff --git a/testing/cffi0/test_parsing.py b/testing/cffi0/test_parsing.py
|
||||
index 5d93a8d..20d8469 100644
|
||||
--- a/testing/cffi0/test_parsing.py
|
||||
+++ b/testing/cffi0/test_parsing.py
|
||||
@@ -16,7 +16,7 @@ class FakeBackend(object):
|
||||
if sys.platform == 'win32':
|
||||
assert name is None or "msvcr" in name
|
||||
else:
|
||||
- assert name is None or "libc" in name or "libm" in name
|
||||
+ assert name is None or "libc" in name or "libm" in name or "libroot" in name
|
||||
return FakeLibrary()
|
||||
|
||||
def new_function_type(self, args, result, has_varargs):
|
||||
diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py
|
||||
index 45dd70c..50598be 100644
|
||||
--- a/testing/cffi1/test_re_python.py
|
||||
+++ b/testing/cffi1/test_re_python.py
|
||||
@@ -269,7 +269,7 @@ def test_selfref():
|
||||
def test_dlopen_handle():
|
||||
import _cffi_backend
|
||||
from re_python_pysrc import ffi
|
||||
- if sys.platform == 'win32' or is_musl:
|
||||
+ if sys.platform == 'win32' or sys.platform[:5] == 'haiku' or is_musl:
|
||||
py.test.skip("uses 'dl' explicitly")
|
||||
ffi1 = FFI()
|
||||
ffi1.cdef("""void *dlopen(const char *filename, int flags);
|
||||
--
|
||||
2.45.2
|
||||
|
||||
Reference in New Issue
Block a user