From 468152e799b08a1aaa14fad57daf9daebede935a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 9 Nov 2016 15:46:17 +0100 Subject: [PATCH] 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. --- perl.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/perl.spec b/perl.spec index 49e4cba..497699d 100644 --- a/perl.spec +++ b/perl.spec @@ -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 - 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 - 4:5.24.0-379 - Fix crash in "evalbytes S" (RT#129196) - Fix crash in splice (RT#129164, RT#129166, RT#129167)