From 9e9db1e7dae71cb00720a97693369d445463cfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Thu, 22 Feb 2024 15:54:05 +0200 Subject: rpmeval: fix build with gcc13 Fixes the following build error with gcc >= 13. rpmeval.c: In function 'main': rpmeval.c:22:14: error: implicit declaration of function 'rpmReadConfigFiles' [-Wimplicit-function-declaration] 22 | if (rc = rpmReadConfigFiles(NULL, NULL)) { | ^~~~~~~~~~~~~~~~~~ --- NEWS | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index fa9f773..09160bf 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- rpmeval: fix build with gcc13 - rpmrc: add -fstack-clash-protection to default flags for all supported arches - rpmrc: add -fcf-protection=full to x86 default flags - rpmrc: add -mbranch-protection=standard to aarch64 default flags diff --git a/configure.ac b/configure.ac index 7fb6de2..ea92d8d 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ AC_CONFIG_FILES([ dnl See if we have pkgconfig for rpm, resort to old behavior if not PKG_CHECK_MODULES([RPM], [rpm], [ AC_DEFINE_UNQUOTED([HAVE_RPM],1,[Define if RPM backend is available]) + AC_CHECK_HEADERS([rpm/rpmlib.h]) CPPFLAGS="$RPM_CFLAGS $CPPFLAGS" LDFLAGS="$RPM_LIBS $LDFLAGS" ], [ -- cgit v1.2.1