public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Daniel P. Berrange <dan@berrange.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Sys-Virt] epel10.2: Workaround Test::More's inability to cast XML::XPath::Number to an int
Date: Tue, 30 Jun 2026 07:30:34 GMT	[thread overview]
Message-ID: <178280463469.1.13445730766912215291.rpms-perl-Sys-Virt-23361031cff1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Sys-Virt
Branch : epel10.2
Commit : 23361031cff1ce3dff8534243dcb3119d62d9f2e
Author : Daniel P. Berrange <dan@berrange.com>
Date   : 2011-02-16T22:00:07+00:00
Stats  : +22/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Sys-Virt/c/23361031cff1ce3dff8534243dcb3119d62d9f2e?branch=epel10.2

Log:
Workaround Test::More's inability to cast XML::XPath::Number to an int

---
diff --git a/Sys-Virt-0.2.6-xpath-cast.patch b/Sys-Virt-0.2.6-xpath-cast.patch
new file mode 100644
index 0000000..9712d3b
--- /dev/null
+++ b/Sys-Virt-0.2.6-xpath-cast.patch
@@ -0,0 +1,16 @@
+diff --git a/t/100-connect.t b/t/100-connect.t
+index 3cf7634..98183b7 100644
+--- a/t/100-connect.t
++++ b/t/100-connect.t
+@@ -46,9 +46,9 @@ my $guestword = $xp->find("string(/capabilities/guest[1]/arch/wordsize)");
+ is($guestword, "32", "wordsize");
+ my $guesttype = $xp->find("string(/capabilities/guest[1]/arch/domain/\@type)");
+ is($guesttype, "test", "type");
+-my $guestpae = $xp->find("count(/capabilities/guest[1]/features/pae)");
++my $guestpae = int($xp->find("count(/capabilities/guest[1]/features/pae)"));
+ is($guestpae,  1, "pae");
+-my $guestnonpae = $xp->find("count(/capabilities/guest[1]/features/nonpae)");
++my $guestnonpae = int($xp->find("count(/capabilities/guest[1]/features/nonpae)"));
+ is($guestnonpae, 1, "nonpae");
+ 
+ my $ver = $conn->get_version();

diff --git a/perl-Sys-Virt.spec b/perl-Sys-Virt.spec
index c7d4427..75fc734 100644
--- a/perl-Sys-Virt.spec
+++ b/perl-Sys-Virt.spec
@@ -1,11 +1,12 @@
 Name:           perl-Sys-Virt
 Version:        0.2.6
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Represent and manage a libvirt hypervisor connection
 License:        GPLv2+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Sys-Virt/
 Source0:        http://www.cpan.org/authors/id/D/DA/DANBERR/Sys-Virt-%{version}.tar.gz
+Patch1:         Sys-Virt-%{version}-xpath-cast.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::Pod)
@@ -21,6 +22,7 @@ virtualization containers to be managed with a consistent API.
 
 %prep
 %setup -q -n Sys-Virt-%{version}
+%patch1 -p1
 
 sed -i -e '/Sys-Virt\.spec/d' Makefile.PL
 sed -i -e '/\.spec\.PL$/d' MANIFEST
@@ -55,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Wed Feb 16 2011 Daniel P Berrange <berrange@berrange.com> - 0.2.6-2
+- Workaround Test::More's inability to cast XML::XPath::Number to an int
+
 * Wed Feb 16 2011 Daniel P Berrange <dan@berrange.com> - 0.2.6-1
 - Update to 0.2.6 release
 

                 reply	other threads:[~2026-06-30  7:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178280463469.1.13445730766912215291.rpms-perl-Sys-Virt-23361031cff1@fedoraproject.org \
    --to=dan@berrange.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox