Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Evangelos Foutras <foutrelis-GZBXbt3/gFZ933uMFH4r/qE8fWGo1RhJ <at> public.gmane.org>
Subject: Commit in r8168/trunk (PKGBUILD linux-3.8.patch r8168.install)
Newsgroups: gmane.linux.arch.scm
Date: Thursday 21st February 2013 01:33:26 UTC (over 4 years ago)
Date: Thursday, February 21, 2013 @ 02:33:26
  Author: foutrelis
Revision: 84634

upgpkg: r8168 8.035.00-5

Linux 3.8 rebuild.

Added:
  r8168/trunk/linux-3.8.patch
Modified:
  r8168/trunk/PKGBUILD
  r8168/trunk/r8168.install

-----------------+
 PKGBUILD        |   10 +++++++---
 linux-3.8.patch |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 r8168.install   |    2 +-
 3 files changed, 56 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-21 01:33:19 UTC (rev 84633)
+++ PKGBUILD	2013-02-21 01:33:26 UTC (rev 84634)
@@ -5,14 +5,15 @@
 
 pkgname=r8168
 pkgver=8.035.00
-pkgrel=4
+pkgrel=5
 pkgdesc="A kernel module for Realtek 8168 network cards"
 url="http://www.realtek.com.tw"
 license=("GPL")
 arch=('i686' 'x86_64')
 depends=('glibc' 'linux')
 makedepends=('linux-headers')
-source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+        linux-3.8.patch)
 install=$pkgname.install
 
 build() {
@@ -21,6 +22,8 @@
 
 	cd "$pkgname-$pkgver"
 
+	patch -Np1 -i "$srcdir/linux-3.8.patch"
+
 	# avoid using the Makefile directly -- it doesn't understand
 	# any kernel but the current.
 	make -C /usr/lib/modules/$KERNEL_RELEASE/build \
@@ -42,4 +45,5 @@
 	sed -i "s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH|"
"$startdir/$pkgname.install"
 }
 
-sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73')
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+           
'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Added: linux-3.8.patch
===================================================================
--- linux-3.8.patch	                        (rev 0)
+++ linux-3.8.patch	2013-02-21 01:33:26 UTC (rev 84634)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c	2013-02-21 03:31:04.000000000 +0200
++++ r8168-8.035.00/src/r8168_n.c	2013-02-21 03:31:56.000000000 +0200
[email protected]@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+ 	spin_unlock_irqrestore(&tp->phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+ 		   struct net_device **dev_out,
+ 		   void __iomem **ioaddr_out)
[email protected]@ -14711,7 +14711,7 @@ err_out:
+ 	goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+ 	void __iomem *ioaddr = tp->mmio_addr;
[email protected]@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+ 		 const struct pci_device_id *ent)
+ {
[email protected]@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+ 	return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+ 	struct net_device *dev = pci_get_drvdata(pdev);
[email protected]@ -17649,7 +17649,7 @@ static struct pci_driver rtl8168_pci_dri
+ 	.name		= MODULENAME,
+ 	.id_table	= rtl8168_pci_tbl,
+ 	.probe		= rtl8168_init_one,
+-	.remove		= __devexit_p(rtl8168_remove_one),
++	.remove		= rtl8168_remove_one,
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,11)
+ 	.shutdown	= rtl8168_shutdown,
+ #endif

Modified: r8168.install
===================================================================
--- r8168.install	2013-02-21 01:33:19 UTC (rev 84633)
+++ r8168.install	2013-02-21 01:33:26 UTC (rev 84634)
@@ -1,5 +1,5 @@
 rebuild_module_dependencies() {
-	EXTRAMODULES='extramodules-3.7-ARCH'
+	EXTRAMODULES='extramodules-3.8-ARCH'
 	depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
 }
 
CD: 3ms