From 99c24c9cd97877fe0a052f028061c177e066360c Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 24 Oct 2021 11:26:17 -0400 Subject: 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 --- eclass/xdg-utils.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass/xdg-utils.eclass') 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 $? -- cgit v1.2.3-65-gdbad