summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-10-24 11:26:17 -0400
committerMike Gilbert <floppym@gentoo.org>2021-10-31 15:32:41 -0400
commit99c24c9cd97877fe0a052f028061c177e066360c (patch)
tree6074c79e94aa638479b05235e239e3136648f78d /eclass
parentapp-emulation/libguestfs: note that guestfs-tools is now needed for tools (diff)
downloadgentoo-99c24c9cd97877fe0a052f028061c177e066360c.tar.gz
gentoo-99c24c9cd97877fe0a052f028061c177e066360c.tar.bz2
gentoo-99c24c9cd97877fe0a052f028061c177e066360c.zip
xdg-utils.eclass: disable fdatasync() in update-mime-database
This speeds up installation dramatically on slow disks, and may reduce wear on solid state storage. Portage will call 'sync' after installation if FEATURES="merge-sync" is enabled, so the risk should be small. Closes: https://bugs.gentoo.org/819783 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xdg-utils.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 35084fc8164d..a834d5d3accf 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -125,6 +125,9 @@ xdg_mimeinfo_database_update() {
return
fi
+ # https://bugs.gentoo.org/819783
+ local -x PKGSYSTEM_ENABLE_FSYNC=0
+
ebegin "Updating shared mime info database"
update-mime-database "${EROOT%/}${MIMEINFO_DATABASE_DIR}"
eend $?