• [gentoo-dev] [PATCH] xdg-utils.eclass: disable fdatasync() in update-mi

    From Mike Gilbert@21:1/5 to All on Sun Oct 24 17:40:02 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)