FS#78658 - [mono] installing at same time as ca-certificates breaks monos postinstall script

Attached to Project: Arch Linux
Opened by Florian Albertz (rlnm) - Tuesday, 30 May 2023, 19:49 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Installing mono at the same time as ca-certificates (e.g. via pacstrap) leads to the post-install cert-sync script failing,
because at the time it runs, the `40-update-ca-trust.hook` libalpm hook has not created the relevant file yet.

I'm also pretty sure, cert-sync wont get run when that certificate file changes, unless mono itself is upgraded. I would assume a proper fix would be to have mono install its own, later libalpm hook to run cert-sync?

Steps to reproduce:

Run `pacstrap tmp mono` and see how the mono certificate store update fails with "Couldn't retrieve the file using the supplied information.". Running the command a second time succeeds, so it's definitely not an issue with it running in a chroot but only an ordering problem.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:18 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/mono/issues/2
Comment by Toolybird (Toolybird) - Tuesday, 30 May 2023, 23:37 GMT
Dependencies of post_install scriptlets and pacman hooks is an often overlooked area in Arch (but luckily most issues are minor).

Loading...