[arch-commits] Commit in r8168/trunk (PKGBUILD linux517.patch)
Massimiliano Torromeo
mtorromeo at gemini.archlinux.org
Fri May 6 10:00:18 UTC 2022
Date: Friday, May 6, 2022 @ 10:00:18
Author: mtorromeo
Revision: 1195986
upgpkg: r8168 8.050.00-1
Modified:
r8168/trunk/PKGBUILD
Deleted:
r8168/trunk/linux517.patch
----------------+
PKGBUILD | 17 +++++------------
linux517.patch | 32 --------------------------------
2 files changed, 5 insertions(+), 44 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-06 09:59:08 UTC (rev 1195985)
+++ PKGBUILD 2022-05-06 10:00:18 UTC (rev 1195986)
@@ -3,8 +3,8 @@
# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
pkgname=r8168
-pkgver=8.049.02
-pkgrel=73
+pkgver=8.050.00
+pkgrel=1
pkgdesc="A kernel module for Realtek 8168 network cards"
url="http://www.realtek.com.tw"
license=("GPL")
@@ -11,18 +11,11 @@
arch=('x86_64')
makedepends=('linux-headers')
source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
- https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc
- linux517.patch)
-sha256sums=('2b12d932e976f8f74b8d9545744c04beb4676dd7bc1d032dde51347ed1d8be24'
- 'SKIP'
- '6c718137bed0f80bce52cc6862e755de7a1d0c2cbb75491ab5b099bd04534c1c')
+ https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc)
+sha256sums=('15b06890230d7c7b92635d981a6f07c4562b0b3eeb55f43b127bdfbb50dda5e1'
+ 'SKIP')
validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-prepare() {
- cd "$pkgname-$pkgver"
- patch -Np1 -i ../linux517.patch
-}
-
build() {
cd "$pkgname-$pkgver"
# avoid using the Makefile directly -- it doesn't understand
Deleted: linux517.patch
===================================================================
--- linux517.patch 2022-05-06 09:59:08 UTC (rev 1195985)
+++ linux517.patch 2022-05-06 10:00:18 UTC (rev 1195986)
@@ -1,32 +0,0 @@
-diff -u -r r8168-8.049.02/src/r8168_n.c r8168-8.049.02-linux517/src/r8168_n.c
---- r8168-8.049.02/src/r8168_n.c 2021-07-05 08:30:48.000000000 +0000
-+++ r8168-8.049.02-linux517/src/r8168_n.c 2022-03-23 00:32:48.392881125 +0000
-@@ -1733,7 +1733,7 @@
- static int rtl8168_proc_open(struct inode *inode, struct file *file)
- {
- struct net_device *dev = proc_get_parent_data(inode);
-- int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
-+ int (*show)(struct seq_file *, void *) = pde_data(inode);
-
- return single_open(file, show, dev);
- }
-@@ -24061,6 +24061,7 @@
- struct rtl8168_private *tp = netdev_priv(dev);
- int i;
- u8 mac_addr[MAC_ADDR_LEN];
-+ u8 addr[ETH_ALEN];
-
- for (i = 0; i < MAC_ADDR_LEN; i++)
- mac_addr[i] = RTL_R8(tp, MAC0 + i);
-@@ -24129,9 +24130,10 @@
- rtl8168_rar_set(tp, mac_addr);
-
- for (i = 0; i < MAC_ADDR_LEN; i++) {
-- dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
-+ addr[i] = RTL_R8(tp, MAC0 + i);
- tp->org_mac_addr[i] = dev->dev_addr[i]; /* keep the original MAC address */
- }
-+ eth_hw_addr_set(dev, addr);
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13)
- memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
- #endif
More information about the arch-commits
mailing list