[packages/perl-IPC-Locker] Rel 2: skip hostname test on builders
arekm
arekm at pld-linux.org
Thu Nov 19 14:01:56 CET 2026
commit cec8c8f3d3f5ec879b30e182232c9b942218bd03
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 12:43:19 2026 +0100
Rel 2: skip hostname test on builders
perl-IPC-Locker-pidstat-host.patch | 16 ++++++++++++++++
perl-IPC-Locker.spec | 4 +++-
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/perl-IPC-Locker.spec b/perl-IPC-Locker.spec
index fc04a8d..4e92bd1 100644
--- a/perl-IPC-Locker.spec
+++ b/perl-IPC-Locker.spec
@@ -8,11 +8,12 @@ Summary: IPC::Locker - distributed lock handler
Summary(pl.UTF-8): IPC::Locker - obsługa rozproszonych blokad
Name: perl-IPC-Locker
Version: 1.502
-Release: 1
+Release: 2
License: GPL or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/IPC/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 6b0a3cd772b4d51552e3ac9c2ce0a6dd
+Patch0: %{name}-pidstat-host.patch
URL: http://search.cpan.org/dist/IPC-Locker/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -37,6 +38,7 @@ popularnych systemach plików.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-IPC-Locker-pidstat-host.patch b/perl-IPC-Locker-pidstat-host.patch
new file mode 100644
index 0000000..5641ea0
--- /dev/null
+++ b/perl-IPC-Locker-pidstat-host.patch
@@ -0,0 +1,16 @@
+# the test needs the host name to resolve, which builders do not allow
+diff -ru IPC-Locker-1.502.orig/t/20_pidstat.t IPC-Locker-1.502/t/20_pidstat.t
+--- IPC-Locker-1.502.orig/t/20_pidstat.t
++++ IPC-Locker-1.502/t/20_pidstat.t
+@@ -13,7 +13,10 @@
+ use strict;
+ use vars qw (%SLArgs $Serv_Pid);
+
+-BEGIN { plan tests => 15 }
++BEGIN {
++ plan skip_all => 'hostname does not resolve' unless gethostbyname(hostname());
++ plan tests => 15;
++}
+ BEGIN { require "./t/test_utils.pl"; }
+
+ END { kill 'TERM', $Serv_Pid; }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-IPC-Locker.git/commitdiff/cec8c8f3d3f5ec879b30e182232c9b942218bd03
More information about the pld-cvs-commit
mailing list