diff --git a/macros b/macros index 21c6194572b57b4a2a7fe8df011164ed5a3a486c..9b27ca0cb83c6182c84237925dfa89ebcf555e22 100644 --- a/macros +++ b/macros @@ -97,7 +97,7 @@ PKG_CONFIG_LOG="%{_builddir}/%{?buildsubdir}/pkgconfig-audit.log" ; export PKG_CONFIG_LOG %dump_pkgconfig_audit_log_file \ - cat ${PKG_CONFIG_LOG} ; \ + [ -f ${PKG_CONFIG_LOG} ] && cat ${PKG_CONFIG_LOG} ; \ rm -f ${PKG_CONFIG_LOG} # Automatically use set_build_flags macro for build, check, and diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 46a4bc63c59f28fcbe2490e9e8a78c6a11670f2d..8ea54d29c06d2646f20b051d7663d819ab4e2f68 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 31 -Release: 39 +Release: 40 License: GPL+ AND MIT Summary: specific rpm configuration files URL: https://gitee.com/src-openeuler/openEuler-rpm-config @@ -213,6 +213,9 @@ sed -i "s|@OSCPE@|$(cat /etc/system-release-cpe)|" %{buildroot}%{rpmvdir}/%{vend %{rpmvdir}/find-requires.ksyms %changelog +* Wed Oct 15 2025 Funda Wang - 31-40 +- only display pkgconfig audit log when it is generated + * Fri Oct 10 2025 Funda Wang - 31-39 - add switch dumping pkgconfig audit log when building