From ef03cddccb1a0778a53584691c745a289d237a71 Mon Sep 17 00:00:00 2001 From: AlmaLinux RelEng Bot Date: Mon, 30 Mar 2026 10:52:35 -0400 Subject: [PATCH] import CS perl-ExtUtils-CBuilder-0.280236-5.el9 --- SPECS/perl-ExtUtils-CBuilder.spec | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/SPECS/perl-ExtUtils-CBuilder.spec b/SPECS/perl-ExtUtils-CBuilder.spec index e5c8982..f04f868 100644 --- a/SPECS/perl-ExtUtils-CBuilder.spec +++ b/SPECS/perl-ExtUtils-CBuilder.spec @@ -3,7 +3,7 @@ Name: perl-ExtUtils-CBuilder Epoch: 1 # Mimic perl.spec Version: 0.280236 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Compile and link C code for Perl modules License: GPL+ or Artistic URL: https://metacpan.org/release/ExtUtils-CBuilder @@ -85,31 +85,41 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %install %{make_install} +%{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}/%{_libexecdir}/%{name} cp -a t %{buildroot}/%{_libexecdir}/%{name} cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' -#!/bin/sh -cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +#!/bin/bash +set -e +# Tests write into temporary files/directories. The solution is to copy the +# tests into a writable directory and execute them from there. +DIR=$(mktemp -d) +pushd "$DIR" +cp -a %{_libexecdir}/%{name}/* ./ +prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -rf "$DIR" EOF chmod +x %{buildroot}/%{_libexecdir}/%{name}/test -%{_fixperms} $RPM_BUILD_ROOT/* - %check make test %files %license LICENSE %doc Changes CONTRIBUTING README README.mkdn -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/ExtUtils* +%{_mandir}/man3/ExtUtils::CBuilder* %files tests %{_libexecdir}/%{name} %changelog +* Fri Nov 28 2025 Jitka Plesnikova - 1:0.280236-5 +- Resolves: RHEL-131157 - Update tests for Image Mode + * Mon Aug 09 2021 Mohan Boddu - 1:0.280236-4 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688