From dd7c1c259d93209a9f7fd58240efe4435160d51ecbc6e3b8c8f3a3bd219ea82d Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 31 Jan 2024 15:58:56 +0000 Subject: [PATCH] Unset SOURCE_DATE_EPOCH for the testsuite OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=461 --- binutils.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/binutils.spec b/binutils.spec index 20b2e5b..3f786d4 100644 --- a/binutils.spec +++ b/binutils.spec @@ -490,6 +490,11 @@ make -C gas-nesc %{?make_output_sync} %{?_smp_mflags} %check unset SUSE_ASNEEDED +# newer distros set this envvar (e.g. to get deterministic archives by default) +# but of course that breaks tests that precisely are +# designed for checking file replacement in archives based on mtime. +# just get rid of it for the binutils testsuite +unset SOURCE_DATE_EPOCH cd build-dir %if 0%{?cross:1} make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" CFLAGS_FOR_TARGET="-O2 -g" CXXFLAGS_FOR_TARGET="-O2 -g" || %{make_check_handling}