diff options
author | BarbUk | 2023-08-01 08:59:30 +0200 |
---|---|---|
committer | BarbUk | 2023-08-01 08:59:30 +0200 |
commit | 67d68b94c194a0062b78a7998005a53729b4fa31 (patch) | |
tree | 5b89c18c11350a2659bc97d2c90933c6085b7107 | |
parent | 6b0e512f1998f42a9b6f07fc337d01c713706894 (diff) | |
download | aur-67d68b94c194a0062b78a7998005a53729b4fa31.tar.gz |
Bump to 0.44
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | kbase.patch | 11 | ||||
-rw-r--r-- | update_define_semaphore_usage_for_linux_6.4.patch | 45 |
4 files changed, 10 insertions, 78 deletions
@@ -1,21 +1,17 @@ pkgbase = tp_smapi-dkms pkgdesc = DKMS controlled modules for ThinkPad's SMAPI functionality - pkgver = 0.43 - pkgrel = 6 + pkgver = 0.44 + pkgrel = 1 url = http://www.thinkwiki.org/wiki/Tp_smapi arch = any license = GPL depends = dkms - provides = tp_smapi=0.43 + provides = tp_smapi=0.44 conflicts = tp_smapi options = !strip - source = https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi%2F0.43/tp_smapi-0.43.tgz + source = https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi%2F0.44/tp_smapi-0.44.tgz source = dkms.conf - source = kbase.patch - source = update_define_semaphore_usage_for_linux_6.4.patch - sha256sums = bcef9cd045d52a74d719b2a67ac4f5324994a856f123c0fbc55f1d769d367110 + sha256sums = cccff96e8994bfc9dfe2bec071c4dfb6baf060f988bc338bbab95e639fd4c126 sha256sums = 43aa280c078fc5ba0ee229b9c71238e215313315711f3d3caae7b9bd0ab24dbe - sha256sums = 4bcce516a9f3c486a934cfe6e3d3c92443833f4094ec008ce25264d1a5b66097 - sha256sums = 24db4ff35d20c488582178ab2aa4d7d96c6125eaff95588be7e900a069df3ca9 pkgname = tp_smapi-dkms @@ -1,6 +1,6 @@ pkgname=tp_smapi-dkms -pkgver=0.43 -pkgrel=6 +pkgver=0.44 +pkgrel=1 pkgdesc="DKMS controlled modules for ThinkPad's SMAPI functionality" arch=(any) url="http://www.thinkwiki.org/wiki/Tp_smapi" @@ -10,20 +10,12 @@ conflicts=('tp_smapi') provides=("tp_smapi=${pkgver}") options=(!strip) source=("https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi%2F${pkgver}/tp_smapi-${pkgver}.tgz" - 'dkms.conf' - 'kbase.patch' - 'update_define_semaphore_usage_for_linux_6.4.patch') -sha256sums=('bcef9cd045d52a74d719b2a67ac4f5324994a856f123c0fbc55f1d769d367110' - '43aa280c078fc5ba0ee229b9c71238e215313315711f3d3caae7b9bd0ab24dbe' - '4bcce516a9f3c486a934cfe6e3d3c92443833f4094ec008ce25264d1a5b66097' - '24db4ff35d20c488582178ab2aa4d7d96c6125eaff95588be7e900a069df3ca9') + 'dkms.conf') +sha256sums=('cccff96e8994bfc9dfe2bec071c4dfb6baf060f988bc338bbab95e639fd4c126' + '43aa280c078fc5ba0ee229b9c71238e215313315711f3d3caae7b9bd0ab24dbe') prepare() { cd tp_smapi-${pkgver} - # patch Makefile for recent kernel module directory change - patch -p2 < "${srcdir}"/kbase.patch - # Patch for recent kernel - patch -p1 < "${srcdir}"/update_define_semaphore_usage_for_linux_6.4.patch msg2 "Patching dkms.conf" sed -ri 's/^(PACKAGE_VERSION=).*/\1'${pkgver}'/g' "${srcdir}"/dkms.conf } diff --git a/kbase.patch b/kbase.patch deleted file mode 100644 index 4cc8aabd92d6..000000000000 --- a/kbase.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/tp_smapi-master/Makefile -+++ b/tp_smapi-master/Makefile -@@ -2,7 +2,7 @@ - # This part runs as a normal, top-level Makefile: - X:=$(shell false) - KVER ?= $(shell uname -r) --KBASE ?= /lib/modules/$(KVER) -+KBASE ?= /usr/lib/modules/$(KVER) - KSRC ?= $(KBASE)/source - KBUILD ?= $(KBASE)/build - MOD_DIR ?= $(KBASE)/kernel diff --git a/update_define_semaphore_usage_for_linux_6.4.patch b/update_define_semaphore_usage_for_linux_6.4.patch deleted file mode 100644 index 4ff1facca07f..000000000000 --- a/update_define_semaphore_usage_for_linux_6.4.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 0c3398b1acf2a2cabd9cee91dc3fe3d35805fa8b Mon Sep 17 00:00:00 2001 -From: Evgeni Golov <evgeni@golov.de> -Date: Fri, 16 Jun 2023 18:13:54 +0200 -Subject: [PATCH] update DEFINE_SEMAPHORE usage for linux 6.4+ - -Linux changed the DEFINE_SEMAPHORE macro in -48380368dec14859723b9e3fbd43e042638d9a76, making it take two parameters -instead of one. Pass an explicit 1 as on 6.4+. ---- - thinkpad_ec.c | 4 +++- - tp_smapi.c | 4 +++- - 2 files changed, 6 insertions(+), 2 deletions(-) - -diff --git a/thinkpad_ec.c b/thinkpad_ec.c -index a8e812f..62ef5ca 100644 ---- a/thinkpad_ec.c -+++ b/thinkpad_ec.c -@@ -90,8 +90,10 @@ static u64 prefetch_jiffies; /* time of prefetch, or: */ - /* Locking: */ - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) - static DECLARE_MUTEX(thinkpad_ec_mutex); --#else -+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0) - static DEFINE_SEMAPHORE(thinkpad_ec_mutex); -+#else -+static DEFINE_SEMAPHORE(thinkpad_ec_mutex, 1); - #endif - - /* Kludge in case the ACPI DSDT reserves the ports we need. */ -diff --git a/tp_smapi.c b/tp_smapi.c -index 6346287..9feebab 100644 ---- a/tp_smapi.c -+++ b/tp_smapi.c -@@ -111,8 +111,10 @@ static unsigned short smapi_port; /* APM control port, normally 0xB2 */ - - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) - static DECLARE_MUTEX(smapi_mutex); --#else -+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0) - static DEFINE_SEMAPHORE(smapi_mutex); -+#else -+static DEFINE_SEMAPHORE(smapi_mutex, 1); - #endif - - /** |