Fix Ruby bindings for swig 4.1

This commit is contained in:
lyn1001 2023-08-24 15:04:26 +08:00
parent 914b67ee4d
commit 8cabf10444
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up openwsman-2.7.1/bindings/ruby/helpers.h.orig openwsman-2.7.1/bindings/ruby/helpers.h
--- openwsman-2.7.1/bindings/ruby/helpers.h.orig 2021-04-07 17:25:55.000000000 +0200
+++ openwsman-2.7.1/bindings/ruby/helpers.h 2022-10-21 08:36:24.901459057 +0200
@@ -47,7 +47,7 @@
*
*/
-#if SWIGVERSION > 0x020004
+#if SWIG_VERSION > 0x020004
#define KLASS_DECL(k,t) swig_class *k = (swig_class *)(t->clientdata)
#define KLASS_OF(x) x->klass
#else

View File

@ -3,7 +3,7 @@
Name: openwsman
Version: 2.6.5
Release: 15
Release: 16
Summary: Opensource Implementation of WS-Management
License: BSD-3-Clause and MIT
URL: http://www.openwsman.org/
@ -16,6 +16,7 @@ Patch0001: openwsman-2.4.12-ruby-binding-build.patch
Patch0002: openwsman-2.6.2-openssl-1.1-fix.patch
Patch0003: openwsman-2.6.5-fix-set-cipher-list-retval-check.patch
Patch0004: openwsman-2.6.5-libcurl-error-codes-update.patch
Patch0005: openwsman-2.6.5-fix-ruby-bindings-for-swig-41.patch
Patch6000: CVE-2019-3833.patch
Patch6001: 0001-Make-python-version-explitic-DBUILD_PYTHON3-or-DBUIL.patch
@ -259,6 +260,9 @@ rm -f /var/log/wsmand.log
%{_mandir}/man8/*
%changelog
* Thu Aug 24 2023 liyanan <thistleslyn@163.com> - 2.6.5-16
- Fix Ruby bindings for swig 4.1
* Tue May 10 2022 yaoxin <yaoxin30@h-partners.com> - 2.6.5-15
- License compliance rectification