FS#72858 - [shared-mime-info] Add prefix to pacman hook so it runs earlier
Attached to Project:
Arch Linux
Opened by Antonio Rojas (arojas) - Sunday, 28 November 2021, 09:41 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 28 November 2021, 12:11 GMT
Opened by Antonio Rojas (arojas) - Sunday, 28 November 2021, 09:41 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 28 November 2021, 12:11 GMT
|
Details
Description:
See [1] for details. In short: pacman runs hooks in alphabetic order. Since the shared-mime-info hook is called 'update-mime-database.hook', it is always one of the last ones to run. In a fresh install that doesn't have shared-mime-info yet, if the package is installed in a big transaction that includes other packages which also run hooks, and one of those hooks happens to rely on the presence of the mime info database, the hook will fail to run since the database hasn't been generated yet. Please add a (low) numeric prefix to the hook, so other hooks that depend on the presence of the mime database can be sorted to run after the database generation [1] https://bbs.archlinux.org/viewtopic.php?pid=2005788 |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 28 November 2021, 12:11 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks
Sunday, 28 November 2021, 12:11 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks
install -Dm644 "$srcdir"/update-mime-database.hook "$pkgdir"/usr/share/libalpm/hooks/100-update-mime-database.hook ?
Or is there any reason to run it even earlier in the chain?