diff --git a/c-icap-configure-c99.patch b/c-icap-configure-c99.patch new file mode 100644 index 0000000..879434d --- /dev/null +++ b/c-icap-configure-c99.patch @@ -0,0 +1,19 @@ +configure.ac: Include for exit() in the semaphore probe + +Otherwise, the probe will fail unconditionally (not test anything) if +the C compiler does not support implicit function declarations. + +Submitted upstream: + +diff --git a/configure.ac b/configure.ac +index c41fbd58d4d76845..03de09d89566cb30 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -962,6 +962,7 @@ AC_CACHE_CHECK([if posix 1003.1b interprocess semaphores works], ac_cv_10031b_ip + [AC_LANG_SOURCE([ + #include + #include ++ #include + + int main(int argc,char **argv){ + sem_t s; diff --git a/c-icap.spec b/c-icap.spec index 7e5781d..e53d859 100644 --- a/c-icap.spec +++ b/c-icap.spec @@ -2,7 +2,7 @@ Name: c-icap Version: 0.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: An implementation of an ICAP server License: LGPL-2.1-or-later and GPL-2.0-or-later URL: http://%{name}.sourceforge.net/ @@ -18,6 +18,7 @@ Patch0: %{name}-conf.in.patch Patch1: %{name}-libdb-path.patch # Patches from the c_icap_0_6_x branch: Patch2: https://github.com/c-icap/c-icap-server/commit/6f21a68bee126c3c03412db983387960f0b2671c.patch +Patch3: c-icap-configure-c99.patch BuildRequires: autoconf BuildRequires: automake @@ -212,6 +213,9 @@ exit 0 %{_libdir}/c_icap/perl_handler.so %changelog +* Wed Nov 29 2023 Florian Weimer - 0.6.0-3 +- Fix C compatibility issue in the configure script + * Sat Sep 30 2023 Simone Caronni - 0.6.0-2 - Fix InterProcessLockingScheme bug: https://github.com/c-icap/c-icap-server/issues/56