FS#52901 - [dkms] figure out dependencies in alpm hook
Attached to Project:
Arch Linux
Opened by Jianfeng Zhang (swordfeng) - Wednesday, 08 February 2017, 14:37 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 26 October 2018, 13:59 GMT
Opened by Jianfeng Zhang (swordfeng) - Wednesday, 08 February 2017, 14:37 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 26 October 2018, 13:59 GMT
|
Details
The current alpm hook in the package will not check if one
dkms module depends on another, so some modules fail to
build.
Version: dkms 2.3-2 How to reproduce: Install spl-dkms-git, zfs-dkms-git from AUR, zfs depends on spl. When each time the hook is invoked (like upgrading the kernel), zfs is compiled before spl and triggers an error. I think the hook may check the "BUILD_DEPENDS" field in the dkms.conf (the description can be found in `man dkms`). |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Friday, 26 October 2018, 13:59 GMT
Reason for closing: Implemented
Additional comments about closing: dkms-2.5-2
Friday, 26 October 2018, 13:59 GMT
Reason for closing: Implemented
Additional comments about closing: dkms-2.5-2
Note: this patch may need further test
I feel sorry that I'm not familiar with bash programming, and I hope someone can help to improve it...
Feel free to take it.
Also, I have mentioned the package in the wiki [1] [2] to encourage more people to test it. (Will remove the note once the patch is integrated into dkms proper.)
[1]: https://wiki.archlinux.org/index.php/ZFS#DKMS
[2]: https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support#Upgrades
The {zfs,spl}-dkms-git updated quite often (85 times on my machine) during this period and there was no issues.
Really hope this patch can make it into dkms package.
In my opinion, this is going to make ZFS users’ lives a lot easier.
@Sébastien What needs to be done to get this patch merged?
What are your thoughts on utilizing these changes?
https://aur.archlinux.org/cgit/aur.git/tree/alpm-hook?h=dkms-sorted
So, it requires more changes, that's why I put it back a year ago. But the feature make sense, I'm on it.
Basically those herestrings are unnecessary.