diff -up shared-mime-info-1.3/update-mime-database.c.PKGSYSTEM_FSYNC shared-mime-info-1.3/update-mime-database.c --- shared-mime-info-1.3/update-mime-database.c.PKGSYSTEM_FSYNC 2014-03-31 09:24:23.000000000 -0500 +++ shared-mime-info-1.3/update-mime-database.c 2014-05-21 12:35:10.695476575 -0500 @@ -951,6 +951,7 @@ static gboolean atomic_update(const gcha new_name = g_strndup(pathname, len - 4); #ifdef HAVE_FDATASYNC + if (g_getenv ("PKGSYSTEM_ENABLE_FSYNC")) { fd = open(pathname, O_RDWR); if (fd == -1) { @@ -967,6 +968,7 @@ static gboolean atomic_update(const gcha set_error_from_errno(error); goto out; } + } #endif #ifdef _WIN32