From 9cec44912e906ee1aa25b4194cded677c852ca5c Mon Sep 17 00:00:00 2001 From: Fedor Vorobev Date: Tue, 6 Jan 2026 18:32:48 +0100 Subject: [PATCH] Added a RHEL-specific patch to remove an OpenSSL version mismatch warning. Resolves: RHEL-128018 --- ...25-rhel-remove-version-mismatch-warning.patch | 16 ++++++++++++++++ postfix.spec | 8 +++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 postfix-3.5.25-rhel-remove-version-mismatch-warning.patch diff --git a/postfix-3.5.25-rhel-remove-version-mismatch-warning.patch b/postfix-3.5.25-rhel-remove-version-mismatch-warning.patch new file mode 100644 index 0000000..e30dab4 --- /dev/null +++ b/postfix-3.5.25-rhel-remove-version-mismatch-warning.patch @@ -0,0 +1,16 @@ +diff --git a/src/tls/tls_misc.c b/src/tls/tls_misc.c +index b780709..e41665b 100644 +--- a/src/tls/tls_misc.c ++++ b/src/tls/tls_misc.c +@@ -1396,10 +1396,7 @@ void tls_check_version(void) + && (lib_info.micro < hdr_info.micro + || hdr_info.major == 0 + || (hdr_info.major == 1 && hdr_info.minor == 0)))) +- msg_warn("run-time library vs. compile-time header version mismatch: " +- "OpenSSL %d.%d.%d may not be compatible with OpenSSL %d.%d.%d", +- lib_info.major, lib_info.minor, lib_info.micro, +- hdr_info.major, hdr_info.minor, hdr_info.micro); ++ ; // Nothing. Warning output removed. + } + + /* tls_compile_version - compile-time OpenSSL version */ diff --git a/postfix.spec b/postfix.spec index a684b8a..f3ef3f1 100644 --- a/postfix.spec +++ b/postfix.spec @@ -46,7 +46,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.5.25 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 URL: http://www.postfix.org License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -102,6 +102,7 @@ Patch13: postfix-3.5.9-whitespace-name-fix.patch Patch14: pflogsumm-1.1.5-syslog-name-underscore-fix.patch # rhbz#2134789, backported feature from upstream Patch15: postfix-3.5.25-SRV-resolve.patch +Patch16: postfix-3.5.25-rhel-remove-version-mismatch-warning.patch # Optional patches - set the appropriate environment variables to include # them when building the package/spec file @@ -257,6 +258,7 @@ popd %patch13 -p1 -b .whitespace-name-fix %patch14 -p1 -b .pflogsumm-1.1.5-syslog-name-underscore-fix %patch15 -p1 -b .SRV-resolution +%patch16 -p1 -b .warning for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do iconv -f iso8859-1 -t utf8 -o ${f}{_,} && @@ -803,6 +805,10 @@ fi %endif %changelog +* Tue Jan 06 2026 Fedor Vorobev - 2:3.5.25-2 +- Added a RHEL-specific patch to remove an OpenSSL version mismatch warning. + RHEL-128018 + * Thu Jul 18 2024 Jaroslav Škarvada - 2:3.5.25-1 - New version Resolves: RHEL-20023