From 01c75070aa6b1d25e692255c6bc567e87b0d421b Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Wed, 2 Oct 2024 17:28:07 +0800 Subject: factor: Downgrade errors to warnings for GCC 14 --- factor/msieve/msieve.spec | 9 +++++++-- factor/yafu/yafu.spec | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/factor/msieve/msieve.spec b/factor/msieve/msieve.spec index 5477095..02b4996 100644 --- a/factor/msieve/msieve.spec +++ b/factor/msieve/msieve.spec @@ -1,6 +1,6 @@ Name: msieve Version: 1.53 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Msieve is a C library to factor large integers. License: Public Domain @@ -22,7 +22,8 @@ latter has helped complete some of the largest public factorizations known. %build sed -i 's|-march=native||' Makefile -%make_build all ECM=1 CC="gcc %{build_cflags} %{build_ldflags} -fcommon" +%make_build all ECM=1 \ + CC="gcc $CFLAGS $LDFLAGS -fcommon -fpermissive" %install @@ -40,6 +41,10 @@ install -m 644 libmsieve.a %{buildroot}%{_libdir} %changelog +* Wed Oct 02 2024 Ting-Wei Lan - 1.53-17 +- Downgrade GCC 14 compilation errors to warnings with -fpermissive +- Use environment variables instead of RPM macros to get build flags + * Sat Oct 14 2023 Ting-Wei Lan - 1.53-16 - Rebuilt for Fedora 39 and 40 diff --git a/factor/yafu/yafu.spec b/factor/yafu/yafu.spec index 33e123d..48a67e3 100644 --- a/factor/yafu/yafu.spec +++ b/factor/yafu/yafu.spec @@ -1,6 +1,6 @@ Name: yafu Version: 1.34 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Automated integer factorization License: Public Domain @@ -29,7 +29,7 @@ sed -i 's|-lmsieve|-lmsieve -lz|' Makefile %ifarch x86_64 %make_build x86_64 NFS=1 USE_SSE41=1 \ - CC="gcc %{build_cflags} %{build_ldflags} -fcommon" + CC="gcc $CFLAGS $LDFLAGS -fcommon -fpermissive" %else false %endif @@ -47,6 +47,10 @@ install -m 755 yafu %{buildroot}%{_bindir} %changelog +* Wed Oct 02 2024 Ting-Wei Lan - 1.34-24 +- Downgrade GCC 14 compilation errors to warnings with -fpermissive +- Use environment variables instead of RPM macros to get build flags + * Sat Oct 14 2023 Ting-Wei Lan - 1.34-23 - Rebuilt for Fedora 39 and 40 -- cgit v1.2.3