public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Alien-Build] f43: Remove CMake plugin if CMake has version 4
Date: Tue, 15 Sep 2026 08:46:30 GMT [thread overview]
Message-ID: <178946199090.1.8166971878016619274.rpms-perl-Alien-Build-d45b93b801aa@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Alien-Build
Branch : f43
Commit : d45b93b801aa59a89010ba1fadbc4f1fb68e8f01
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-09-15T10:40:33+02:00
Stats : +22/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Alien-Build/c/d45b93b801aa59a89010ba1fadbc4f1fb68e8f01?branch=f43
Log:
Remove CMake plugin if CMake has version 4
---
diff --git a/perl-Alien-Build.spec b/perl-Alien-Build.spec
index a8e930e..9010a41 100644
--- a/perl-Alien-Build.spec
+++ b/perl-Alien-Build.spec
@@ -1,5 +1,12 @@
# Run optional test
%{bcond_without perl_Alien_Build_enables_optional_test}
+# Support Alien::cmake3, this works only with cmake < 4,
+# <https://github.com/PerlAlien/Alien-Build/issues/432>.
+%if 0%{?fedora} < 44
+%{bcond_without perl_Alien_Build_enables_cmake}
+%else
+%{bcond_with perl_Alien_Build_enables_cmake}
+%endif
# Exhibit FFI::Platypus in Test::Alien
%if !%{defined perl_bootstrap}
# Build cycle: perl-FFI-Platypus → perl-Alien-Build
@@ -8,7 +15,7 @@
Name: perl-Alien-Build
Version: 2.84
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Build external dependencies for use in CPAN
# lib/Alien/Build/Plugin/Test/Mock.pm contains Base64-encoded files for tests
# (a bash script, C source file, a gzipped tar archive, Mach-O 64-bit x86_64
@@ -41,7 +48,7 @@ BuildRequires: perl(File::Which) >= 1.10
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
-%if !%{defined perl_bootstrap}
+%if %{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
# t/alien_build_plugin_build_cmake.t executes gcc via cmake (bug #923024)
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
BuildRequires: perl(Alien::cmake3) >= 0.02
@@ -142,7 +149,7 @@ Requires: make
# A subset of Alien-Build modules is packaged in perl-Alien-Base to minimize
# dependencies.
Requires: perl-Alien-Base = %{?epoch:%{epoch}:}%{version}-%{release}
-%if !%{defined perl_bootstrap}
+%if %{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
Requires: perl(Alien::cmake3) >= 0.02
%endif
@@ -301,11 +308,20 @@ rm t/alien_build_plugin_pkgconfig_{commandline,makestatic,pp}.t
%patch -p1 -P 1
rm lib/Alien/Build/Plugin/Digest/SHAPP.pm
rm t/alien_build_plugin_digest_shapp.t
+%if !%{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
+ # Remove CMake support
+ rm lib/Alien/Build/Plugin/Build/CMake.pm
+ perl -i -ne 'print $_ unless m{\b\Qlib/Alien/Build/Plugin/Build/CMake.pm\E\b}' Makefile.PL MANIFEST
+ perl -i -ne 'print $_ unless m{\b\QAlien::Build::Plugin::Build::CMake\E\b}' t/01_use.t
+%endif
# Remove unused tests
for F in \
t/alien_build_plugin_probe_vcpkg.t \
t/bin/ftpd \
t/bin/httpd \
+%if !%{with perl_Alien_Build_enables_cmake} || %{defined perl_bootstrap}
+ t/alien_build_plugin_build_cmake.t \
+%endif
%if !%{with perl_Alien_Build_enables_optional_test} || %{defined perl_bootstrap}
t/alien_base__system_installed.t \
%endif
@@ -444,6 +460,9 @@ make test
%{_libexecdir}/%{name}
%changelog
+* Thu Feb 19 2026 Petr Pisar <ppisar@redhat.com> - 2.84-4
+- Remove CMake plugin if CMake has version 4 (bug #2440944)
+
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.84-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
reply other threads:[~2026-09-15 8:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178946199090.1.8166971878016619274.rpms-perl-Alien-Build-d45b93b801aa@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox