From ba46e787913e84b40e9d266d0e86412ba482b461 Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Fri, 30 Apr 2021 14:07:57 +0200 Subject: [PATCH] Removing error message from build.log The macro _httpd_mmn produces error message "file not found" but it is not actually error. This patch hides the error message to avoid confusion. Error is printed in early stage when httpd-devel is not installed yet. Later in the build it works. --- mod_auth_openidc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_auth_openidc.spec b/mod_auth_openidc.spec index a8fc903..384a2c8 100644 --- a/mod_auth_openidc.spec +++ b/mod_auth_openidc.spec @@ -1,4 +1,4 @@ -%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}} +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}} %{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} %{!?_httpd_confdir: %{expand: %%global _httpd_confdir %{_sysconfdir}/httpd/conf.d}}