aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2024-02-22 15:54:05 +0200
committerJani Välimaa <wally@mageia.org>2024-02-22 15:54:05 +0200
commit9e9db1e7dae71cb00720a97693369d445463cfbf (patch)
treeafe057d0fedcc3d2e518c560ccfbd24830fa3a6d
parentc26115627c856f451b58878e8dcca3d7e5d4589b (diff)
downloadrpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar
rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.gz
rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.bz2
rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.tar.xz
rpm-setup-9e9db1e7dae71cb00720a97693369d445463cfbf.zip
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)) { | ^~~~~~~~~~~~~~~~~~
-rw-r--r--NEWS1
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 0 deletions
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"
], [