[packages/pacemaker/DEVEL-pacemaker-2: 9/13] - updated to 2.0.3 (new sonames, heartbeat integration removed) - updated manpage_xslt patch - remov

qboosh qboosh at pld-linux.org
Sun Jul 21 14:42:49 CEST 2024


commit 3074e85946009a34871afdf5b567ef109b8c2126
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 30 11:59:18 2020 +0200

    - updated to 2.0.3 (new sonames, heartbeat integration removed)
    - updated manpage_xslt patch
    - removed outdated automake,libs,heartbeat-libexecdir patches
    - added inkscape patch (adjust for changed inkscape 1.0 CLI)

 pacemaker-automake.patch             |  11 --
 pacemaker-heartbeat-libexecdir.patch |  11 --
 pacemaker-libesmtp.patch             |  15 ---
 pacemaker-libs.patch                 | 193 -----------------------------------
 pacemaker-manpage_xslt.patch         |  44 ++++----
 pacemaker-no-common.patch            |  11 --
 pacemaker.spec                       | 164 +++++++++++++----------------
 7 files changed, 93 insertions(+), 356 deletions(-)
---
diff --git a/pacemaker.spec b/pacemaker.spec
index b104248..90fd72e 100644
--- a/pacemaker.spec
+++ b/pacemaker.spec
@@ -1,7 +1,6 @@
 #
 # Conditional build:
 %bcond_without	corosync	# Corosync stack support
-%bcond_without	heartbeat	# Heartbeat stack support
 %bcond_without	servicelog	# ServiceLog support [IBM PPC specific]
 %bcond_without	ipmi		# IPMI ServiceLog support [IBM PPC specific]
 %bcond_without	doc		# documentation
@@ -16,62 +15,49 @@
 Summary:	The scalable High-Availability cluster resource manager
 Summary(pl.UTF-8):	Skalowalny zarządca zasobów klastrów o wysokiej dostępności
 Name:		pacemaker
-Version:	1.1.24
-Release:	3
+Version:	2.0.3
+Release:	1
 License:	GPL v2+, LGPL v2.1+
 Group:		Applications/System
 #Source0Download: https://github.com/ClusterLabs/pacemaker/releases
 Source0:	https://github.com/ClusterLabs/pacemaker/archive/Pacemaker-%{version}.tar.gz
-# Source0-md5:	4e0b76f7ba00535514a97dcf9cd47813
+# Source0-md5:	4fee89ca3485f3bf27689ad9bd1670cb
 Source1:	%{name}.tmpfiles
 Source2:	%{name}.init
 Source3:	%{name}.service
-Patch0:		%{name}-automake.patch
+Patch0:		%{name}-inkscape.patch
 Patch1:		%{name}-manpage_xslt.patch
 Patch2:		%{name}-update.patch
-Patch3:		%{name}-libesmtp.patch
-Patch4:		%{name}-libs.patch
-Patch5:		%{name}-heartbeat-libexecdir.patch
-Patch6:		%{name}-no-common.patch
-Patch7:		%{name}-inkscape.patch
 URL:		http://clusterlabs.org/wiki/Main_Page
 %{?with_ipmi:BuildRequires:	OpenIPMI-devel}
 BuildRequires:	asciidoc
-BuildRequires:	autoconf >= 2.59
-BuildRequires:	automake
-BuildRequires:	bison
+BuildRequires:	autoconf >= 2.64
+BuildRequires:	automake >= 1:1.11
 BuildRequires:	bzip2-devel
 BuildRequires:	cluster-glue-libs-devel
 %{?with_corosync:BuildRequires:	corosync-devel >= 2.0}
 BuildRequires:	dbus-devel
 BuildRequires:	docbook-style-xsl
-BuildRequires:	e2fsprogs-devel
-BuildRequires:	flex
 BuildRequires:	gettext-tools
-BuildRequires:	glib2-devel >= 2.0
-BuildRequires:	gnutls-devel
+BuildRequires:	glib2-devel >= 1:2.16.0
+BuildRequires:	gnutls-devel >= 2.12.0
 BuildRequires:	help2man
-%{?with_heartbeat:BuildRequires:	heartbeat-devel >= 3.0.6}
-BuildRequires:	libesmtp-devel
 BuildRequires:	libltdl-devel
-BuildRequires:	libqb-devel >= 0.13
+BuildRequires:	libqb-devel >= 0.17.0
 %{?with_servicelog:BuildRequires:	libservicelog-devel}
-BuildRequires:	libtool
+BuildRequires:	libtool >= 2:2
 BuildRequires:	libuuid-devel
 BuildRequires:	libxml2-devel >= 2.0
 BuildRequires:	libxslt-devel
 BuildRequires:	libxslt-progs
 BuildRequires:	ncurses-devel >= 5.4
-BuildRequires:	net-snmp-devel
 BuildRequires:	pam-devel
-BuildRequires:	pciutils-devel
 BuildRequires:	pkgconfig
-BuildRequires:	python-devel
+BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.644
 BuildRequires:	systemd-units
-BuildRequires:	swig
 %if %{with doc}
 BuildRequires:	inkscape >= 1.0
 BuildRequires:	publican
@@ -79,9 +65,10 @@ BuildRequires:	publican
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	cluster-glue
 Requires:	resource-agents
+Suggests:	pacemaker-shell
 Provides:	group(haclient)
 Provides:	user(hacluster)
-Suggests:	pacemaker-shell
+Obsoletes:	pacemaker-heartbeat < 2.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -112,7 +99,9 @@ Pacemaker był wcześniej częścią pakietu Heartbeat.
 Summary:	Pacemaker libraries
 Summary(pl.UTF-8):	Biblioteki Pacemakera
 Group:		Libraries
-Requires:	libqb >= 0.13
+Requires:	glib2 >= 1:2.16.0
+Requires:	gnutls-libs >= 2.12.0
+Requires:	libqb >= 0.17.0
 
 %description libs
 Shared libraries for Pacemaker.
@@ -125,6 +114,15 @@ Summary:	Header files for Pacemaker libraries
 Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek Pacemakera
 Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
+Requires:	bzip2-devel
+Requires:	dbus-devel
+Requires:	glib2-devel >= 1:2.16.0
+Requires:	gnutls-devel >= 2.12.0
+Requires:	libqb-devel >= 0.17.0
+Requires:	libxml2-devel >= 2.0
+Requires:	libxslt-devel
+Requires:	libuuid-devel
+Requires:	ncurses-devel
 
 %description devel
 Header files for Pacemaker libraries.
@@ -162,28 +160,13 @@ na węzłach "wirtualnych" bez zainstalowanego całego stosu klastrowego.
 Jest to przydatne przy zarządzaniu usługami na maszynach wirtualncych
 lub w kontenerach uruchomionych na klastrze opartym o Pacemaker.
 
-%package heartbeat
-Summary:	Pacemaker for Heartbeat cluster
-Summary(pl.UTF-8):	Pacemaker dla klastra Heartbeat
-Group:		Applications/System
-Requires:	%{name} = %{version}-%{release}
-Requires:	heartbeat >= 3.0.6
-Obsoletes:	pacemaker < 1.1
-
-%description heartbeat
-This package allows using Pacemaker on a Heartbeat cluster.
-
-%description heartbeat -l pl.UTF-8
-Ten pakiet pozwala na używanie Pacemakera na klastrze Heartbeat.
-
 %package corosync
 Summary:	Pacemaker for Corosync cluster
 Summary(pl.UTF-8):	Pacemaker dla klastra Corosync
 Group:		Applications/System
 Requires:	%{name} = %{version}-%{release}
-Requires:	corosync
+Requires:	corosync >= 2.0
 Requires:	systemd-units >= 38
-%{?with_heartbeat:%requires_eq	heartbeat-libs}
 
 %description corosync
 This package allows using Pacemaker on a Corosync cluster.
@@ -208,11 +191,6 @@ Dokumentacja do Pacemakera.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
 
 %build
 %{__libtoolize}
@@ -221,9 +199,9 @@ Dokumentacja do Pacemakera.
 %{__autoheader}
 %{__automake}
 
-CPPFLAGS="%{rpmcppflags} %{?with_heartbeat:-I/usr/include/heartbeat}"
 # enable systemd explicitly to avoid configure checks via dbus-send or systemctl
 %configure \
+	PYTHON=%{__python} \
 	--disable-fatal-warnings \
 	--disable-silent-rules \
 	%{__enable_disable static_libs static} \
@@ -231,10 +209,7 @@ CPPFLAGS="%{rpmcppflags} %{?with_heartbeat:-I/usr/include/heartbeat}"
 	--disable-upstart \
 	--with-acl \
 	--with-corosync%{!?with_corosync:=no} \
-	--with-esmtp \
-	--with-heartbeat%{!?with_heartbeat:=no} \
-	--with-initdir=/etc/rc.d/init.d \
-	--with-snmp
+	--with-initdir=/etc/rc.d/init.d
 
 %{__make}
 
@@ -263,7 +238,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre
 %groupadd -g 60 haclient
-%useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster
+%useradd -u 17 -d /var/lib/pacemaker/cores -c "Heartbeat User" -g haclient hacluster
 
 %post corosync
 /sbin/chkconfig --add %{name}
@@ -298,7 +273,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README.markdown doc/*.html doc/{executioner,msg-schema,security}.txt doc/{openstack,pcs-crmsh-quick-ref}.md
+%doc ChangeLog README.markdown doc/*.html doc/security.txt doc/{openstack,pcs-crmsh-quick-ref}.md
 %attr(755,root,root) %{_sbindir}/attrd_updater
 %attr(755,root,root) %{_sbindir}/cibadmin
 %attr(755,root,root) %{_sbindir}/crm_attribute
@@ -310,6 +285,7 @@ fi
 %attr(755,root,root) %{_sbindir}/crm_node
 %attr(755,root,root) %{_sbindir}/crm_report
 %attr(755,root,root) %{_sbindir}/crm_resource
+%attr(755,root,root) %{_sbindir}/crm_rule
 %attr(755,root,root) %{_sbindir}/crm_simulate
 %attr(755,root,root) %{_sbindir}/crm_shadow
 %attr(755,root,root) %{_sbindir}/crm_standby
@@ -317,7 +293,6 @@ fi
 %attr(755,root,root) %{_sbindir}/crm_verify
 %attr(755,root,root) %{_sbindir}/crmadmin
 %attr(755,root,root) %{_sbindir}/fence_legacy
-%attr(755,root,root) %{_sbindir}/fence_pcmk
 %attr(755,root,root) %{_sbindir}/iso8601
 %attr(755,root,root) %{_sbindir}/stonith_admin
 %if %{with servicelog}
@@ -331,22 +306,30 @@ fi
 %attr(755,root,root) %{_libexecdir}/%{name}/cib
 %attr(755,root,root) %{_libexecdir}/%{name}/cibmon
 %attr(755,root,root) %{_libexecdir}/%{name}/crmd
+%attr(755,root,root) %{_libexecdir}/%{name}/cts-exec-helper
+%attr(755,root,root) %{_libexecdir}/%{name}/cts-fence-helper
+%attr(755,root,root) %{_libexecdir}/%{name}/cts-log-watcher
+%attr(755,root,root) %{_libexecdir}/%{name}/cts-support
 %attr(755,root,root) %{_libexecdir}/%{name}/lrmd
-%attr(755,root,root) %{_libexecdir}/%{name}/lrmd_internal_ctl
-%attr(755,root,root) %{_libexecdir}/%{name}/lrmd_test
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-attrd
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-based
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-controld
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-execd
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-fenced
+%attr(755,root,root) %{_libexecdir}/%{name}/pacemaker-schedulerd
 %attr(755,root,root) %{_libexecdir}/%{name}/pengine
-%attr(755,root,root) %{_libexecdir}/%{name}/stonith-test
 %attr(755,root,root) %{_libexecdir}/%{name}/stonithd
 %{_datadir}/pacemaker
 %{_datadir}/mibs/PCMK-MIB.txt
-%{py_sitedir}/cts
+%{py_sitescriptdir}/cts
 %{systemdunitdir}/crm_mon.service
 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/pacemaker
+%attr(750,root,haclient) %dir %{_sysconfdir}/pacemaker
 %ghost /var/log/pacemaker.log
-%{_mandir}/man7/crmd.7*
 %{_mandir}/man7/ocf_pacemaker_*.7*
-%{_mandir}/man7/pengine.7*
-%{_mandir}/man7/stonithd.7*
+%{_mandir}/man7/pacemaker-controld.7*
+%{_mandir}/man7/pacemaker-fenced.7*
+%{_mandir}/man7/pacemaker-schedulerd.7*
 %{_mandir}/man8/attrd_updater.8*
 %{_mandir}/man8/cibadmin.8*
 %{_mandir}/man8/crm_attribute.8*
@@ -358,6 +341,7 @@ fi
 %{_mandir}/man8/crm_node.8*
 %{_mandir}/man8/crm_report.8*
 %{_mandir}/man8/crm_resource.8*
+%{_mandir}/man8/crm_rule.8*
 %{_mandir}/man8/crm_shadow.8*
 %{_mandir}/man8/crm_simulate.8*
 %{_mandir}/man8/crm_standby.8*
@@ -365,7 +349,6 @@ fi
 %{_mandir}/man8/crm_verify.8*
 %{_mandir}/man8/crmadmin.8*
 %{_mandir}/man8/fence_legacy.8*
-%{_mandir}/man8/fence_pcmk.8*
 %{_mandir}/man8/iso8601.8*
 %{_mandir}/man8/stonith_admin.8*
 %if %{with servicelog}
@@ -375,12 +358,11 @@ fi
 %{_mandir}/man8/notifyServicelogEvent.8*
 %endif
 
-%dir %{_prefix}/lib/ocf/resource.d/.isolation
-%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/.isolation/docker-wrapper
 %dir %{_prefix}/lib/ocf/resource.d/pacemaker
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/ClusterMon
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/Dummy
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/HealthCPU
+%attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/HealthIOWait
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/HealthSMART
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/Stateful
 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/pacemaker/SysInfo
@@ -396,32 +378,33 @@ fi
 %dir /var/lib/%{name}
 %dir %attr(750,hacluster,haclient) /var/lib/%{name}/blackbox
 %dir %attr(750,hacluster,haclient) /var/lib/%{name}/cib
+%dir %attr(750,hacluster,haclient) /var/lib/%{name}/cores
 %dir %attr(750,hacluster,haclient) /var/lib/%{name}/pengine
+%dir %attr(770,hacluster,haclient) /var/log/%{name}
+%dir %attr(770,hacluster,haclient) /var/log/%{name}/bundles
 %dir %attr(750,hacluster,haclient) %{_var}/run/crm
 %{systemdtmpfilesdir}/%{name}.conf
 
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libcib.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcib.so.4
+%attr(755,root,root) %ghost %{_libdir}/libcib.so.27
 %attr(755,root,root) %{_libdir}/libcrmcluster.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcrmcluster.so.4
+%attr(755,root,root) %ghost %{_libdir}/libcrmcluster.so.29
 %attr(755,root,root) %{_libdir}/libcrmcommon.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcrmcommon.so.3
+%attr(755,root,root) %ghost %{_libdir}/libcrmcommon.so.34
 %attr(755,root,root) %{_libdir}/libcrmservice.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcrmservice.so.3
+%attr(755,root,root) %ghost %{_libdir}/libcrmservice.so.28
 %attr(755,root,root) %{_libdir}/liblrmd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/liblrmd.so.1
+%attr(755,root,root) %ghost %{_libdir}/liblrmd.so.28
+%attr(755,root,root) %{_libdir}/libpacemaker.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpacemaker.so.1
 %attr(755,root,root) %{_libdir}/libpe_rules.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpe_rules.so.2
+%attr(755,root,root) %ghost %{_libdir}/libpe_rules.so.26
 %attr(755,root,root) %{_libdir}/libpe_status.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpe_status.so.16
-%attr(755,root,root) %{_libdir}/libpengine.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpengine.so.16
+%attr(755,root,root) %ghost %{_libdir}/libpe_status.so.28
 %attr(755,root,root) %{_libdir}/libstonithd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libstonithd.so.2
-%attr(755,root,root) %{_libdir}/libtransitioner.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtransitioner.so.2
+%attr(755,root,root) %ghost %{_libdir}/libstonithd.so.26
 
 %files devel
 %defattr(644,root,root,755)
@@ -430,29 +413,30 @@ fi
 %attr(755,root,root) %{_libdir}/libcrmcommon.so
 %attr(755,root,root) %{_libdir}/libcrmservice.so
 %attr(755,root,root) %{_libdir}/liblrmd.so
+%attr(755,root,root) %{_libdir}/libpacemaker.so
 %attr(755,root,root) %{_libdir}/libpe_rules.so
 %attr(755,root,root) %{_libdir}/libpe_status.so
-%attr(755,root,root) %{_libdir}/libpengine.so
 %attr(755,root,root) %{_libdir}/libstonithd.so
-%attr(755,root,root) %{_libdir}/libtransitioner.so
 %{_libdir}/libcib.la
 %{_libdir}/libcrmcluster.la
 %{_libdir}/libcrmcommon.la
 %{_libdir}/libcrmservice.la
 %{_libdir}/liblrmd.la
+%{_libdir}/libpacemaker.la
 %{_libdir}/libpe_rules.la
 %{_libdir}/libpe_status.la
-%{_libdir}/libpengine.la
 %{_libdir}/libstonithd.la
-%{_libdir}/libtransitioner.la
 %{_includedir}/pacemaker
+%{_pkgconfigdir}/libpacemaker.pc
 %{_pkgconfigdir}/pacemaker.pc
 %{_pkgconfigdir}/pacemaker-cib.pc
 %{_pkgconfigdir}/pacemaker-cluster.pc
 %{_pkgconfigdir}/pacemaker-fencing.pc
 %{_pkgconfigdir}/pacemaker-lrmd.pc
-%{_pkgconfigdir}/pacemaker-pengine.pc
+%{_pkgconfigdir}/pacemaker-pe_rules.pc
+%{_pkgconfigdir}/pacemaker-pe_status.pc
 %{_pkgconfigdir}/pacemaker-service.pc
+%{_npkgconfigdir}/pacemaker-schemas.pc
 
 %if %{with static_libs}
 %files static
@@ -462,26 +446,19 @@ fi
 %{_libdir}/libcrmcommon.a
 %{_libdir}/libcrmservice.a
 %{_libdir}/liblrmd.a
+%{_libdir}/libpacemaker.a
 %{_libdir}/libpe_rules.a
 %{_libdir}/libpe_status.a
-%{_libdir}/libpengine.a
 %{_libdir}/libstonithd.a
-%{_libdir}/libtransitioner.a
 %endif
 
 %files remote
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/pacemaker-remoted
 %attr(755,root,root) %{_sbindir}/pacemaker_remoted
 %attr(755,root,root) /etc/rc.d/init.d/pacemaker_remote
 %{systemdunitdir}/pacemaker_remote.service
-%{_mandir}/man8/pacemaker_remoted.8*
-
-%if %{with heartbeat}
-%files heartbeat
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/crm_uuid
-%{_mandir}/man8/crm_uuid.8*
-%endif
+%{_mandir}/man8/pacemaker-remoted.8*
 
 %if %{with corosync}
 %files corosync
@@ -497,6 +474,7 @@ fi
 %defattr(644,root,root,755)
 %dir %{_docdir}/pacemaker
 %{_docdir}/pacemaker/Clusters_from_Scratch
+%{_docdir}/pacemaker/Pacemaker_Administration
 %{_docdir}/pacemaker/Pacemaker_Development
 %{_docdir}/pacemaker/Pacemaker_Explained
 %{_docdir}/pacemaker/Pacemaker_Remote
diff --git a/pacemaker-automake.patch b/pacemaker-automake.patch
deleted file mode 100644
index 4b1c57d..0000000
--- a/pacemaker-automake.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- pacemaker-Pacemaker-1.1.24/configure.ac.orig	2022-02-08 21:41:43.127983960 +0100
-+++ pacemaker-Pacemaker-1.1.24/configure.ac	2022-02-08 21:45:16.809058080 +0100
-@@ -47,7 +47,7 @@ dnl   - Manually edit include/crm_config
- dnl     new defines
- dnl   - Should not include HAVE_* defines
- dnl   - Safe to include anywhere
--AM_CONFIG_HEADER(include/config.h include/crm_config.h)
-+AC_CONFIG_HEADERS(include/config.h include/crm_config.h)
- ALL_LINGUAS="en fr"
- 
- dnl Older distros may need: AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
diff --git a/pacemaker-heartbeat-libexecdir.patch b/pacemaker-heartbeat-libexecdir.patch
deleted file mode 100644
index 0182dbc..0000000
--- a/pacemaker-heartbeat-libexecdir.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- pacemaker-Pacemaker-1.1.19/configure.ac.orig	2018-09-03 19:49:56.608934960 +0200
-+++ pacemaker-Pacemaker-1.1.19/configure.ac	2018-09-03 19:55:53.318930891 +0200
-@@ -1110,7 +1110,7 @@
- AC_DEFINE_UNQUOTED(CRM_DAEMON_DIR,"$CRM_DAEMON_DIR", Location for Pacemaker daemons)
- AC_SUBST(CRM_DAEMON_DIR)
- 
--HB_DAEMON_DIR=`try_extract_header_define $GLUE_HEADER HA_LIBHBDIR $libdir/heartbeat`
-+HB_DAEMON_DIR=`try_extract_header_define $GLUE_HEADER GLUE_DAEMON_DIR $libexecdir/heartbeat`
- AC_DEFINE_UNQUOTED(HB_DAEMON_DIR,"$HB_DAEMON_DIR", Location Heartbeat expects Pacemaker daemons to be in)
- AC_SUBST(HB_DAEMON_DIR)
- 
diff --git a/pacemaker-libesmtp.patch b/pacemaker-libesmtp.patch
deleted file mode 100644
index d0d621c..0000000
--- a/pacemaker-libesmtp.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- pacemaker-Pacemaker-1.1.24/configure.ac.orig	2022-02-07 17:25:42.088523345 +0100
-+++ pacemaker-Pacemaker-1.1.24/configure.ac	2022-02-07 17:31:38.959923340 +0100
-@@ -1736,7 +1736,11 @@ else
-    fi
- 
-    if test $SUPPORT_ESMTP != no; then
--	AC_PATH_PROGS(ESMTPCONFIG, libesmtp-config)
-+	if $PKG_CONFIG --exists libesmtp-1.0 ; then
-+		ESMTPCONFIG="$PKG_CONFIG libesmtp-1.0"
-+	else
-+		AC_PATH_PROGS(ESMTPCONFIG, libesmtp-config)
-+	fi
- 	if test "X${ESMTPCONFIG}" = "X"; then
- 		AC_MSG_RESULT(You need the libesmtp development package to continue.)
- 		SUPPORT_ESMTP=no
diff --git a/pacemaker-libs.patch b/pacemaker-libs.patch
deleted file mode 100644
index 3c6b0b3..0000000
--- a/pacemaker-libs.patch
+++ /dev/null
@@ -1,193 +0,0 @@
---- pacemaker-Pacemaker-1.1.22/configure.ac.orig	2020-05-01 18:26:26.206360554 +0200
-+++ pacemaker-Pacemaker-1.1.22/configure.ac	2020-05-01 18:32:45.394306317 +0200
-@@ -807,17 +807,21 @@
- dnl ===============================================
- dnl Libraries
- dnl ===============================================
--AC_CHECK_LIB(socket, socket)			dnl -lsocket
--AC_CHECK_LIB(c, dlopen)				dnl if dlopen is in libc...
--AC_CHECK_LIB(dl, dlopen)			dnl -ldl (for Linux)
--AC_CHECK_LIB(rt, sched_getscheduler)            dnl -lrt (for Tru64)
--AC_CHECK_LIB(gnugetopt, getopt_long)		dnl -lgnugetopt ( if available )
--AC_CHECK_LIB(pam, pam_start)			dnl -lpam (if available)
-+AC_SEARCH_LIBS(socket, socket)			dnl -lsocket
-+AC_SEARCH_LIBS(dlopen, [dl])			dnl if dlopen is in libc... or -ldl (for Linux)
-+AC_SEARCH_LIBS(sched_getscheduler, [rt])	dnl -lrt (for Tru64)
-+AC_SEARCH_LIBS(getopt_long, [gnugetopt])	dnl -lgnugetopt ( if available )
-+AC_CHECK_LIB(pam, pam_start, [LIBPAM=-lpam])	dnl -lpam (if available)
-+AC_SUBST([LIBPAM])
- 
- AC_CHECK_FUNCS([sched_setscheduler])
- 
--AC_CHECK_LIB(uuid, uuid_parse)			dnl load the library if necessary
-+AC_CHECK_LIB(uuid, uuid_parse, [LIBUUID=-luuid])	dnl load the library if necessary
-+AC_SUBST([LIBUUID])
-+oldLIBS="$LIBS"
-+LIBS="$LIBS $LIBUUID"
- AC_CHECK_FUNCS(uuid_unparse)			dnl OSX ships uuid_* as standard functions
-+LIBS="$oldLIBS"
- 
- AC_CHECK_HEADERS(uuid/uuid.h)
- 
-@@ -941,8 +945,10 @@
- else
-    XML2HEAD="`$XML2CONFIG --cflags`"
-    AC_MSG_RESULT($XML2HEAD)
--   AC_CHECK_LIB(xml2, xmlReadMemory)
--   AC_CHECK_LIB(xslt, xsltApplyStylesheet)
-+   AC_CHECK_LIB(xml2, xmlReadMemory, [AC_DEFINE([HAVE_LIBXML2], [1], [Have libxml2])  LIBXML2=-lxml2])
-+   AC_CHECK_LIB(xslt, xsltApplyStylesheet, [AC_DEFINE([HAVE_LIBXSLT], [1], [Have libxslt])  LIBXSLT=-lxslt])
-+   AC_SUBST([LIBXML2])
-+   AC_SUBST([LIBXSLT])
- fi
- 
- CPPFLAGS="$CPPFLAGS $XML2HEAD"
-@@ -988,7 +994,8 @@
- dnl   bzip2
- dnl ========================================================================
- AC_CHECK_HEADERS(bzlib.h)
--AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress)
-+AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress, [LIBBZ2=-lbz2])
-+AC_SUBST([LIBBZ2])
- 
- if test x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress != xyes ; then
-    AC_MSG_ERROR(BZ2 libraries not found)
-@@ -1158,7 +1165,6 @@
- 
- PKG_CHECK_MODULES(libqb, libqb >= 0.13)
- CPPFLAGS="$libqb_CFLAGS $CPPFLAGS"
--LIBS="$libqb_LIBS $LIBS"
- AC_CHECK_HEADERS(qb/qbipc_common.h)
- AC_CHECK_LIB(qb, qb_ipcs_connection_auth_set)
- 
-@@ -1193,8 +1199,10 @@
- if test $HAVE_GLUE = 1; then
-    dnl On Debian, AC_CHECK_LIBS fail if a library has any unresolved symbols
-    dnl So check for all the dependencies (so they're added to LIBS) before checking for -lplumb
--   AC_CHECK_LIB(pils, PILLoadPlugin)
--   AC_CHECK_LIB(plumb, G_main_add_IPC_Channel)
-+   AC_CHECK_LIB(pils, PILLoadPlugin, [LIBPILS=-lpils])
-+   AC_CHECK_LIB(plumb, G_main_add_IPC_Channel, [LIBPLUMB=-lplumb])
-+   AC_SUBST([LIBPILS])
-+   AC_SUBST([LIBPLUMB])
- fi
- 
- dnl ===============================================
-@@ -1776,7 +1784,7 @@
-     AC_MSG_RESULT($SUPPORT_ACL)
- 
-     SUPPORT_ACL=1
--    AC_CHECK_LIB(qb, qb_ipcs_connection_auth_set)
-+    AC_CHECK_LIB(qb, qb_ipcs_connection_auth_set, [:])
-     if test $ac_cv_lib_qb_qb_ipcs_connection_auth_set != yes; then
-         SUPPORT_ACL=0
-     fi
-@@ -1842,9 +1850,12 @@
- 	GNUTLSLIBS="`$LIBGNUTLS_CONFIG --libs`";
- 	AC_MSG_RESULT($GNUTLSLIBS)
- fi
--AC_CHECK_LIB(gnutls, gnutls_init)
-+AC_CHECK_LIB(gnutls, gnutls_init, [GNUTLSLIBS=-lgnutls])
-+oldLIBS="$LIBS"
-+LIBS="$LIBS $GNUTLSLIBS"
- AC_CHECK_FUNCS(gnutls_priority_set_direct)
-  AC_CHECK_FUNCS([gnutls_sec_param_to_pk_bits]) dnl since 2.12.0 (2011-03-24)
-+LIBS="$oldLIBS"
- 
- AC_SUBST(GNUTLSHEAD)
- AC_SUBST(GNUTLSLIBS)
---- pacemaker-Pacemaker-1.1.19/pengine/Makefile.am.orig	2018-09-02 14:24:36.610144333 +0200
-+++ pacemaker-Pacemaker-1.1.19/pengine/Makefile.am	2018-09-02 14:45:59.036796358 +0200
-@@ -66,14 +66,14 @@
- libpengine_la_LDFLAGS	+= $(LDFLAGS_HARDENED_LIB)
- 
- libpengine_la_LIBADD	= $(top_builddir)/lib/pengine/libpe_status.la \
--			$(top_builddir)/lib/cib/libcib.la
-+			$(top_builddir)/lib/cib/libcib.la $(LIBXML2)
- # -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version
- libpengine_la_SOURCES	= pengine.c allocate.c notif.c utils.c constraints.c
- libpengine_la_SOURCES	+= native.c group.c clone.c master.c graph.c utilization.c container.c
- 
- pengine_CFLAGS	= $(CFLAGS_HARDENED_EXE)
- pengine_LDFLAGS	= $(LDFLAGS_HARDENED_EXE)
--pengine_LDADD	= $(top_builddir)/lib/cib/libcib.la $(COMMONLIBS)
-+pengine_LDADD	= $(top_builddir)/lib/cib/libcib.la $(COMMONLIBS) $(libqb_LIBS)
- # libcib for get_object_root()
- #		$(top_builddir)/lib/hbclient/libhbclient.la
- pengine_SOURCES	= main.c
---- pacemaker-Pacemaker-1.1.24/lib/common/Makefile.am.orig	2022-02-08 21:47:15.161859798 +0100
-+++ pacemaker-Pacemaker-1.1.24/lib/common/Makefile.am	2022-02-08 21:49:50.566582176 +0100
-@@ -40,7 +40,7 @@ libcrmcommon_la_LDFLAGS	= -version-info
- libcrmcommon_la_CFLAGS	= $(CFLAGS_HARDENED_LIB)
- libcrmcommon_la_LDFLAGS	+= $(LDFLAGS_HARDENED_LIB)
- 
--libcrmcommon_la_LIBADD	= @LIBADD_DL@ $(GNUTLSLIBS)
-+libcrmcommon_la_LIBADD	= @LIBADD_DL@ $(LIBPLUMB) $(GNUTLSLIBS) $(LIBXML2) $(LIBXSLT) $(libqb_LIBS) $(LIBBZ2) $(LIBUUID) -lm
- 
- # Use += rather than backlashed continuation lines for parsing by bumplibs.sh
- libcrmcommon_la_SOURCES        =
---- pacemaker-Pacemaker-1.1.16/lib/cib/Makefile.am.orig	2017-04-16 07:34:31.132737427 +0200
-+++ pacemaker-Pacemaker-1.1.16/lib/cib/Makefile.am	2017-04-16 07:39:18.802734141 +0200
-@@ -30,7 +30,7 @@
- libcib_la_CFLAGS	= $(CFLAGS_HARDENED_LIB)
- libcib_la_LDFLAGS	+= $(LDFLAGS_HARDENED_LIB)
- 
--libcib_la_LIBADD	= $(CRYPTOLIB) $(top_builddir)/lib/pengine/libpe_rules.la $(top_builddir)/lib/common/libcrmcommon.la
-+libcib_la_LIBADD	= $(CRYPTOLIB) $(top_builddir)/lib/pengine/libpe_rules.la $(top_builddir)/lib/common/libcrmcommon.la $(GNUTLSLIBS)
- 
- clean-generic:
- 	rm -f *.log *.debug *.xml *~
---- pacemaker-Pacemaker-1.1.22/lib/pengine/Makefile.am.orig	2020-05-01 18:33:26.394084202 +0200
-+++ pacemaker-Pacemaker-1.1.22/lib/pengine/Makefile.am	2020-05-01 18:38:21.532485300 +0200
-@@ -36,7 +36,7 @@
- libpe_status_la_CFLAGS	= $(CFLAGS_HARDENED_LIB)
- libpe_status_la_LDFLAGS	+= $(LDFLAGS_HARDENED_LIB)
- 
--libpe_status_la_LIBADD	= @CURSESLIBS@ $(top_builddir)/lib/common/libcrmcommon.la
-+libpe_status_la_LIBADD	= @CURSESLIBS@ $(top_builddir)/lib/common/libcrmcommon.la $(LIBXML2)
- # Use += rather than backlashed continuation lines for parsing by bumplibs.sh
- libpe_status_la_SOURCES        =
- libpe_status_la_SOURCES        += container.c
---- pacemaker-Pacemaker-1.1.22/lib/fencing/Makefile.am.orig	2020-05-01 18:33:26.394084202 +0200
-+++ pacemaker-Pacemaker-1.1.22/lib/fencing/Makefile.am	2020-05-01 18:37:57.309283195 +0200
-@@ -16,6 +16,7 @@
- 
- libstonithd_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la
- libstonithd_la_LIBADD   += $(top_builddir)/lib/services/libcrmservice.la
-+libstonithd_la_LIBADD   += $(LIBPILS)
- 
- libstonithd_la_SOURCES	= st_client.c st_rhcs.c
- if BUILD_LHA_SUPPORT
---- pacemaker-Pacemaker-1.1.16/cib/Makefile.am.orig	2017-04-16 07:34:31.236070760 +0200
-+++ pacemaker-Pacemaker-1.1.16/cib/Makefile.am	2017-04-16 07:42:50.786065054 +0200
-@@ -36,7 +36,7 @@
- cib_LDFLAGS	= $(LDFLAGS_HARDENED_EXE)
- 
- cib_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la \
--		$(COMMONLIBS) $(CRYPTOLIB) $(CLUSTERLIBS)
-+		$(COMMONLIBS) $(CRYPTOLIB) $(CLUSTERLIBS) $(LIBPAM)
- 
- cib_SOURCES	= io.c messages.c notify.c \
- 		callbacks.c main.c remote.c common.c
---- pacemaker-Pacemaker-1.1.24/lib/transition/Makefile.am.orig	2020-12-03 16:37:50.000000000 +0100
-+++ pacemaker-Pacemaker-1.1.24/lib/transition/Makefile.am	2022-02-07 17:40:24.372315923 +0100
-@@ -28,7 +28,7 @@ libtransitioner_la_CPPFLAGS	= -I$(top_bu
- libtransitioner_la_CFLAGS	= $(CFLAGS_HARDENED_LIB)
- libtransitioner_la_LDFLAGS	+= $(LDFLAGS_HARDENED_LIB)
- 
--libtransitioner_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la
-+libtransitioner_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/lrmd/liblrmd.la
- libtransitioner_la_SOURCES	= unpack.c graph.c utils.c
- 
- clean-generic:
---- pacemaker-Pacemaker-1.1.24/lib/Makefile.am.orig	2020-12-03 16:37:50.000000000 +0100
-+++ pacemaker-Pacemaker-1.1.24/lib/Makefile.am	2022-02-07 17:45:16.017402612 +0100
-@@ -29,7 +29,7 @@ clean-local:
- 	rm -f $(PC_FILES)
- 
- ## Subdirectories...
--SUBDIRS	= gnu common pengine transition cib services fencing lrmd cluster
-+SUBDIRS	= gnu common pengine cib services fencing lrmd transition cluster
- DIST_SUBDIRS = $(SUBDIRS)
- 
- if BUILD_CS_PLUGIN
diff --git a/pacemaker-manpage_xslt.patch b/pacemaker-manpage_xslt.patch
index 22c8b43..894f44e 100644
--- a/pacemaker-manpage_xslt.patch
+++ b/pacemaker-manpage_xslt.patch
@@ -1,29 +1,29 @@
---- pacemaker-Pacemaker-1.1.14/configure.ac.orig	2016-04-09 21:34:06.520699847 +0200
-+++ pacemaker-Pacemaker-1.1.14/configure.ac	2016-04-09 21:49:29.907327769 +0200
-@@ -558,27 +558,7 @@
-    PCMK_FEATURES="$PCMK_FEATURES generated-manpages"
+--- pacemaker-Pacemaker-2.0.3/configure.ac.orig	2020-05-27 21:20:14.380073396 +0200
++++ pacemaker-Pacemaker-2.0.3/configure.ac	2020-05-27 21:24:07.088812705 +0200
+@@ -713,27 +713,7 @@
+     PCMK_FEATURES="$PCMK_FEATURES generated-manpages"
  fi
  
 -MANPAGE_XSLT=""
 -if test x"${XSLTPROC}" != x""; then
--  AC_MSG_CHECKING(docbook to manpage transform)
--  # first try to figure out correct template using xmlcatalog query,
--  # resort to extensive (semi-deterministic) file search if that fails
--  DOCBOOK_XSL_URI='http://docbook.sourceforge.net/release/xsl/current'
--  DOCBOOK_XSL_PATH='manpages/docbook.xsl'
--  MANPAGE_XSLT=$(${XMLCATALOG} "" ${DOCBOOK_XSL_URI}/${DOCBOOK_XSL_PATH} \
--                 | sed -n 's|^file://||p;q')
--  if test x"${MANPAGE_XSLT}" = x""; then
--    DIRS=$(find "${datadir}" -name $(basename $(dirname ${DOCBOOK_XSL_PATH})) \
--           -type d | LC_ALL=C sort)
--    XSLT=$(basename ${DOCBOOK_XSL_PATH})
--    for d in ${DIRS}; do
--      if test -f "${d}/${XSLT}"; then
--         MANPAGE_XSLT="${d}/${XSLT}"
--         break
--      fi
--    done
--  fi
+-    AC_MSG_CHECKING(docbook to manpage transform)
+-    # first try to figure out correct template using xmlcatalog query,
+-    # resort to extensive (semi-deterministic) file search if that fails
+-    DOCBOOK_XSL_URI='http://docbook.sourceforge.net/release/xsl/current'
+-    DOCBOOK_XSL_PATH='manpages/docbook.xsl'
+-    MANPAGE_XSLT=$(${XMLCATALOG} "" ${DOCBOOK_XSL_URI}/${DOCBOOK_XSL_PATH} \
+-                   | sed -n 's|^file://||p;q')
+-    if test x"${MANPAGE_XSLT}" = x""; then
+-        DIRS=$(find "${datadir}" -name $(basename $(dirname ${DOCBOOK_XSL_PATH})) \
+-               -type d | LC_ALL=C sort)
+-        XSLT=$(basename ${DOCBOOK_XSL_PATH})
+-        for d in ${DIRS}; do
+-            if test -f "${d}/${XSLT}"; then
+-                 MANPAGE_XSLT="${d}/${XSLT}"
+-                 break
+-            fi
+-        done
+-    fi
 -fi
 +MANPAGE_XSLT="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
  AC_MSG_RESULT($MANPAGE_XSLT)
diff --git a/pacemaker-no-common.patch b/pacemaker-no-common.patch
deleted file mode 100644
index 5f73adf..0000000
--- a/pacemaker-no-common.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- pacemaker-Pacemaker-1.1.22/lrmd/lrmd_private.h.orig	2019-11-27 01:47:19.000000000 +0100
-+++ pacemaker-Pacemaker-1.1.22/lrmd/lrmd_private.h	2020-05-31 09:47:18.614948846 +0200
-@@ -32,7 +32,7 @@
- 
- #define LRMD_ISOLATION_PROVIDER ".isolation"
- 
--GHashTable *rsc_list;
-+extern GHashTable *rsc_list;
- 
- typedef struct lrmd_rsc_s {
-     char *rsc_id;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pacemaker.git/commitdiff/6832b6a07224643f6a5ca859f7ed4ee8089adaf0



More information about the pld-cvs-commit mailing list