FS#60107 - [packagekit] libpk_backend_alpm ignores custom libalpm hooks
Attached to Project:
Community Packages
Opened by Sergey Zolotorev (serzh-z) - Tuesday, 18 September 2018, 14:31 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 14 September 2022, 21:39 GMT
Opened by Sergey Zolotorev (serzh-z) - Tuesday, 18 September 2018, 14:31 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 14 September 2022, 21:39 GMT
|
Details
Description:
PackageKit (libpk_backend_alpm) ignores /etc/pacman.d/hooks/*.hook while running from GNOME Software/Updates. It is a critical bug if you have some hooks which build/copy/patch kernels or update boot loader entries etc. Additional info: * Version: 1.1.10-2 * Default /etc/pacman.conf and /etc/PackageKit/alpm.d/pacman.conf Steps to reproduce: 1. Create simple hook /etc/pacman.d/hooks/test.hook: ``` [Trigger] Operation = Install Operation = Upgrade Type = File Target = * [Action] Description = TEST When = PostTransaction Exec = /bin/bash -c 'while read -r f; do printf "$(date) ${f}\n" >> /var/tmp/pacman-hook-test.txt; done' NeedsTargets ``` 2. Run GNOME Software and confirm to update/reboot system. 3. Wait for update finished and check /var/tmp/pacman-hook-test.txt - there is no file. [4. Run regular `pacman -S ...` and check /var/tmp/pacman-hook-test.txt - now it exists] |
This task depends upon
Closed by Toolybird (Toolybird)
Wednesday, 14 September 2022, 21:39 GMT
Reason for closing: Fixed
Additional comments about closing: See comments
Wednesday, 14 September 2022, 21:39 GMT
Reason for closing: Fixed
Additional comments about closing: See comments
FS#45709shows it ignores IgnorePkg too.I'm assuming this is an upstream "feature parity" bug and packagekit needs to learn how to handle the configuration file and process the settings it passes on to libalpm function calls. Pretty sure this is not merely something wrong with how we package packagekit itself.
https://github.com/PackageKit/PackageKit/commit/3936af49