[packages/rpm-build-macros: 1/2] stop INSANE delay
gotar
gotar at pld-linux.org
Wed Aug 24 02:38:48 CEST 2016
commit cfd053877e9fc8c6a87cf34ffe226b7d01717ece
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Wed Aug 24 02:21:45 2016 +0200
stop INSANE delay
If this update-mime-database corrupts data cache, let them fix their crappy
code, until then it's not worth to introduce ~minute updates for
recreatable data, this is not an RDBMS.
rpm.macros | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/rpm.macros b/rpm.macros
index 846c94e..2149718 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -807,9 +807,15 @@ fi; \
#-----------------------------------------------------------------
# Update shared MIME info database
# requires: shared-mime-info
+# Note: https://bugs.freedesktop.org/show_bug.cgi?id=70366#c19
+# https://bugzilla.redhat.com/show_bug.cgi?id=1052173
+# TODO: if you want this running with fdatasync(), make sure it's:
+# 1. announcing ~minute delay by echoing appropriate message,
+# 2. running only once after rpm transaction.
#
%update_mime_database() {{ \
umask 022; \
+ PKGSYSTEM_ENABLE_FSYNC=0 \\\
/usr/bin/update-mime-database %{_datadir}/mime; \
};} \
%{nil}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/0129db82834cb2c41ff1cff45813c61a6088ca08
More information about the pld-cvs-commit
mailing list