[Pkg-libvirt-commits] [Git][libvirt-team/ruby-libvirt][debian/sid] 4 commits: ruby-libvirt (0.7.1-1.1) UNRELEASED
Guido Günther (@agx)
gitlab at salsa.debian.org
Mon Nov 1 15:31:57 GMT 2021
Guido Günther pushed to branch debian/sid at Libvirt Packaging Team / ruby-libvirt
Commits:
d58dbd29 by Daniel Leidert at 2021-11-01T15:39:35+01:00
ruby-libvirt (0.7.1-1.1) UNRELEASED
- - - - -
197454a4 by Daniel Leidert at 2021-11-01T15:42:24+01:00
Fix FTBFS with Ruby 3.0
* d/patches/996313-fix-ext-build-with-ruby3.patch: Add patch.
- Use 'include <ruby/st.h>' to fix build with Ruby 3 (closes: #996313).
* d/patches/series: Enable new patch.
- - - - -
1bc5befa by Daniel Leidert at 2021-11-01T15:42:35+01:00
ruby-libvirt (0.7.1-1.1) unstable
- - - - -
ed865eb0 by Guido Günther at 2021-11-01T15:31:55+00:00
Merge branch 'debian/sid' into 'debian/sid'
Fix FTBFS with Ruby 3.0
See merge request libvirt-team/ruby-libvirt!2
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/996313-fix-ext-build-with-ruby3.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+ruby-libvirt (0.7.1-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * d/patches/996313-fix-ext-build-with-ruby3.patch: Add patch.
+ - Use 'include <ruby/st.h>' to fix build with Ruby 3 (closes: #996313).
+ * d/patches/series: Enable new patch.
+
+ -- Daniel Leidert <dleidert at debian.org> Mon, 01 Nov 2021 15:39:25 +0100
+
ruby-libvirt (0.7.1-1) unstable; urgency=medium
* New upstream version 0.7.1
=====================================
debian/patches/996313-fix-ext-build-with-ruby3.patch
=====================================
@@ -0,0 +1,39 @@
+From: Daniel Leidert <dleidert at debian.org>
+Date: Mon, 1 Nov 2021 15:36:12 +0100
+Subject: Fix FTBFS with Ruby 3
+
+Ruby 3 will no longer accept 'include <st.h>' and Ruby 2.7 already prints a
+warning about it.
+
+Debian-Bug: https://bugs.debian.org/996313
+---
+ ext/libvirt/common.c | 2 +-
+ ext/libvirt/domain.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ext/libvirt/common.c b/ext/libvirt/common.c
+index cf7dd93..ca92088 100644
+--- a/ext/libvirt/common.c
++++ b/ext/libvirt/common.c
+@@ -24,7 +24,7 @@
+ #endif
+ #include <stdio.h>
+ #include <ruby.h>
+-#include <st.h>
++#include <ruby/st.h>
+ #include <libvirt/libvirt.h>
+ #include <libvirt/virterror.h>
+ #include "common.h"
+diff --git a/ext/libvirt/domain.c b/ext/libvirt/domain.c
+index d665907..ecbbff6 100644
+--- a/ext/libvirt/domain.c
++++ b/ext/libvirt/domain.c
+@@ -23,7 +23,7 @@
+ #include <unistd.h>
+ #include <ruby.h>
+ /* we need to include st.h since ruby 1.8 needs it for RHash */
+-#include <st.h>
++#include <ruby/st.h>
+ #include <libvirt/libvirt.h>
+ #if HAVE_VIRDOMAINQEMUMONITORCOMMAND
+ #include <libvirt/libvirt-qemu.h>
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
Don-t-run-tests-that-require-qemu-system.patch
+996313-fix-ext-build-with-ruby3.patch
View it on GitLab: https://salsa.debian.org/libvirt-team/ruby-libvirt/-/compare/30fdca78e609e5341b004da2fe29bb6fdad1a684...ed865eb0a04491e8f53c167d71fd5b3222662cf0
--
View it on GitLab: https://salsa.debian.org/libvirt-team/ruby-libvirt/-/compare/30fdca78e609e5341b004da2fe29bb6fdad1a684...ed865eb0a04491e8f53c167d71fd5b3222662cf0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20211101/60aba718/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list