[gnome-build-meta] base.bst: Avoid overly syncing disks with update-mime-database



commit 31fe4ae7fb4c390a8bb5923936e3c05aed52b8e8
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Thu Feb 22 22:28:52 2018 +0900

    base.bst: Avoid overly syncing disks with update-mime-database
    
    This improves performance of integration commands a lot, and
    syncing the disks is not important in the sandbox environment
    because if the build does not complete and actually get cached
    as an artifact, the build sandbox where files may be corrupt
    are discarded anyway.
    
    Related bug reports:
      https://bugzilla.redhat.com/show_bug.cgi?id=1052173
      https://bugs.freedesktop.org/show_bug.cgi?id=70366

 elements/base.bst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/elements/base.bst b/elements/base.bst
index 83fd55f..cfe2af9 100644
--- a/elements/base.bst
+++ b/elements/base.bst
@@ -8,5 +8,5 @@ public:
   bst:
     integration-commands:
     - ldconfig
-    - update-mime-database %{prefix}/share/mime
+    - PKGSYSTEM_ENABLE_FSYNC=0 update-mime-database %{prefix}/share/mime
     - update-desktop-database -v


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]