FS#68013 - [packagekit] crashes when HookDir is set in pacman.conf

Attached to Project: Community Packages
Opened by Bas Bleeker (Bubbel) - Saturday, 26 September 2020, 19:58 GMT
Last edited by Christian Hesse (eworm) - Friday, 14 October 2022, 21:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


When setting the pacman hookdir in /etc/pacman.conf, PackageKit crashes during startup.
GDB reveals the following:
(packagekitd:9789): PackageKit-alpm-ERROR **: 21:35:28.246: Failed to initialize alpm: using /etc/PackageKit/alpm.d/pacman.conf: /etc/PackageKit/alpm.d/pacman.conf:8/etc/pacman.conf:7unrecognised directive 'HookDir'

Additional info:
* community/packagekit 1.1.13-1
* See above for gdb output.

Steps to reproduce:
Set HookDir = to a value (mine is /etc/pacman.d/hooks, e.g. the default) in /etc/pacman.conf
(re)start packagekit.service
packagekit.service fails, coredump.
This task depends upon

Closed by  Christian Hesse (eworm)
Friday, 14 October 2022, 21:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  packagekit 1.2.5-2
Comment by Adrian Insaurralde (adrianinsaval) - Wednesday, 14 September 2022, 21:01 GMT
  • Field changed: Percent Complete (100% → 0%)
it is an upstream bug but a fix is now available: https://github.com/PackageKit/PackageKit/pull/575/files please apply as a patch while we wait for merge and new release
Comment by Toolybird (Toolybird) - Wednesday, 14 September 2022, 21:04 GMT Comment by Adrian Insaurralde (adrianinsaval) - Wednesday, 14 September 2022, 21:16 GMT
yes I have tested: https://github.com/PackageKit/PackageKit/pull/575#issuecomment-1246108204

it might be going out of fashion but it's still used by KDE's Discover and likely gnome software too, also note that it's going out of fashion in immutable systems revolving around flatpak/snap which is not the case for arch and similar (except steamOS). In reality this is a minor nuisance but since there's a fix...
Comment by Adrian Insaurralde (adrianinsaval) - Thursday, 13 October 2022, 21:28 GMT
The PR has been merged upstream, please apply as a patch in the package until the fix gets into the stable release