From dc71eb60a5aa32bc5eb8fcf9ad512ea0b0a09358 Mon Sep 17 00:00:00 2001 From: benniaobufeijiushiji Date: Wed, 20 Apr 2022 15:10:18 +0800 Subject: [PATCH] [SPEC] Bugfix for removing date in release Removing Date in release version will cause new version being smaller than old ones, and wll cause an update failure. So we use a const number 2020033101 instead and will never change it. (cherry picked from commit 1a0842d53986da5c2253cc58fad6ca52c6e202b7) --- gcc.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc.spec b/gcc.spec index 0bf41f8..ee823dd 100644 --- a/gcc.spec +++ b/gcc.spec @@ -36,7 +36,12 @@ Summary: Various compilers (C, C++, Objective-C, Java, ...) Name: gcc Version: 7.3.0 -Release: 48 +# Remove DATE in release version will cause the new verison being smaller +# than the old ones, which results in an update failure. So we use a const +# number 2020033101 meaning the openEuler 20.03 release date plus 01 to +# replace DATE and will never change it in the future. +%global openEulerDATE 2020033101 +Release: %{openEulerDATE}.49 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Group: Development/Languages #Source0: hcc-aarch64-linux-release.tar.bz2 @@ -3333,6 +3338,9 @@ fi %changelog +* Wed Apr 20 2022 benniaobufeijiushiji - 7.3.0-2020033101.49 +- gcc.spec: Bugfix for removing Date in release version, use a const number instead. + * Mon Mar 21 2022 kkz - 7.3.0-48 - Add patch Remove-_GLIBCXX_USE_INT128-autoconf-macro.patch to resolve int128 related compile issue - refer to https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=ad0a3be4df5eecc79075d899fd79179d0f61270e -- Gitee