It's user's fault not reading about DKMS packages in wiki, not a packaging problem.
Also DKMS package guidelines explicitly states:
Do not include
linux-headers
– or any other Linux header package – to the PKGBUILD.
Git Clone URL: | https://aur.archlinux.org/it87-dkms-git.git (read-only, click to copy) |
---|---|
Package Base: | it87-dkms-git |
Description: | Linux Driver for ITE LPC chips |
Upstream URL: | https://github.com/frankcrawford/it87 |
Keywords: | driver IT87 sensor thermal |
Licenses: | GPL |
Conflicts: | it87-frankcrawford-dkms-git |
Provides: | it87 |
Submitter: | codeworkx |
Maintainer: | codebling |
Last Packager: | codebling |
Votes: | 40 |
Popularity: | 0.065424 |
First Submitted: | 2017-03-30 17:34 (UTC) |
Last Updated: | 2020-11-30 21:00 (UTC) |
It's user's fault not reading about DKMS packages in wiki, not a packaging problem.
Also DKMS package guidelines explicitly states:
Do not include
linux-headers
– or any other Linux header package – to the PKGBUILD.
@vincent.ducamps I can't add headers as a dependency for this package because it depends on what kernel is being used, e.g. linux
, linux-lts
, linux-rt
, linux-zen
, etc. Glad you figured it out, though
Ok don't have linux header installed...
Hi
I have following error during package isntalation
2/3) Install DKMS modules
==> ERROR: Missing proc kernel headers for module it87/239.e252201.
==> ERROR: Missing usr kernel headers for module it87/239.e252201.
==> ERROR: Missing bin kernel headers for module it87/239.e252201.
==> ERROR: Missing sys kernel headers for module it87/239.e252201.
==> ERROR: Missing var kernel headers for module it87/239.e252201.
==> ERROR: Missing home kernel headers for module it87/239.e252201.
==> ERROR: Missing sbin kernel headers for module it87/239.e252201.
==> ERROR: Missing opt kernel headers for module it87/239.e252201.
==> ERROR: Missing lib kernel headers for module it87/239.e252201.
==> ERROR: Missing etc kernel headers for module it87/239.e252201.
==> ERROR: Missing dev kernel headers for module it87/239.e252201.
==> ERROR: Missing root kernel headers for module it87/239.e252201.
==> ERROR: Missing run kernel headers for module it87/239.e252201.
==> ERROR: Missing boot kernel headers for module it87/239.e252201.
==> ERROR: Missing mnt kernel headers for module it87/239.e252201.
==> ERROR: Missing exports kernel headers for module it87/239.e252201.
==> ERROR: Missing lib64 kernel headers for module it87/239.e252201.
==> ERROR: Missing srv kernel headers for module it87/239.e252201.
==> ERROR: Missing tmp kernel headers for module it87/239.e252201.
==> ERROR: Missing data kernel headers for module it87/239.e252201.
(3/3) Updating linux initcpios...
somebody know how to fix them?
Building on the work @Hanabishi started, I cleaned up the PKGBUILD a bit.
/usr/share/it87/configs/
https://gist.github.com/graysky2/5ccfa210942138570902afa4e621ba36
I get an error when running DKMS operations, until I delete /var/lib/dkms/it87
and reinstall this package. Do you know how to fix the package to not do this?
nyanpasu64@ryzen ~> dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/it87/227.307d74a/source/dkms.conf does not exist.
If someone has ASUS PRIME B450-PLUS, please test out this pull request.
This package can be improved.
dkms.conf
, compat.h
, it87.c
, Makefile
.it87.conf
is not needed because the same exact configuration is already provided by kmod
.Sensors configs
should be placed into /etc/conf.d/lm_sensors
or else they are useless.Research
should be placed into /usr/share/doc/${pkgname}
according to packaging guidelines.Here are changes I suggest (patch for git apply
):
diff --git a/.SRCINFO b/.SRCINFO
index 595cdc2..6a5a602 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = it87-dkms-git
pkgdesc = Linux Driver for ITE LPC chips
- pkgver = 152.2b8b4fe
- pkgrel = 3
+ pkgver = 229.74e5fba
+ pkgrel = 1
url = https://github.com/frankcrawford/it87
arch = x86_64
arch = i686
@@ -12,10 +12,7 @@ pkgbase = it87-dkms-git
conflicts = it87-frankcrawford-dkms-git
source = it87::git+https://github.com/frankcrawford/it87.git
source = dkms.conf
- source = it87.conf
sha256sums = SKIP
sha256sums = f325b751c8a81416a75c2c1e7a7bc9ca46ae0fa3b44d4ccc09593274be1b2dc7
- sha256sums = acdc488d1505e891ed6259b29428d4b27d26d18e3ea170f017b930390d6420e7
pkgname = it87-dkms-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 6345de7..50b9733 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
_pkgbase=it87
pkgname=it87-dkms-git
-pkgver=152.2b8b4fe
-pkgrel=3
+pkgver=229.74e5fba
+pkgrel=1
pkgdesc="Linux Driver for ITE LPC chips"
arch=('x86_64' 'i686')
url="https://github.com/frankcrawford/it87"
@@ -14,12 +14,10 @@ provides=('it87')
conflicts=('it87-frankcrawford-dkms-git')
source=("$_pkgbase::git+https://github.com/frankcrawford/it87.git"
- "dkms.conf"
- "it87.conf")
+ "dkms.conf")
sha256sums=('SKIP'
- 'f325b751c8a81416a75c2c1e7a7bc9ca46ae0fa3b44d4ccc09593274be1b2dc7'
- 'acdc488d1505e891ed6259b29428d4b27d26d18e3ea170f017b930390d6420e7')
+ 'f325b751c8a81416a75c2c1e7a7bc9ca46ae0fa3b44d4ccc09593274be1b2dc7')
pkgver() {
cd "$srcdir/$_pkgbase"
@@ -34,13 +32,15 @@ package() {
cd "$srcdir/$_pkgbase"
install -d "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
- cp -r ${srcdir}/${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
- install -Dm644 ${srcdir}/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+ install -Dm644 "${srcdir}"/dkms.conf 'compat.h' 'it87.c' 'Makefile' -t "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
- install -Dm644 ${srcdir}/it87.conf "${pkgdir}"/usr/lib/depmod.d/it87.conf
+ install -Dm644 'Sensors configs'/* -t "${pkgdir}"/etc/conf.d/lm_sensors
+
+ install -Dm644 'README' 'ISSUES' -t "${pkgdir}"/usr/share/doc/${pkgname}
+ cp -rd 'Research' -t "${pkgdir}"/usr/share/doc/${pkgname}
}
diff --git a/it87.conf b/it87.conf
deleted file mode 100644
index 59f0bb1..0000000
--- a/it87.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-#
-# /usr/lib/depmod.d/it87.conf
-#
-
-search updates extramodules built-in
Is this driver ever going to be part of the kernel?
@anonfunc
Sorry, I should have ALSO thanked you, I didn't realise that it was you that recommended modifying the grub loader.
Pinned Comments
codebling commented on 2021-02-21 09:06 (UTC)
TL;DR for those running
linux
5.11 - you need to install thepahole
package if this package won't build. (see comments below for more details)codebling commented on 2020-10-23 15:36 (UTC)
I've updated this package to use the frankcrawford (most developed fork) upstream and am removing the
it87-frankcrawford-dkms-git
package.If you find another repo on GitHub that is more up to date, please comment.