Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34965 - [linux] kernel and headers upgrade order may lead to buildin hook failure

Attached to Project: Arch Linux
Opened by AIXI Aixadas (AIXI) - Friday, 26 April 2013, 00:55 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 30 July 2013, 10:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

When a new kernel upgrade is avaliable and the linux-headers package are also installed the upgrade order that pacman ahve is to install first the kernel and then the headers.

This way when the hook are rebuild for a new kernel version the headers are still not avaliable and if this hook needs the headers for this kernel this hook will fail.
As a workaround if you reintall the kernel right after the update(just simple run pacman -S linux) the hooks works ok as now the headers are installd.

For example if you have the linux kernel 3.8.8-1 you will have both the kernel and the headers on this version.
If a new kernel rolls out pacman found the new kernel and the headers for this package(lets say 3.8.8-2)
Pacman installs the kernel 3.8.8-2 and all the hooks start to rebuild but if some hook needs the headers for this kernel the ones found in the system are still the 3.8.8-1 and the hook failed because can not found the headers for this kernel.
After the kernel package is updated the headers update to the 3.8.8-2 but at this point the hooks depending on this already failed and will not be rebuild untill the kernel image is reintalled.

Proposed solution:
If the kernel headers are always installed before the kernel image the hooks will not have any problem to rebuild.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 30 July 2013, 10:44 GMT
Reason for closing:  Not a bug
Comment by patrick (potomac) - Saturday, 27 April 2013, 00:42 GMT
the old option "upgrade first" for pacman should have been useful for this particular use case
Comment by Dave Reisner (falconindy) - Saturday, 27 April 2013, 00:53 GMT
What you're talking about is an abuse of mkinitcpio.

What you're actually asking for is: https://bugs.archlinux.org/task/2985

Loading...