Skip to content

Commit 712c3f6

Browse files
authored
Upgrade: resource-agents version to 4.16.0 (microsoft#13297)
1 parent 61cb085 commit 712c3f6

File tree

3 files changed

+145
-34
lines changed

3 files changed

+145
-34
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"resource-agents-4.10.0.tar.gz": "963b02e97e2aa5d36b9dd01defaec2e32cbfc606dadfaa408e5ef2aad7c43382"
3+
"resource-agents-4.16.0.tar.gz": "62c0bb5db01f6e809d0a9f615550818f0aa93fe5214f491ce63b81af1599f03f"
44
}
55
}

SPECS-EXTENDED/resource-agents/resource-agents.spec

Lines changed: 142 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ Distribution: Azure Linux
1111
# published by the Open Source Initiative.
1212
#
1313

14+
# Below is the script used to generate a new source file
15+
# from the resource-agent upstream git repo.
16+
#
17+
# TAG=$(git log --pretty="format:%h" -n 1)
18+
# distdir="ClusterLabs-resource-agents-${TAG}"
19+
# TARFILE="${distdir}.tar.gz"
20+
# rm -rf $TARFILE $distdir
21+
# git archive --prefix=$distdir/ HEAD | gzip > $TARFILE
22+
#
23+
24+
%global upstream_prefix ClusterLabs-resource-agents
25+
%global upstream_version 56e76b01
26+
1427
# Whether this platform defaults to using systemd as an init system
1528
# (needs to be evaluated prior to BuildRequires being enumerated and
1629
# installed as it's intended to conditionally select some of these, and
@@ -36,37 +49,43 @@ Distribution: Azure Linux
3649

3750
Name: resource-agents
3851
Summary: Open Source HA Reusable Cluster Resource Scripts
39-
Version: 4.10.0
40-
Release: 1%{?dist}
41-
License: GPLv2+ and LGPLv2+
52+
Version: 4.16.0
53+
Release: 2%{?dist}
54+
License: GPL-2.0-or-later AND LGPL-2.1-or-later
4255
URL: https://github.com/ClusterLabs/resource-agents
43-
Source0: https://github.com/ClusterLabs/resource-agents/archive/refs/tags/v4.10.0.tar.gz#/%{name}-%{version}.tar.gz
56+
Source0: https://github.com/ClusterLabs/resource-agents/archive/refs/tags/v4.16.0.tar.gz#/%{name}-%{version}.tar.gz
4457
Obsoletes: heartbeat-resources <= %{version}
4558
Provides: heartbeat-resources = %{version}
4659

4760
# Build dependencies
4861
BuildRequires: make
4962
BuildRequires: automake autoconf pkgconfig gcc
5063
BuildRequires: perl
51-
BuildRequires: python3-devel
52-
BuildRequires: libxslt glib2-devel
53-
BuildRequires: systemd-devel
64+
BuildRequires: libxslt glib2-devel libqb-devel
65+
BuildRequires: systemd
5466
BuildRequires: which
5567

68+
BuildRequires: python3-devel
69+
70+
%ifarch x86_64
71+
BuildRequires: python3-pyroute2
72+
%endif
73+
5674
BuildRequires: docbook-style-xsl docbook-dtds
5775
BuildRequires: libnet-devel
5876

5977
## Runtime deps
6078
# system tools shared by several agents
6179
Requires: /bin/bash /bin/grep /bin/sed /bin/gawk
62-
Requires: /bin/ps /bin/netstat /bin/hostname /usr/sbin/rpc.statd
63-
Requires: /usr/sbin/rpc.statd /bin/mount
80+
Requires: /bin/ps /bin/pkill /bin/hostname /bin/netstat
81+
Requires: /bin/mount
6482

6583
# Filesystem / fs.sh / netfs.sh
6684
Requires: /sbin/fsck
6785
Requires: /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext3 /usr/sbin/fsck.ext4
6886
Requires: /sbin/fsck.xfs
6987
Requires: /sbin/mount.nfs /sbin/mount.nfs4
88+
Recommends: /usr/sbin/mount.cifs
7089

7190
# IPaddr2
7291
Requires: /sbin/ip
@@ -75,21 +94,16 @@ Requires: /sbin/ip
7594
Requires: /usr/sbin/lvm
7695

7796
# nfsserver / netfs.sh
78-
Requires: /usr/sbin/rpc.nfsd /usr/sbin/rpc.statd /usr/sbin/rpc.mountd
79-
80-
# ocf-distro
81-
Requires: /usr/bin/lsb_release
97+
Requires: /usr/sbin/rpc.statd
98+
Requires: /usr/sbin/rpc.nfsd /usr/sbin/rpc.mountd
8299

83100
# rgmanager
84-
%if %{with rgmanager}
85-
# ip.sh
86-
Requires: /usr/sbin/ethtool
87-
Requires: /sbin/rdisc /usr/sbin/arping /bin/ping /bin/ping6
101+
Requires: /sbin/ethtool
102+
Requires: /usr/bin/arping /usr/bin/ping /usr/bin/ping6
88103

89104
# nfsexport.sh
90105
Requires: /sbin/findfs
91-
Requires: /sbin/quotaon /sbin/quotacheck
92-
%endif
106+
Requires: /usr/sbin/quotaon /usr/sbin/quotacheck
93107

94108
%description
95109
A set of scripts to interface with several services to operate in a
@@ -98,7 +112,7 @@ service managers.
98112

99113
%if %{with linuxha}
100114
%package -n ldirectord
101-
License: GPLv2+
115+
License: GPL-2.0-or-later
102116
Summary: A Monitoring Daemon for Maintaining High Availability Resources
103117
Obsoletes: heartbeat-ldirectord <= %{version}
104118
Provides: heartbeat-ldirectord = %{version}
@@ -124,7 +138,7 @@ See 'ldirectord -h' and linux-ha/doc/ldirectord for more information.
124138
%endif
125139

126140
%prep
127-
%autosetup -p1
141+
%autosetup
128142

129143
%build
130144
if [ ! -f configure ]; then
@@ -146,7 +160,8 @@ CFLAGS="$(echo '%{optflags}')"
146160

147161
export CFLAGS
148162

149-
%configure PYTHON="%{__python3}" \
163+
%configure \
164+
PYTHON="%{__python3}" \
150165
%{conf_opt_fatal} \
151166
%if %{defined _unitdir}
152167
SYSTEMD_UNIT_DIR=%{_unitdir} \
@@ -161,6 +176,7 @@ export CFLAGS
161176
make %{_smp_mflags}
162177

163178
%install
179+
rm -rf %{buildroot}
164180
make install DESTDIR=%{buildroot}
165181

166182
## tree fixup
@@ -178,8 +194,7 @@ test -d %{buildroot}/sbin || mkdir %{buildroot}/sbin
178194
%endif
179195

180196
%files
181-
%license COPYING COPYING.GPLv3 COPYING.LGPL
182-
%doc AUTHORS ChangeLog
197+
%doc AUTHORS COPYING COPYING.GPLv3 COPYING.LGPL ChangeLog
183198
%if %{with linuxha}
184199
%doc heartbeat/README.galera
185200
%doc doc/README.webapps
@@ -301,22 +316,118 @@ ccs_update_schema > /dev/null 2>&1 ||:
301316
%endif
302317

303318
%changelog
304-
* Fri Mar 04 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 4.10.0-1
305-
- Updating to version 4.10.0 using Fedora 36 spec (license: MIT) for guidance.
319+
* Fri Feb 21 2025 Archana Shettigar <v-shettigara@microsoft.com> - 4.16.0-2
320+
- Initial Azure Linux import from Fedora 41 (license: MIT).
306321
- License verified.
307322

308-
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 4.6.1-5
309-
- Converting the 'Release' tag to the '[number].[distribution]' format.
323+
* Wed Nov 6 2024 Oyvind Albrigtsen <[email protected]> - 4.16.0-1
324+
- Rebase to resource-agents 4.16.0 upstream release.
325+
326+
* Mon Jul 29 2024 Yaakov Selkowitz <[email protected]> - 4.15.1-2
327+
- Fix sbin dependencies for ELN
328+
329+
* Fri Jul 26 2024 Oyvind Albrigtsen <[email protected]> - 4.15.1-1
330+
- Rebase to resource-agents 4.15.1 upstream release.
331+
332+
* Wed Jul 24 2024 Oyvind Albrigtsen <[email protected]> - 4.15.0-1
333+
- Rebase to resource-agents 4.15.0 upstream release.
334+
335+
* Tue Jul 23 2024 Fedora Release Engineering <[email protected]> - 4.14.0-2
336+
- Update dependencies to /usr/sbin
337+
338+
Resolves: rhbz#2299381
339+
340+
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 4.14.0-1.1
341+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
342+
343+
* Fri Apr 26 2024 Oyvind Albrigtsen <[email protected]> - 4.14.0-1
344+
- Rebase to resource-agents 4.14.0 upstream release.
345+
346+
* Tue Jan 30 2024 Zbigniew Jedrzejewski-Szmek <[email protected]> - 4.13.0-2.3
347+
- Replace /sbin by /usr/sbin in some paths so that the package remains
348+
installable without full filepath metadata (rhbz#2229951)
349+
350+
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 4.13.0-2.2
351+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
352+
353+
* Mon Jan 22 2024 Fedora Release Engineering <[email protected]> - 4.13.0-2.1
354+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
310355

311-
* Thu Jun 17 2021 Muhammad Falak Wani <[email protected]> - 4.6.1-4
312-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
313-
- resolve build failure by removing `JFLAGS` to make
356+
* Wed Jan 10 2024 Oyvind Albrigtsen <[email protected]> - 4.13.0-2
357+
- configure: fix "C preprocessor "gcc -E" fails sanity check" error
358+
with autoconf 2.72+
359+
360+
Resolves: rhbz#2256836
361+
362+
* Wed Oct 11 2023 Oyvind Albrigtsen <[email protected]> - 4.13.0-1
363+
- Rebase to resource-agents 4.13.0 upstream release.
364+
365+
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 4.12.0-3.1
366+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
367+
368+
* Mon Jun 12 2023 Oyvind Albrigtsen <[email protected]> - 4.12.0-3
369+
- spec: remove JFLAGS logic and use %{_smp_mflags} like we do in other projects
370+
371+
* Tue Jun 06 2023 Jan Friesse <[email protected]> - 4.12.0-2
372+
- migrated to SPDX license
373+
374+
* Wed Jan 25 2023 Oyvind Albrigtsen <[email protected]> - 4.12.0-1
375+
- Rebase to resource-agents 4.12.0 upstream release.
376+
377+
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 4.11.0-2.2
378+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
379+
380+
* Sat Jul 23 2022 Fedora Release Engineering <[email protected]> - 4.11.0-2.1
381+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
382+
383+
* Wed Apr 27 2022 Oyvind Albrigtsen <[email protected]> - 4.11.0-2
384+
- Remove redhat-lsb-core dependency (lsb_release)
385+
386+
* Wed Apr 6 2022 Oyvind Albrigtsen <[email protected]> - 4.11.0-1
387+
- Rebase to resource-agents 4.11.0 upstream release.
388+
389+
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 4.10.0-2.1
390+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
391+
392+
* Wed Nov 3 2021 Oyvind Albrigtsen <[email protected]> - 4.10.0-2
393+
- Rebase to resource-agents 4.10.0 upstream release.
394+
395+
* Fri Aug 20 2021 Oyvind Albrigtsen <[email protected]> - 4.9.0-1
396+
- Rebase to resource-agents 4.9.0 upstream release.
397+
398+
* Fri Jul 23 2021 Oyvind Albrigtsen <[email protected]> - 4.8.0-2
399+
- Remove chkconfig dependency
400+
401+
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 4.8.0-1.1
402+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
403+
404+
* Thu Mar 25 2021 Oyvind Albrigtsen <[email protected]> - 4.8.0-1
405+
- Rebase to resource-agents 4.8.0 upstream release.
406+
407+
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <[email protected]> - 4.7.0-2.1
408+
- Rebuilt for updated systemd-rpm-macros
409+
See https://pagure.io/fesco/issue/2583.
410+
411+
* Fri Feb 12 2021 Oyvind Albrigtsen <[email protected]> - 4.7.0-2
412+
- add BuildRequires for google lib
413+
414+
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 4.7.0-1.1
415+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
416+
417+
* Wed Dec 9 2020 Oyvind Albrigtsen <[email protected]> - 4.7.0-1
418+
- Rebase to resource-agents 4.7.0 upstream release.
419+
420+
* Mon Aug 24 2020 Oyvind Albrigtsen <[email protected]> - 4.6.1-4
421+
- spec: improvements from upstream project
314422

315423
* Mon Aug 24 2020 Oyvind Albrigtsen <[email protected]> - 4.6.1-3
316424
- ldirectord: add dependency for perl-IO-Socket-INET6
317425

318426
Resolves: rhbz#1868063
319427

428+
* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 4.6.1-2.1
429+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
430+
320431
* Fri Jul 24 2020 Oyvind Albrigtsen <[email protected]> - 4.6.1-2
321432
- Make Samba/CIFS dependency weak for Fedora 32 and remove the
322433
dependency from 33+

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26093,8 +26093,8 @@
2609326093
"type": "other",
2609426094
"other": {
2609526095
"name": "resource-agents",
26096-
"version": "4.10.0",
26097-
"downloadUrl": "https://github.com/ClusterLabs/resource-agents/archive/refs/tags/v4.10.0.tar.gz"
26096+
"version": "4.16.0",
26097+
"downloadUrl": "https://github.com/ClusterLabs/resource-agents/archive/refs/tags/v4.16.0.tar.gz"
2609826098
}
2609926099
}
2610026100
},

0 commit comments

Comments
 (0)