public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Daniel P. Berrange <berrange@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Sys-Virt] epel10.2: Fix hostname test
Date: Tue, 30 Jun 2026 07:30:32 GMT [thread overview]
Message-ID: <178280463283.1.10469023047647093407.rpms-perl-Sys-Virt-cdb47a9ebd4d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Sys-Virt
Branch : epel10.2
Commit : cdb47a9ebd4de5128b0d5c536da9e39a581b4b3f
Author : Daniel P. Berrange <berrange@redhat.com>
Date : 2010-08-14T16:23:43-04:00
Stats : +14/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Sys-Virt/c/cdb47a9ebd4de5128b0d5c536da9e39a581b4b3f?branch=epel10.2
Log:
Fix hostname test
---
diff --git a/Sys-Virt-0.2.4-hostname.patch b/Sys-Virt-0.2.4-hostname.patch
new file mode 100644
index 0000000..64ca741
--- /dev/null
+++ b/Sys-Virt-0.2.4-hostname.patch
@@ -0,0 +1,11 @@
+diff -rup Sys-Virt-0.2.4.orig/t/100-connect.t Sys-Virt-0.2.4.new/t/100-connect.t
+--- Sys-Virt-0.2.4.orig/t/100-connect.t 2010-05-19 07:56:18.000000000 -0400
++++ Sys-Virt-0.2.4.new/t/100-connect.t 2010-08-14 16:06:45.987592899 -0400
+@@ -67,6 +67,7 @@ is($max, 32, "max cpus");
+
+ my $thishost = hostname();
+ my ($canonhost, $other) = gethostbyname($thishost);
++$canonhost = $thishost unless $canonhost;
+ my $host = $conn->get_hostname();
+ is($host, $canonhost, "hostname");
+
diff --git a/perl-Sys-Virt.spec b/perl-Sys-Virt.spec
index 9e3dda2..987bb7e 100644
--- a/perl-Sys-Virt.spec
+++ b/perl-Sys-Virt.spec
@@ -6,6 +6,7 @@ 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}-hostname.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
@@ -57,6 +59,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sat Aug 14 2010 Daniel P. Berrange <berrange@redhat.com> - 0.2.4-2
- Rebuild against perl 5.12.0
+- Fix hostname test
* Wed May 19 2010 Daniel P. Berrange <berrange@redhat.com> - 0.2.4-1
- Update to 0.2.4 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=178280463283.1.10469023047647093407.rpms-perl-Sys-Virt-cdb47a9ebd4d@fedoraproject.org \
--to=berrange@redhat.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