Github messages for voidlinux
 help / color / mirror / Atom feed
From: unspecd <unspecd@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] dkms: update to 3.0.3
Date: Thu, 13 Jan 2022 08:01:45 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35026@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]

There is a new pull request by unspecd against master on the void-packages repository

https://github.com/unspecd/void-packages pkg/dkms
https://github.com/void-linux/void-packages/pull/35026

dkms: update to 3.0.3
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - ppc64le-musl


A patch file from https://github.com/void-linux/void-packages/pull/35026.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/dkms-35026.patch --]
[-- Type: text/x-diff, Size: 9940 bytes --]

From 2d187ea5792797703091c973193614437868da37 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Thu, 13 Jan 2022 14:42:57 +1100
Subject: [PATCH 1/5] dkms: update to 3.0.3.

---
 srcpkgs/dkms/files/kernel.d/dkms.prerm |  6 +++---
 srcpkgs/dkms/patches/fix-test.patch    | 11 ++++++++++
 srcpkgs/dkms/template                  | 28 +++++++++++++++++---------
 3 files changed, 33 insertions(+), 12 deletions(-)
 mode change 100644 => 100755 srcpkgs/dkms/files/kernel.d/dkms.prerm
 create mode 100644 srcpkgs/dkms/patches/fix-test.patch

diff --git a/srcpkgs/dkms/files/kernel.d/dkms.prerm b/srcpkgs/dkms/files/kernel.d/dkms.prerm
old mode 100644
new mode 100755
index 155e9734aee2..2fa327b57934
--- a/srcpkgs/dkms/files/kernel.d/dkms.prerm
+++ b/srcpkgs/dkms/files/kernel.d/dkms.prerm
@@ -6,9 +6,9 @@ VERSION="$2"
 
 if [ -x /usr/bin/dkms ]; then
 while read line; do
-   name=`echo "$line" | awk '{print $1}' | sed 's/,$//'`
-   vers=`echo "$line" | awk '{print $2}' | sed 's/,$//'`
-   arch=`echo "$line" | awk '{print $4}' | sed 's/:$//'`
+   name=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f1`
+   vers=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f2`
+   arch=`echo "$line" | awk '{print $3}' | sed 's/:$//'`
    echo "dkms: removing: $name $vers (${PKGNAME}-${VERSION}) ($arch)" >&2
    /usr/bin/dkms remove -q -m $name -v $vers -k ${VERSION} -a $arch
 done < <(/usr/bin/dkms status -k ${VERSION} 2>/dev/null | grep ": installed")
diff --git a/srcpkgs/dkms/patches/fix-test.patch b/srcpkgs/dkms/patches/fix-test.patch
new file mode 100644
index 000000000000..c5783492ac84
--- /dev/null
+++ b/srcpkgs/dkms/patches/fix-test.patch
@@ -0,0 +1,11 @@
+--- a/run_test.sh
++++ b/run_test.sh
+@@ -98,4 +98,8 @@
+     alpine)
+         expected_dest_loc=kernel/extra
+         ;;
++    void)
++        expected_dest_loc=kernel/extra
++        mod_compression_ext=.gz
++        ;;
+     *)
diff --git a/srcpkgs/dkms/template b/srcpkgs/dkms/template
index 32b0211981f8..2635cbfd484d 100644
--- a/srcpkgs/dkms/template
+++ b/srcpkgs/dkms/template
@@ -1,15 +1,16 @@
 # Template file for 'dkms'
 pkgname=dkms
-version=2.8.4
-revision=2
+version=3.0.3
+revision=1
 conf_files="/etc/dkms/framework.conf"
 depends="bash kmod gcc make coreutils"
+checkdepends="linux-headers runit-void"
 short_desc="Dynamic Kernel Modules System"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="https://github.com/dell/dkms"
 distfiles="${homepage}/archive/v${version}.tar.gz"
-checksum=540912bf0d845ac333f6971a3ccb80911c770a042af1b30ffbb9b420ac979af3
+checksum=89e57cf90298f020646a5fa61d11983406631486b9f5591bb9da9465ee969f3d
 
 case "$XBPS_TARGET_MACHINE" in
 	# Too many competing kernels for arm* to depend on linux-headers
@@ -21,13 +22,22 @@ if [ "$CROSS_BUILD" ]; then
 	depends+=" openssl-devel gmp-devel libada-devel libmpc-devel flex"
 fi
 
+do_build() {
+	make dkms
+}
+
+do_check() {
+	if [ $(id -u) = 0 ]; then
+		./run_test.sh
+	fi
+}
+
 do_install() {
-	# We are only interested in the bare minimum.
-	vbin dkms
-	vman dkms.8
-	vinstall dkms_dbversion 644 var/lib/dkms
-	vcompletion dkms.bash-completion bash dkms
-	vinstall dkms_framework.conf 644 etc/dkms framework.conf
+ 	# We are only interested in the bare minimum.
+	make DESTDIR=${DESTDIR} SBIN=${DESTDIR}/usr/bin install
+	rm    ${DESTDIR}/etc/dkms/sign_helper.sh
+	rm -r ${DESTDIR}/etc/kernel
+	rm -r ${DESTDIR}/usr/lib
 	# Kernel hooks.
 	vinstall ${FILESDIR}/kernel.d/dkms.postinst 754 etc/kernel.d/post-install 10-dkms
 	vinstall ${FILESDIR}/kernel.d/dkms.prerm 754 etc/kernel.d/pre-remove 10-dkms

From 3c2f829d75d3c2fb1d50f71188bac0a369d25c5a Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Thu, 13 Jan 2022 16:39:18 +1100
Subject: [PATCH 2/5] xbps-triggers: update for dkms-3.0.3

---
 srcpkgs/xbps-triggers/files/dkms | 4 ++--
 srcpkgs/xbps-triggers/template   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/xbps-triggers/files/dkms b/srcpkgs/xbps-triggers/files/dkms
index fcd64efd0301..961aa641bad2 100755
--- a/srcpkgs/xbps-triggers/files/dkms
+++ b/srcpkgs/xbps-triggers/files/dkms
@@ -30,8 +30,8 @@ remove_modules() {
 			if $(echo "$line" | egrep -vq '(added|built|installed)'); then
 				shift 2; continue
 			fi
-			_modver=$(echo "$line"|sed "s/$1,[[:blank:]]\([^,]*\)[,:].*/\1/;t;d")
-			_kver=$(echo "$line"|awk '{print $3}'|sed "s/\(.*\),$/\1/")
+			_modver=$(echo "$line"|sed "s/[^/]*\/\([^\,]*\).*/\1/")
+			_kver=$(echo "$line"|awk '{print $2}'|sed "s/\(.*\),$/\1/")
 			echo -n "Removing DKMS module '${1}-${_modver}' for kernel-${_kver}... "
 			$DKMS remove -m "$1" -v "${_modver}" -k "${_kver}" >/dev/null 2>&1
 			if [ $? -eq 0 ]; then
diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template
index 5de97d53c210..b1e4f34a4dde 100644
--- a/srcpkgs/xbps-triggers/template
+++ b/srcpkgs/xbps-triggers/template
@@ -1,6 +1,6 @@
 # Template file for 'xbps-triggers'
 pkgname=xbps-triggers
-version=0.121
+version=0.122
 revision=1
 bootstrap=yes
 short_desc="XBPS triggers for Void Linux"

From 9392df0bec84467bd86d3423864637b0fad3d884 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Thu, 13 Jan 2022 14:45:35 +1100
Subject: [PATCH 3/5] broadcom-wl-dkms: update for dkms-3.0.3

---
 srcpkgs/broadcom-wl-dkms/files/dkms.conf |  1 -
 srcpkgs/broadcom-wl-dkms/template        | 16 ++++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/broadcom-wl-dkms/files/dkms.conf b/srcpkgs/broadcom-wl-dkms/files/dkms.conf
index a6219f4c89b8..96acd0dc2092 100644
--- a/srcpkgs/broadcom-wl-dkms/files/dkms.conf
+++ b/srcpkgs/broadcom-wl-dkms/files/dkms.conf
@@ -3,4 +3,3 @@ PACKAGE_VERSION="@VERSION@"
 BUILT_MODULE_NAME[0]="wl"
 DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
 AUTOINSTALL="yes"
-REMAKE_INITRD="yes"
diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template
index 55bc9c0e1d36..ffa4ae538524 100644
--- a/srcpkgs/broadcom-wl-dkms/template
+++ b/srcpkgs/broadcom-wl-dkms/template
@@ -1,19 +1,19 @@
 # Template file for 'broadcom-wl-dkms'
-
 pkgname=broadcom-wl-dkms
 version=6.30.223.271
-revision=11
+revision=12
+archs="i686* x86_64*"
+create_wrksrc=yes
+depends="dkms"
+short_desc="Broadcom proprietary wireless drivers for Linux - DKMS kernel module"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom:Proprietary Broadcom license"
 homepage="http://broadcom.com"
-
-archs="i686* x86_64*"
 repository="nonfree"
-create_wrksrc=yes
-
-short_desc="Broadcom proprietary wireless drivers for Linux - DKMS kernel module"
+patch_args="-lNp1"
+# dkms must be before initramfs-regenerate to build modules before images
+triggers="dkms initramfs-regenerate"
 dkms_modules="wl ${version}"
-depends="dkms"
 
 case "$XBPS_TARGET_MACHINE" in
 i686*)

From 44cbcf87e0feb360d5ce792b35faa52c09274675 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Thu, 13 Jan 2022 14:48:57 +1100
Subject: [PATCH 4/5] rtl8822bu-dkms: update for dkms-3.0.3

---
 srcpkgs/rtl8822bu-dkms/files/dkms.conf | 1 -
 srcpkgs/rtl8822bu-dkms/template        | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/rtl8822bu-dkms/files/dkms.conf b/srcpkgs/rtl8822bu-dkms/files/dkms.conf
index 3156be8132bc..243a32dbebca 100644
--- a/srcpkgs/rtl8822bu-dkms/files/dkms.conf
+++ b/srcpkgs/rtl8822bu-dkms/files/dkms.conf
@@ -8,4 +8,3 @@ KSRC=/lib/modules/${kernelver}/build"
 CLEAN="make clean"
 DEST_MODULE_LOCATION="/kernel/drivers/net/wireless"
 AUTOINSTALL="yes"
-REMAKE_INITRD=no
diff --git a/srcpkgs/rtl8822bu-dkms/template b/srcpkgs/rtl8822bu-dkms/template
index 548d0b6299cd..61b92f58464d 100644
--- a/srcpkgs/rtl8822bu-dkms/template
+++ b/srcpkgs/rtl8822bu-dkms/template
@@ -1,7 +1,7 @@
 # Template file for 'rtl8822bu-dkms'
 pkgname=rtl8822bu-dkms
 version=20201222
-revision=1
+revision=2
 _gitrev=fcfd4ecca1512d4cd2db4aa91679576d2a5ab8eb
 wrksrc="rtl8822bu-${_gitrev}"
 depends="dkms"

From ec659047be8bbd1048e0b4626a0f771c4b14ae80 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Thu, 13 Jan 2022 17:03:01 +1100
Subject: [PATCH 5/5] v4l2loopback: update for dkms-3.0.3

---
 .../patches/dkms-remove-option.patch          | 23 +++++++++++++++++++
 srcpkgs/v4l2loopback/template                 |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/v4l2loopback/patches/dkms-remove-option.patch

diff --git a/srcpkgs/v4l2loopback/patches/dkms-remove-option.patch b/srcpkgs/v4l2loopback/patches/dkms-remove-option.patch
new file mode 100644
index 000000000000..9c267ae30ecc
--- /dev/null
+++ b/srcpkgs/v4l2loopback/patches/dkms-remove-option.patch
@@ -0,0 +1,23 @@
+From edf0f10bc079e5e3922bddbb8185dc626ab14a1b Mon Sep 17 00:00:00 2001
+From: Emil Velikov <emil.l.velikov@gmail.com>
+Date: Sun, 10 Oct 2021 12:28:16 +0100
+Subject: [PATCH] dkms.conf: remove REMAKE_INITRD option
+
+The default state of the option is no - so let's just remove it.
+This aligns with my plan of deprecating the option in upstream dkms.
+
+Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
+---
+ dkms.conf | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/dkms.conf b/dkms.conf
+index 4e916fc..b1a0069 100644
+--- a/dkms.conf
++++ b/dkms.conf
+@@ -8,5 +8,4 @@ CLEAN="make clean"
+ BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
+ DEST_MODULE_LOCATION[0]="/extra"
+ 
+-REMAKE_INITRD="no"
+ AUTOINSTALL="yes"
diff --git a/srcpkgs/v4l2loopback/template b/srcpkgs/v4l2loopback/template
index 69cf47b863b0..488abce25d6c 100644
--- a/srcpkgs/v4l2loopback/template
+++ b/srcpkgs/v4l2loopback/template
@@ -1,7 +1,7 @@
 # Template file for 'v4l2loopback'
 pkgname=v4l2loopback
 version=0.12.5
-revision=1
+revision=2
 hostmakedepends="help2man"
 depends="dkms"
 short_desc="Kernel module to create V4L2 loopback devices"

             reply	other threads:[~2022-01-13  7:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13  7:01 unspecd [this message]
2022-01-13  7:05 ` [PR PATCH] [Updated] " unspecd
2022-01-13  7:10 ` unspecd
2022-01-16 21:02 ` unspecd
2022-01-17  8:48 ` [PR REVIEW] " ericonr
2022-01-17  8:49 ` ericonr
2022-01-17  8:59 ` unspecd
2022-01-18 11:13 ` [PR PATCH] [Updated] " unspecd
2022-01-18 11:51 ` [PR REVIEW] " unspecd
2022-01-18 19:13 ` ericonr
2022-01-22  7:54 ` [PR PATCH] [Updated] " unspecd
2022-01-22  7:55 ` unspecd
2022-05-05 23:08 ` unspecd
2022-05-15 20:16 ` unspecd
2022-05-15 20:16 ` [PR PATCH] [Closed]: " unspecd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35026@inbox.vuxu.org \
    --to=unspecd@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    --subject='Re: [PR PATCH] dkms: update to 3.0.3' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).