File openwsman-skip-ruby-rdoc.patch of Package openwsman
diff --git a/bindings/ruby/CMakeLists.txt b/bindings/ruby/CMakeLists.txt
index 1a9a5d4..ef3b3f2 100644
--- a/bindings/ruby/CMakeLists.txt
+++ b/bindings/ruby/CMakeLists.txt
@@ -49,21 +49,27 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openwsman DESTINATION ${RUBY_WSMAN
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openwsman.rb DESTINATION ${RUBY_WSMAN_LIB_DIR})
 
 # rdoc
-SET(rdoc_dir "${CMAKE_CURRENT_BINARY_DIR}/html")
-ADD_CUSTOM_COMMAND (
-   OUTPUT ${rdoc_dir}
-   COMMAND ${CMAKE_COMMAND} -E echo_append "Creating rdoc documentation ..."
-   COMMAND rm -rf ${rdoc_dir}
-   COMMAND ./rdoc ${RUBY_VERSION_MAJOR}.${RUBY_VERSION_MINOR} -o ${rdoc_dir} -t "Openwsman - WS-Management for all" -m README.rdoc README.rdoc ../openwsman.i ../*.i openwsman/*.rb
-   COMMAND ${CMAKE_COMMAND} -E echo "Done."
-   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-   DEPENDS ${CMAKE_SOURCE_DIR}/bindings/*.i
-   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/openwsman/*.rb
-)
-
-ADD_CUSTOM_TARGET(ruby_rdoc ALL DEPENDS "${rdoc_dir}")
-ADD_DEPENDENCIES(ruby_rdoc rbwsman)
+# Skip documentation generation for newer Ruby versions where the
+# bundled RDoc workflow no longer works reliably.
+if(RUBY_VERSION_MAJOR LESS 3 OR (RUBY_VERSION_MAJOR EQUAL 3 AND RUBY_VERSION_MINOR LESS 4))
+  SET(rdoc_dir "${CMAKE_CURRENT_BINARY_DIR}/html")
+  ADD_CUSTOM_COMMAND (
+     OUTPUT ${rdoc_dir}
+     COMMAND ${CMAKE_COMMAND} -E echo_append "Creating rdoc documentation ..."
+     COMMAND rm -rf ${rdoc_dir}
+     COMMAND ./rdoc ${RUBY_VERSION_MAJOR}.${RUBY_VERSION_MINOR} -o ${rdoc_dir} -t "Openwsman - WS-Management for all" -m README.rdoc README.rdoc ../openwsman.i ../*.i openwsman/*.rb
+     COMMAND ${CMAKE_COMMAND} -E echo "Done."
+     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+     DEPENDS ${CMAKE_SOURCE_DIR}/bindings/*.i
+     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/openwsman/*.rb
+  )
+
+  ADD_CUSTOM_TARGET(ruby_rdoc ALL DEPENDS "${rdoc_dir}")
+  ADD_DEPENDENCIES(ruby_rdoc rbwsman)
+else()
+  message(STATUS "Skipping Ruby RDoc generation for Ruby ${RUBY_VERSION}")
+endif()
 
 
 
 IF( BUILD_RUBY_GEM )
 #
 # Ruby GEM
diff --git a/bindings/ruby/rdoc b/bindings/ruby/rdoc
index 3b4d2d1..d3a9b45 100755
--- a/bindings/ruby/rdoc
+++ b/bindings/ruby/rdoc
@@ -1,5 +1,6 @@
 #!/usr/bin/ruby
 
+# Note: This helper is not used when documentation generation is disabled in CMake.
 # This is ./rdoc
 #
 # Call as
 # ./rdoc <version-major>.<version-minor> ...
 #
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1234567..89abcde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-# Placeholder to keep patch format consistent – no functional changes here.
+# No functional changes – this hunk exists to satisfy patch tooling.