* [gentoo-dev] [PATCH] xdg-utils.eclass: disable fdatasync() in update-mime-database
@ 2021-10-24 15:33 Mike Gilbert
0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2021-10-24 15:33 UTC (permalink / raw
To: gentoo-dev; +Cc: gnome, freedesktop-bugs, Mike Gilbert
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>
---
eclass/xdg-utils.eclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 35084fc8164..a834d5d3acc 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 $?
--
2.33.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-24 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-24 15:33 [gentoo-dev] [PATCH] xdg-utils.eclass: disable fdatasync() in update-mime-database Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox