On Sat, 2016-11-12 at 13:19 +0100, cagsm wrote:
On Sat, Nov 12, 2016 at 1:15 PM, Dominique Leuenberger / DimStar
wrote: The difference is expected - and shows that the infrastructure is correct; hence, some packages call it wrong.
How can I list or find out which packages call that update-mime-database exactly and in what ways? Or should some zypper post update/upgrade global script only call it exactly once at the end of the whole process?
The posttrans implementation would take even longer to fix (and would need more testing). I'd say in a first step, packages should be fixed to use the right macro. Sadly, at the moment, I only have a Tumbleweed checkout available to run the test against - I'll try to get to the Leap one in the next few days. For TW, the command used, and the result received, looks like: find -maxdepth 2 -name '*.spec' -exec grep -l update-mime-database {}\; ./akonadi-runtime/akonadi-runtime.spec ./blender/blender.spec ./bluefish/bluefish.spec ./boo/boo.spec ./conglomerate/conglomerate.spec ./fyre/fyre.spec ./gcstar/gcstar.spec ./gDesklets/gDesklets.spec ./geda-gaf/geda-gaf.spec ./genius/genius.spec ./glom/glom.spec ./gns3/gns3.spec ./icc-examin/icc-examin.spec ./jamin/jamin.spec ./kdepimlibs4/kdepimlibs4.spec ./klatexformula/klatexformula.spec ./libfm/libfm.spec ./OpenLP/OpenLP.spec ./opt_gnome-compat/opt_gnome-compat.spec ./pcb/pcb.spec ./pitivi/pitivi.spec ./planner/planner.spec ./python3-veusz/python3-veusz.spec ./rosegarden/rosegarden.spec ./scribus/scribus.spec ./shared-mime-info/shared-mime-info.spec ./vym/vym.spec ./yast2-metapackage-handler/yast2-metapackage-handler.spec Some of them might be false positives (like pitivi for example, which has a %post script still supporting legacy systems which did not have the macro; but it uses the direct command only in this case, the macro on modern dists) Anyway: those are certainly a good starting point, as if they are wrong in TW< they are very surely also wrong in Leap. You might also use your own logs to find which packages stalled for a long time - and report against those if they are not listed above Cheers, Dominique