From 30ab4a4c637f08f93dba7483a243b2785c66821b057c10256c802442a29cf587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Fri, 3 Nov 2023 10:33:06 +0000 Subject: [PATCH] Accepting request 1123014 from home:defolos:branches:devel:languages:ruby:extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖: Automatic update to 1.16.3 OBS-URL: https://build.opensuse.org/request/show/1123014 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-ffi?expand=0&rev=103 --- ffi-1.15.5.gem | 3 -- ffi-1.16.3.gem | 3 ++ rubygem-ffi.changes | 76 +++++++++++++++++++++++++++++++++++++++++++++ rubygem-ffi.spec | 10 +++--- 4 files changed, 83 insertions(+), 9 deletions(-) delete mode 100644 ffi-1.15.5.gem create mode 100644 ffi-1.16.3.gem diff --git a/ffi-1.15.5.gem b/ffi-1.15.5.gem deleted file mode 100644 index c67fa9f..0000000 --- a/ffi-1.15.5.gem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f2ed2fa68047962d6072b964420cba91d82ce6fa8ee251950c17fca6af3c2a0 -size 909824 diff --git a/ffi-1.16.3.gem b/ffi-1.16.3.gem new file mode 100644 index 0000000..8b9f5fa --- /dev/null +++ b/ffi-1.16.3.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d3242ff10c87271b0675c58d68d3f10148fabc2ad6da52a18123f06078871fb +size 999936 diff --git a/rubygem-ffi.changes b/rubygem-ffi.changes index 12f3e5a..3350653 100644 --- a/rubygem-ffi.changes +++ b/rubygem-ffi.changes @@ -1,3 +1,79 @@ +------------------------------------------------------------------- +Fri Nov 3 07:35:38 UTC 2023 - Dan Čermák + +- 1.16.3 / 2023-10-04 +------------------- + +Fixed: +* Fix gcc error when building on CentOS 7. #1052 +* Avoid trying to store new DataConverter type in frozen TypeDefs hash. #1057 + +1.16.2 / 2023-09-25 +------------------- + +Fixed: +* Handle null pointer crash after fork. #1051 + +1.16.1 / 2023-09-24 +------------------- + +Fixed: +* Fix compiling the builtin libffi. #1049 + +1.16.0 / 2023-09-23 +------------------- + +Fixed: +* Fix an issue with signed bitmasks when using flags on the most significant bit. #949 +* Fix FFI::Pointer#initialize using NUM2LL instead of NUM2ULL. +* Fix FFI::Type#inspect to properly display the constant name. #1002 +* Use libffi closure allocations on hppa-Linux. #1017 + Previously they would segfault. +* Fix class name of Symbol#inspect. +* Fix MSVC support of libtest. #1028 +* Fix attach_function of functions ending in ? or ! #971 + +Added: +* Convert all C-based classes to TypedData and use write barriers. #994, #995, #996, #997, #998, #999, #1000, #1001, #1003, #1004, #1005, #1006, #1007, #1008, #1009, #1010, #1011, #1012 + This results in less pressure on the garbage collector, since the objects can be promoted to the old generation, which means they only get marked on major GC. +* Implement `ObjectSpace.memsize_of()` of all C-based classes. +* Make FFI Ractor compatible. #1023 + Modules extended per `extend FFI::Library` need to be frozen in order to be used by non-main Ractors. + This can be done by calling `freeze` below of all C interface definitions. + * In a Ractor it's possible to: + * load DLLs and call its functions, access its global variables + * use builtin typedefs + * use and modify ractor local typedefs + * define callbacks + * receive async callbacks from non-ruby threads + * use frozen FFI::Library based modules with all attributes (enums, structs, typedefs, functions, callbacks) + * invoke frozen functions and callbacks defined in the main Ractor + * use FFI::Struct definitions from the main Ractor + * In a Ractor it's impossible to: + * create new FFI::Library based modules + * create new FFI::Struct definitions + * use custom global typedefs + * use non-frozen FFI::Library based modules +* Allow type retrieval of attached functions+variables. #1023 +* Make FFI classes `GC.compact` friendly. #1021 +* Update libffi and disable custom trampoline when using libffi closure allocation. #1020 + This is because libffi changed the way how closures are allocated to static trampolines. +* Add types.conf for loongarch64-linux. #943 +* Add types.conf for sw_64-linux (Shen Wei 64-bit, based on Alpha). #1018 +* Add support for aarch64-windows. #1035 +* Windows: Update LoadLibrary error message to include error code. #1026 +* Allow private release method for FFI::ManagedStruct and FFI::AutoPointer. #1029 +* Add support for passing ABI version to FFI.map_library_name. #963 + This adds the new class FFI::LibraryPath . +* Add support for ruby-3.2 to windows binary gem. #1047 +* Enable debug symbols for `rake compile` builds to ease debugging. #1048 + +Removed: +* Remove allocator of AbstractMemory. #1013 + This disables AbstractMemory.new, which has no practical use. +* Remove unused FFI::SizeTypes. #1022 + + ------------------------------------------------------------------- Tue Jan 25 06:55:18 UTC 2022 - Stephan Kulow diff --git a/rubygem-ffi.spec b/rubygem-ffi.spec index 699ef1f..9b0ce29 100644 --- a/rubygem-ffi.spec +++ b/rubygem-ffi.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-ffi # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,25 +24,23 @@ # Name: rubygem-ffi -Version: 1.15.5 +Version: 1.16.3 Release: 0 %define mod_name ffi %define mod_full_name %{mod_name}-%{version} # MANUAL BuildRequires: libffi-devel # /MANUAL -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{rubydevel >= 2.3} +BuildRequires: ruby-macros >= 5 +BuildRequires: %{rubydevel >= 2.5} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} -BuildRequires: ruby-macros >= 5 URL: https://github.com/ffi/ffi/wiki Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-ffi-rpmlintrc Source2: gem2rpm.yml Summary: Ruby FFI License: BSD-3-Clause -Group: Development/Languages/Ruby %description Ruby FFI library.