From 371f757b0540bba92dbb667b9e8da4778d38f004 Mon Sep 17 00:00:00 2001 From: Chung Chung Date: Fri, 31 Oct 2025 11:54:08 -0400 Subject: [PATCH] Add Fedora 43 and debug OS support Signed-off-by: Chung Chung --- packaging/perl-Permabit-Core/perl-Permabit-Core.spec | 5 ++++- .../perl-Permabit-checkServer.spec | 5 ++++- perl/Permabit/CheckServer/Constants.pm | 3 +++ perl/Permabit/ConfiguredFactory.yaml | 3 +++ perl/Permabit/PlatformUtils.pm | 5 +++-- perl/bin/checkServer.pl | 6 +++++- 6 files changed, 22 insertions(+), 5 deletions(-) diff --git a/packaging/perl-Permabit-Core/perl-Permabit-Core.spec b/packaging/perl-Permabit-Core/perl-Permabit-Core.spec index 098425c..42694fd 100644 --- a/packaging/perl-Permabit-Core/perl-Permabit-Core.spec +++ b/packaging/perl-Permabit-Core/perl-Permabit-Core.spec @@ -1,7 +1,7 @@ %define base_name Permabit-Core Name: perl-%{base_name} Version: 1.03 -Release: 55%{?dist} +Release: 56%{?dist} Summary: Permabit Core Perl libs License: GPL2+ URL: https://github.com/dm-vdo/common @@ -430,6 +430,9 @@ find %{buildroot} -type f -name .packlist -delete %{__install} -m 644 -D lib/Permabit/ConfiguredFactory.yaml $RPM_BUILD_ROOT/%{_sysconfdir}/permabit/perl.yaml %changelog +* Fri Oct 31 2025 Chung Chung - 1.03-56 +- Add Fedora 43 support + * Sat May 10 2025 Chung Chung - 1.03-55 - Add Fedora 42 support diff --git a/packaging/perl-Permabit-checkServer/perl-Permabit-checkServer.spec b/packaging/perl-Permabit-checkServer/perl-Permabit-checkServer.spec index 9272a89..394fc48 100644 --- a/packaging/perl-Permabit-checkServer/perl-Permabit-checkServer.spec +++ b/packaging/perl-Permabit-checkServer/perl-Permabit-checkServer.spec @@ -1,7 +1,7 @@ %define base_name Permabit-checkServer Name: perl-%{base_name} Version: 1.0 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Permabit checkServer utility License: GPL2+ URL: https://github.com/dm-vdo/common @@ -98,6 +98,9 @@ find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %changelog +* Fri Oct 31 2025 Chung Chung - 1.0-38 +- Add Fedora 43 support + * Sat May 10 2025 Chung Chung - 1.0-37 - Add Fedora 42 support diff --git a/perl/Permabit/CheckServer/Constants.pm b/perl/Permabit/CheckServer/Constants.pm index a56bc41..d71f180 100644 --- a/perl/Permabit/CheckServer/Constants.pm +++ b/perl/Permabit/CheckServer/Constants.pm @@ -84,6 +84,9 @@ our @DIST_CLASSES = qw(CENTOS8 FEDORA40 FEDORA41 FEDORA42 + FEDORA42DEBUG + FEDORA43 + FEDORA42DEBUG FEDORANEXT RAWHIDE RHEL6 diff --git a/perl/Permabit/ConfiguredFactory.yaml b/perl/Permabit/ConfiguredFactory.yaml index a2e62fd..1716467 100644 --- a/perl/Permabit/ConfiguredFactory.yaml +++ b/perl/Permabit/ConfiguredFactory.yaml @@ -131,6 +131,9 @@ Permabit::RSVP: - FEDORA40 - FEDORA41 - FEDORA42 + - FEDORA42DEBUG + - FEDORA43 + - FEDORA43DEBUG - FEDORANEXT - RAWHIDE - RHEL6 diff --git a/perl/Permabit/PlatformUtils.pm b/perl/Permabit/PlatformUtils.pm index ac2485e..13b02fe 100644 --- a/perl/Permabit/PlatformUtils.pm +++ b/perl/Permabit/PlatformUtils.pm @@ -98,6 +98,7 @@ our @EXPORT_OK = qw( isThirtyNine isForty isFortyOne + isFortyThree ); my $log = Log::Log4perl->get_logger(__PACKAGE__); @@ -336,7 +337,7 @@ sub getDistroInfo { || ($major == 33) || ($major == 34) || ($major == 35) || ($major == 36) || ($major == 37) || ($major == 38) || ($major == 39) || ($major == 40) || ($major == 41) - || ($major == 42)) { + || ($major == 42) || ($major == 43)) { return "FEDORA$major"; } } elsif (isSles($host)) { @@ -587,7 +588,7 @@ BEGIN { fedora => [qw(TwentySeven TwentyEight TwentyNine Thirty ThirtyOne ThirtyTwo ThirtyThree ThirtyFour ThirtyFive ThirtySix ThirtySeven ThirtyEight ThirtyNine Forty FortyOne Adams - Rawhide)], + FortyThree Rawhide)], sles => [], centOS => [qw(8)], }; diff --git a/perl/bin/checkServer.pl b/perl/bin/checkServer.pl index 812b028..a2f7ca9 100755 --- a/perl/bin/checkServer.pl +++ b/perl/bin/checkServer.pl @@ -116,6 +116,7 @@ isThirtyNine isForty isFortyOne + isFortyThree isRawhide ); @@ -263,6 +264,8 @@ sub _setPaths { $CURRENT_KERNELS = '6.*.fc41.x86_64'; } elsif (isAdams()) { $CURRENT_KERNELS = '6.*.fc42.x86_64'; + } elsif (isFortyThree()) { + $CURRENT_KERNELS = '6.*.fc43.x86_64'; } elsif (isRawhide()) { # Since Fedora Rawhide's kernel changes so frequently # we can only check basic formatting. @@ -1090,7 +1093,7 @@ sub checkDaemons { || isThirtyTwo() || isThirtyThree() || isThirtyFour() || isThirtyFive() || isThirtySix() || isThirtySeven() || isThirtyEight() || isThirtyNine() || isForty() || isFortyOne() - || isAdams()) + || isAdams() || isFortyThree()) && $daemon eq "ntpd") { next; } @@ -1324,6 +1327,7 @@ sub _getOsClass { fedora40 => \&isForty, fedora41 => \&isFortyOne, fedora42 => \&isAdams, + fedora43 => \&isFortyThree, rawhide => \&isRawhide, ); # Fedora linux-next kernel can run on any Fedora OS. Check to see if