diff --git a/exim-4.96-build-fix.patch b/exim-4.96-build-fix.patch new file mode 100644 index 0000000..65dbd53 --- /dev/null +++ b/exim-4.96-build-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/drtables.c b/src/drtables.c +index 513ef6c..3fa5c92 100644 +--- a/src/drtables.c ++++ b/src/drtables.c +@@ -736,7 +736,7 @@ else + { + char * name = ent->d_name; + int len = (int)strlen(name); +- if (regex_match(regex_islookupmod, US name, len, NUL)) ++ if (regex_match(regex_islookupmod, US name, len, NULL)) + { + int pathnamelen = len + (int)strlen(LOOKUP_MODULE_DIR) + 2; + void *dl; diff --git a/exim.spec b/exim.spec index 4cf96c7..24fef46 100644 --- a/exim.spec +++ b/exim.spec @@ -48,13 +48,15 @@ Patch2: exim-4.96-dlopen-localscan.patch Patch3: exim-4.96-pic.patch # https://bugs.exim.org/show_bug.cgi?id=2728 Patch4: exim-4.96-opendmarc-1.4-build-fix.patch +# https://bugs.exim.org/show_bug.cgi?id=2899 +Patch5: exim-4.96-build-fix.patch Requires: /etc/pki/tls/certs /etc/pki/tls/private Requires: /etc/aliases Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Recommends: publicsuffix-list BuildRequires: gcc libdb-devel openssl-devel openldap-devel pam-devel -BuildRequires: pcre-devel sqlite-devel cyrus-sasl-devel +BuildRequires: pcre2-devel sqlite-devel cyrus-sasl-devel BuildRequires: libspf2-devel libopendmarc-devel BuildRequires: openldap-devel openssl-devel mariadb-connector-c-devel libpq-devel BuildRequires: libXaw-devel libXmu-devel libXext-devel libX11-devel libSM-devel @@ -163,6 +165,7 @@ greylisting unconditional. %patch2 -p1 -b .dl %patch3 -p1 -b .fpic %patch4 -p1 -b .opendmarc-1.4-build-fix +%patch5 -p1 -b .build-fix cp src/EDITME Local/Makefile sed -i 's@^# LOOKUP_MODULE_DIR=.*@LOOKUP_MODULE_DIR=%{_libdir}/exim/%{version}-%{release}/lookups@' Local/Makefile