From 71b9146bb170a014d4d691caa7b2065129f8b2ea8cfc38d6660094888762147a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 10 Feb 2023 13:32:37 +0000 Subject: [PATCH] Accepting request 1063872 from home:marxin:branches:Base:System - Disable strict aliasing due to its violation: https://sourceforge.net/p/ddrescue/tickets/6/ OBS-URL: https://build.opensuse.org/request/show/1063872 OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=68 --- dd_rescue.changes | 6 ++++++ dd_rescue.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dd_rescue.changes b/dd_rescue.changes index 8068244..56a9a06 100644 --- a/dd_rescue.changes +++ b/dd_rescue.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 8 16:00:38 UTC 2023 - Martin Liška + +- Disable strict aliasing due to its violation: + https://sourceforge.net/p/ddrescue/tickets/6/ + ------------------------------------------------------------------- Tue Dec 27 10:31:33 UTC 2022 - Ludwig Nussel diff --git a/dd_rescue.spec b/dd_rescue.spec index cc4b8e9..b51ba7f 100644 --- a/dd_rescue.spec +++ b/dd_rescue.spec @@ -127,7 +127,9 @@ autoconf # avoid running dependency generation step touch .dep -OPT_FLAGS="%{optflags}" +# GCC 13 newly detects a violation of the strict aliasing rule: +# https://sourceforge.net/p/ddrescue/tickets/6/ +OPT_FLAGS="%{optflags} -fno-strict-aliasing" %make_build RPM_OPT_FLAGS="$OPT_FLAGS" LIBDIR=%{_libdir} LIB=%{_lib} %install @@ -140,7 +142,7 @@ ln -sf %{_bindir}/dd_rescue %{buildroot}/bin %endif %check -%make_build RPM_OPT_FLAGS="%{optflags} -fcommon" check +%make_build RPM_OPT_FLAGS="%{optflags} -fcommon -fno-strict-aliasing" check %files %doc README.dd_rescue TODO