commit 35d0c9a6431ec084d841a95de39cc346d1d08d92
Author: Tomasz Pala <[email protected]>
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 93807ba..7edf4cf 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/35d0c9a6431ec084d841a95de39cc346d1d08d92

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to