From a8a0b583561e80ed0d3bd01f3765a899e2364cf0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 28 Jan 2019 16:47:39 +0000 Subject: [PATCH] Add an exact requirement on the major version of gcc. Resolves: #1607430 --- annobin.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index a654c09..01a427e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -41,7 +41,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz #--------------------------------------------------------------------------------- +# BZ 1607430 - There is an exact requirement on the major version of gcc. +%define gcc_runtime_req_version %(rpm -q --qf '%{version}' gcc) + BuildRequires: gcc gcc-plugin-devel gcc-c++ +Requires: gcc = %{gcc_runtime_req_version} %description Provides a plugin for GCC that records extra information in the files @@ -200,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 28 2019 Nick Clifton - 8.69-2 +- Add an exact requirement on the major version of gcc. + * Thu Jan 24 2019 Nick Clifton - 8.69-1 - Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9. - Annocheck: Add a note displaying tool.