Tie perl-Errno release to interpreter build because of kernel version check

If user updates the his system only partially so that perl-Errno does
not match perl-libs and the two were built on different kernel, using
Errno will fail:

Errno architecture (x86_64-linux-thread-multi-4.7.9-200.fc24.x86_64) does not match executable architecture (x86_64-linux-thread-multi-4.6.4-301.fc24.x86_64) at /usr/lib64/perl5/Errno.pm line 11.
This commit is contained in:
Petr Písař 2016-11-09 15:46:17 +01:00
parent 97b9d9c092
commit 468152e799

View File

@ -28,7 +28,7 @@
Name: perl
Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
Release: 379%{?dist}
Release: 380%{?dist}
Epoch: %{perl_epoch}
Summary: Practical Extraction and Report Language
Group: Development/Languages
@ -1135,6 +1135,9 @@ License: GPL+ or Artistic
Epoch: 0
Version: 1.25
Requires: %perl_compat
# Errno.pm bakes in kernel version at build time and compares it against
# $Config{osvers} at run time. Match exact interpreter build. Bug #1393421.
Requires: perl-libs = %{perl_epoch}:%{perl_version}-%{release}
Requires: perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Errno
@ -5226,6 +5229,10 @@ popd
# Old changelog entries are preserved in CVS.
%changelog
* Wed Nov 09 2016 Petr Pisar <ppisar@redhat.com> - 4:5.24.0-380
- Tie perl-Errno release to interpreter build because of kernel version check
(bug #1393421)
* Thu Nov 03 2016 Petr Pisar <ppisar@redhat.com> - 4:5.24.0-379
- Fix crash in "evalbytes S" (RT#129196)
- Fix crash in splice (RT#129164, RT#129166, RT#129167)