diff --git a/openwsman-2.7.2-fix-ftbfs.patch b/openwsman-2.7.2-fix-ftbfs.patch new file mode 100644 index 0000000000000000000000000000000000000000..b30b3cfc7273e2792dcaf3df2d6dd8ca3f464333 --- /dev/null +++ b/openwsman-2.7.2-fix-ftbfs.patch @@ -0,0 +1,12 @@ +diff -up openwsman-2.7.2/bindings/openwsman.i.orig openwsman-2.7.2/bindings/openwsman.i +--- openwsman-2.7.2/bindings/openwsman.i.orig 2024-01-22 09:36:42.764721705 +0100 ++++ openwsman-2.7.2/bindings/openwsman.i 2024-01-22 09:37:29.970817151 +0100 +@@ -109,7 +109,7 @@ SWIGINTERNINLINE SV *SWIG_From_double S + + %typemap(in) FILE* { + #if RUBY_VERSION > 18 +- struct rb_io_t *fptr; ++ struct rb_io *fptr; + #else + struct OpenFile *fptr; + #endif diff --git a/openwsman-2.7.2.tar.gz b/openwsman-2.7.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..917775ae420b740bc4710f56eedad22f172296a6 Binary files /dev/null and b/openwsman-2.7.2.tar.gz differ diff --git a/openwsman.spec b/openwsman.spec index 634576fe098c74a536dce1c031390be0296818d9..d4658bac6bd9aa8bb26e5fffbe50cb2e5bfdb1d2 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %global gem_name %{name} %global with_selinux 1 @@ -16,25 +16,26 @@ Summary: Open source Implementation of WS-Management License: BSD-3-Clause AND MIT URL: http://www.openwsman.org/ -Source0: https://github.com/Openwsman/openwsman/archive/v%{version}.tar.gz -# help2man generated manpage for openwsmand binary +Source0: https://github.com/Openwsman/openwsman/archive/v2.7.2.tar.gz Source1: openwsmand.8.gz -# service file for systemd Source2: openwsmand.service -# script for testing presence of the certificates in ExecStartPre Source3: owsmantestcert.sh +Source100: openwsman.te +Source101: openwsman.if +Source102: openwsman.fc +# help2man generated manpage for openwsmand binary +# service file for systemd +# script for testing presence of the certificates in ExecStartPre # Source100-102: selinux policy for openwsman, extracted # from https://github.com/fedora-selinux/selinux-policy %if 0%{with_selinux} -Source100: %{modulename}.te -Source101: %{modulename}.if -Source102: %{modulename}.fc %endif Patch1: openwsman-2.4.0-pamsetup.patch Patch2: openwsman-2.4.12-ruby-binding-build.patch Patch3: openwsman-2.6.2-openssl-1.1-fix.patch Patch4: openwsman-2.6.5-http-status-line.patch Patch5: openwsman-2.6.8-update-ssleay-conf.patch +Patch6: openwsman-2.7.2-fix-ftbfs.patch BuildRequires: make BuildRequires: swig BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel @@ -414,6 +415,8 @@ fi %doc AUTHORS ChangeLog README.md %changelog +* Wed Sep 17 2025 wenyuzifang - 2.7.2-3 +- Fixes compilation errors with Ruby 1.9+ by updating outdated structure names * Tue Apr 01 2025 Xiaoping Liu - 2.7.2-2 - Rebuild with new ruby diff --git a/openwsmand.service b/openwsmand.service index e10c75dfb92986227cd05b07b6c586b229a76635..a42b11f177cbff228edb7bdd4668fe4f16b7de3c 100644 --- a/openwsmand.service +++ b/openwsmand.service @@ -6,7 +6,7 @@ After=syslog.target Type=forking ExecStart=/usr/sbin/openwsmand -S ExecStartPre=/etc/openwsman/owsmantestcert.sh -PIDFile=/var/run/wsmand.pid +PIDFile=/run/wsmand.pid [Install] WantedBy=multi-user.target