Resolves: RHEL-33071

- Disable using libdb for RHEL
- perl-DB_File was removed from run-requires of perl
This commit is contained in:
Jitka Plesnikova 2024-04-25 15:00:01 +02:00
parent e1eb0f9572
commit 3453b31521
2 changed files with 30 additions and 10 deletions

10
gating.yaml Normal file
View File

@ -0,0 +1,10 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.acceptance-tier.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier2.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier3.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tiers-no-perlcore.functional}

View File

@ -24,7 +24,11 @@
# Run C++ tests
%bcond_without perl_enables_cplusplus_test
# We can build without libdb (BerkeleyDB)
%if 0%{?rhel}
%bcond_with bdb
%else
%bcond_without bdb
%endif
# We can bootstrap without gdbm
%bcond_without gdbm
# Support for groff, bug #135101
@ -68,7 +72,7 @@ Name: perl
# cpan/Encode/bin/encguess: Artistic-2.0
# cpan/Unicode-Collate/Collate/allkeys.txt: Unicode-DFS-2015
# inline.h: MIT
# lib/unicore: UCD
# lib/unicore: Unicode-3.0
# ext/SDBM_File/sdbm.{c,h}: Public domain
# regexec.c, regcomp.c: Spencer-86
# cpan/Locale-Maketext-Simple/lib/Locale/Maketext/Simple.pm: MIT (with
@ -100,8 +104,8 @@ Name: perl
# cpan/Compress-Raw-Zlib/zlib-src: Zlib
# perl.h (EBDIC parts) MIT
## perl sub-package notice
# perluniprops.pod is generated from lib/unicore sources: UCD
# uni_keywords.h is generated from lib/unicore sources: UCD
# perluniprops.pod is generated from lib/unicore sources: Unicode-3.0
# uni_keywords.h is generated from lib/unicore sources: Unicode-3.0
#
# This sub-subpackage doesn't contain any copyrightable material.
# Nevertheless, it needs a License tag, so we'll use the generic
@ -110,7 +114,7 @@ License: GPL-1.0-or-later OR Artistic-1.0-Perl
Epoch: %{perl_epoch}
Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
Release: 506%{?dist}
Release: 507%{?dist}
Summary: Practical Extraction and Report Language
Url: https://www.perl.org/
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
@ -426,7 +430,7 @@ package.
%package libs
Summary: The libraries for the perl run-time
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Martin-Birgmeier AND Spencer-86 AND MIT AND UCD AND LicenseRef-Fedora-Public-Domain
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Martin-Birgmeier AND Spencer-86 AND MIT AND Unicode-3.0 AND LicenseRef-Fedora-Public-Domain
# Compat provides
Provides: %perl_compat
Provides: perl(:MODULE_COMPAT_5.38.0)
@ -483,8 +487,8 @@ directories).
%package devel
Summary: Header files for use in perl development
# l1_char_class_tab.h is generated from lib/unicore sources: UCD
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND UCD
# l1_char_class_tab.h is generated from lib/unicore sources: Unicode-3.0
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0
%if %{with perl_enables_systemtap}
Requires: systemtap-sdt-devel
%endif
@ -1364,7 +1368,7 @@ for lexical handles.
%package doc
Summary: Perl language documentation
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND UCD AND LicenseRef-Fedora-UltraPermissive
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
Epoch: 0
Version: %{perl_version}
BuildArch: noarch
@ -1418,7 +1422,7 @@ see XSLoader module.
%if %{dual_life} || %{rebuild_from_scratch}
%package Encode
Summary: Character encodings in Perl
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0 AND UCD
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Artistic-2.0
Epoch: 4
Version: 3.19
%if %{defined perl_bootstrap}
@ -1464,7 +1468,7 @@ The easiest and the best alternative is to write your script in UTF-8.
%package Encode-devel
Summary: Character encodings in Perl
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND UCD
License: GPL-1.0-or-later OR Artistic-1.0-Perl
Epoch: 4
Version: 3.19
Requires: %{name}-Encode = %{epoch}:%{version}-%{release}
@ -4645,10 +4649,12 @@ rm -rf %{buildroot}%{archlib}/Data
rm %{buildroot}%{_mandir}/man3/Data::Dumper.3*
# DB_File
%if %{with bdb}
rm %{buildroot}%{archlib}/DB_File.pm
rm %{buildroot}%{archlib}/auto/DB_File/DB_File.so
rm -rf %{buildroot}%{archlib}/auto/DB_File
rm %{buildroot}%{_mandir}/man3/DB_File*
%endif
# Devel-PPPort
rm %{buildroot}%{archlib}/Devel/PPPort.pm
@ -7066,6 +7072,10 @@ ln -s /app/bin/perl %{buildroot}/usr/bin/perl
# Old changelog entries are preserved in CVS.
%changelog
* Wed Apr 17 2024 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.38.2-507
- Disable using libdb for RHEL
- Resolves: RHEL-33071
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4:5.38.2-506
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild