On Sat, 2016-11-12 at 11:29 +0100, cagsm wrote:
Changed my 42.1 default repos all to the 42.2 path and zypper ref'd and zypper dup'd
Watching zypper progress, I have seen countless update-mime-dat(atbase) in top and in the zypper output, at a lot of times creating really long stalls
That sounds like a very old bug is back in the game - OR a lot of packages not respecting the macro they should be using. Let's first see which of the two statements is true: Call the commands in sequence (as root, in one session please, not using sudo)$ time /usr/bin/update-mime-database /usr/share/mime $ time /usr/bin/update-mime-database /usr/share/mime $ export PKGSYSTEM_ENABLE_FSYNC=0 $ time /usr/bin/update-mime-database /usr/share/mime Is there a notable difference in the execution time between the first and the 2nd call (I'd expect yes... on my test system this changes from ~40s to ~2s). If on your system this also does change as expected, we might have some packages that do not use the %mime_database_post macro but decided to call /usr/share/update-mime-database directly. That would be packaging bugs then though.
Can we not only once or few times call this update-mime-database program? Didnt we reduce the multiple calls from previous opensuse versions for those boot and grub and kernel and lvm2 and related things that had been called a zillion times as well, and meanwhile reduced to a single call or very few calls only?
for the mime-database, that was so far not moved to posttrans; but that should certainly be doable and sounds like a realistic goal.
Does update-mime-database work when it would be called at the very end? Can I call it manually from command line and it will take into account all the stuff that packages have brought in as new information? What does update-mime-database operate on exactly?
update-mime-database should not stop the installation of other packages and their post scripts if only started at the end of the transaction. Moving it should be possible. As for starting manually: that's what the commands earlier in this mail do, so yes, you can. Cheers, Dominique