FS#43885 - [linux] makepkg --pkg linux-headers fails
Attached to Project:
Arch Linux
Opened by Mikael Eriksson (miffe) - Thursday, 19 February 2015, 11:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 20 July 2016, 13:19 GMT
Opened by Mikael Eriksson (miffe) - Thursday, 19 February 2015, 11:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 20 July 2016, 13:19 GMT
|
Details
Building just the linux-headers package using "makepkg --pkg
linux-headers" fails with:
==> Starting package_linux-headers()... cp: cannot stat 'arch//Makefile': No such file or directory ==> ERROR: A failure occurred in package_linux-headers(). The problem is the KARCH variable which is set in _package() but used in _package-headers(), but since _package() isn't run when only building the headers it fails. Attaching a patch to move the KARCH variable to global scope. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 20 July 2016, 13:19 GMT
Reason for closing: None
Additional comments about closing: --pkg option has been removed from makepkg
Wednesday, 20 July 2016, 13:19 GMT
Reason for closing: None
Additional comments about closing: --pkg option has been removed from makepkg
On my system Yaourt is currently unable to properly upgrade the linux-vfio-headers package because of this bug, and as a result none of my DKMS modules will compile for it.
This seems like an easy fix, is there any reason it's been on the backlog since February ?
Attached is my attempt. Basically it moves the variables definitions of _package to _common_package, and in the loop at the end that binds package_* to _package_* I added a call to _common_package for all.
I've tested compiling linux-headers on it's own, and the package builds, and the files end up in the correct place, finally :)
I hope this is enough to get this resolved quickly.