[packages/pcp] - rel 2, disable perl time size check

baggins baggins at pld-linux.org
Sun Mar 23 21:02:30 CET 2025


commit c47ce422b8c099125356b1fd060722fda0de8cff
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 23 21:51:41 2025 +0100

    - rel 2, disable perl time size check

 no-perl-time-check.patch | 35 +++++++++++++++++++++++++++++++++++
 pcp.spec                 |  5 ++++-
 2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/pcp.spec b/pcp.spec
index 49b0c89..91e44f7 100644
--- a/pcp.spec
+++ b/pcp.spec
@@ -15,7 +15,7 @@ Summary:	Performance Co-Pilot - system level performance monitoring and manageme
 Summary(pl.UTF-8):	Performance Co-Pilot - monitorowanie i zarządzanie wydajnością na poziomie systemu
 Name:		pcp
 Version:	6.3.6
-Release:	1
+Release:	2
 License:	LGPL v2.1 (libraries), GPL v2 (the rest)
 Group:		Applications/System
 Source0:	https://github.com/performancecopilot/pcp/archive/%{version}/%{name}-%{version}.tar.gz
@@ -25,6 +25,7 @@ Patch1:		%{name}-opt.patch
 Patch3:		%{name}-saslconfdir.patch
 Patch5:		python-install.patch
 Patch6:		install-icons.patch
+Patch7:		no-perl-time-check.patch
 URL:		http://pcp.io/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	avahi-devel
@@ -43,6 +44,7 @@ BuildRequires:	nss-devel >= 3
 BuildRequires:	openssl-devel
 BuildRequires:	perl-DBD-Pg
 BuildRequires:	perl-DBD-mysql
+BuildRequires:	perl-DBI
 BuildRequires:	perl-ExtUtils-MakeMaker
 BuildRequires:	perl-File-Slurp
 BuildRequires:	perl-JSON
@@ -234,6 +236,7 @@ Sondy systemtap/dtrace dla PCP.
 %patch -P 3 -p1
 %patch -P 5 -p1
 %patch -P 6 -p1
+%patch -P 7 -p1
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
       src/ganglia2pcp/ganglia2pcp \
diff --git a/no-perl-time-check.patch b/no-perl-time-check.patch
new file mode 100644
index 0000000..c04c733
--- /dev/null
+++ b/no-perl-time-check.patch
@@ -0,0 +1,35 @@
+--- pcp-6.3.6/configure.ac~	2025-03-23 21:22:27.000000000 +0100
++++ pcp-6.3.6/configure.ac	2025-03-23 21:45:07.153316537 +0100
+@@ -1388,32 +1388,6 @@
+         $pcp_perl_prog -e "use ExtUtils::MakeMaker" 2>/dev/null
+         if test $? -eq 0; then
+ 	    AC_MSG_RESULT([yes])
+-	    if $force_time_t; then
+-		dnl forcing -D_TIME_BITS=64 for PCP libs, but need to check
+-		dnl that installed Perl is built for _TIME_BITS=64, else
+-		dnl we cannot build compatibile PCP Perl components
+-		AC_MSG_CHECKING([if Perl is Y2038-safe])
+-		$pcp_perl_prog -MConfig -e 'print "$Config{sGMTIME_max}\n";' >conftest.out
+-		case `cat conftest.out`
+-		in
+-		    2147483647)
+-			    # definitely 32-bit time_t for Perl build, we
+-			    # can't play in this sandpit
+-			    #
+-			    AC_MSG_RESULT([no])
+-			    have_perl=false
+-			    ;;
+-		    67768036191676799)
+-			    # all good
+-			    #
+-			    AC_MSG_RESULT([yes])
+-			    ;;
+-		    *)
+-			    echo >&2 "Warning: Perl config sGMTIME_max=`cat conftest.out` unexpected"
+-			    AC_MSG_RESULT([yes])
+-			    ;;
+-		esac
+-	    fi
+         else
+ 	    AC_MSG_RESULT([no])
+ 	    have_perl=false
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pcp.git/commitdiff/c47ce422b8c099125356b1fd060722fda0de8cff



More information about the pld-cvs-commit mailing list