1 |
commit: 99c24c9cd97877fe0a052f028061c177e066360c |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 24 15:26:17 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 19:32:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99c24c9c |
7 |
|
8 |
xdg-utils.eclass: disable fdatasync() in update-mime-database |
9 |
|
10 |
This speeds up installation dramatically on slow disks, and may reduce |
11 |
wear on solid state storage. |
12 |
|
13 |
Portage will call 'sync' after installation if FEATURES="merge-sync" is |
14 |
enabled, so the risk should be small. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/819783 |
17 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
18 |
|
19 |
eclass/xdg-utils.eclass | 3 +++ |
20 |
1 file changed, 3 insertions(+) |
21 |
|
22 |
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass |
23 |
index 35084fc8164..a834d5d3acc 100644 |
24 |
--- a/eclass/xdg-utils.eclass |
25 |
+++ b/eclass/xdg-utils.eclass |
26 |
@@ -125,6 +125,9 @@ xdg_mimeinfo_database_update() { |
27 |
return |
28 |
fi |
29 |
|
30 |
+ # https://bugs.gentoo.org/819783 |
31 |
+ local -x PKGSYSTEM_ENABLE_FSYNC=0 |
32 |
+ |
33 |
ebegin "Updating shared mime info database" |
34 |
update-mime-database "${EROOT%/}${MIMEINFO_DATABASE_DIR}" |
35 |
eend $? |