[packages/rtl8812au] - rebase on fresh git repo

baggins baggins at pld-linux.org
Tue May 28 01:48:50 CEST 2024


commit 2dc0cae41554c51533e37dca098a1c7da0cdad8e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon May 27 23:50:52 2024 +0200

    - rebase on fresh git repo

 kernel-strcpy.patch | 33 ---------------------------------
 rtl8812au.spec      | 14 +++++++-------
 2 files changed, 7 insertions(+), 40 deletions(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 64d8add..63bcff2 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -6,8 +6,8 @@
 %define		_enable_debug_packages	0
 
 %define		rel	1
-%define		basever	20210629
-%define		snap	20240317
+%define		basever	20210820
+%define		snap	20240527
 %define		pname	rtl8812au
 Summary:	Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
 Name:		%{pname}%{_alt_kernel}
@@ -16,10 +16,11 @@ Epoch:		2
 Release:	%{rel}%{?_pld_builder:@%{_kernel_ver_str}}
 License:	GPL
 Group:		Base/Kernel
-Source0:	https://github.com/morrownr/8812au-%{basever}/archive/main/%{pname}-%{version}.tar.gz
-# Source0-md5:	deb0f6c9ca3f28ecd8b8f7a1ae2cf1dc
+# Source0:	https://github.com/morrownr/8812au-%{basever}/archive/main/%{pname}-%{version}.tar.gz
+# git repo without huge blobs with Android SDKs under docs/
+Source0:	%{pname}-%{version}.tar.xz
+# Source0-md5:	a4986d1bd51a7447dc240eb4eefaad27
 Patch0:		no-arch-override.patch
-Patch1:		kernel-strcpy.patch
 # good luck finding this chip on Realtek website :/
 #URL:		http://www.realtek.com.tw/
 URL:		https://github.com/morrownr/8812au
@@ -63,9 +64,8 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 %{expand:%create_kernel_packages}
 
 %prep
-%setup -q -n 8812au-%{basever}-main
+%setup -q -n 8812au-%{basever}
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{expand:%build_kernel_packages}
diff --git a/kernel-strcpy.patch b/kernel-strcpy.patch
deleted file mode 100644
index f94cbe7..0000000
--- a/kernel-strcpy.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -ur 8812au-20210629-main/os_dep/linux/os_intfs.c 8812au-20210629-main.strcpy/os_dep/linux/os_intfs.c
---- 8812au-20210629-main/os_dep/linux/os_intfs.c	2023-12-22 22:32:11.000000000 +0100
-+++ 8812au-20210629-main.strcpy/os_dep/linux/os_intfs.c	2024-03-17 00:17:00.481064694 +0100
-@@ -2056,13 +2056,13 @@
- 
- 	wdev = dev->ieee80211_ptr;
- 	if (wdev) {
--		strlcpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name,
-+		strscpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name,
- 			sizeof(info->driver));
- 	} else {
--		strlcpy(info->driver, "N/A", sizeof(info->driver));
-+		strscpy(info->driver, "N/A", sizeof(info->driver));
- 	}
- 
--	strlcpy(info->version, DRIVERVERSION, sizeof(info->version));
-+	strscpy(info->version, DRIVERVERSION, sizeof(info->version));
- 
- 	padapter = (_adapter *)rtw_netdev_priv(dev);
- 	if (padapter) {
-@@ -2073,10 +2073,10 @@
- 		scnprintf(info->fw_version, sizeof(info->fw_version), "%d.%d",
- 			  hal_data->firmware_version, hal_data->firmware_sub_version);
- 	} else {
--		strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
-+		strscpy(info->fw_version, "N/A", sizeof(info->fw_version));
- 	}
- 
--	strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)),
-+	strscpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)),
- 		sizeof(info->bus_info));
- }
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/2dc0cae41554c51533e37dca098a1c7da0cdad8e



More information about the pld-cvs-commit mailing list