diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-12-27 15:22:03 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-12-27 15:22:03 +0000 |
commit | e7e2b380d2ca4eaa70a011507e90bc7dc4729d58 (patch) | |
tree | b7ceed236c4360765c01079bab5150016a06306f /net-misc | |
parent | gnome-extra/seahorse-nautilus: Doesn't really need libgnome-keyring (diff) | |
download | gentoo-e7e2b380d2ca4eaa70a011507e90bc7dc4729d58.tar.gz gentoo-e7e2b380d2ca4eaa70a011507e90bc7dc4729d58.tar.bz2 gentoo-e7e2b380d2ca4eaa70a011507e90bc7dc4729d58.zip |
net-misc/r8168: Fix building 8.047.05 on Linux 5.4
Closes: https://bugs.gentoo.org/701200
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/r8168/files/linux-5.4.patch | 12 | ||||
-rw-r--r-- | net-misc/r8168/r8168-8.047.05.ebuild | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/r8168/files/linux-5.4.patch b/net-misc/r8168/files/linux-5.4.patch new file mode 100644 index 000000000000..197983597be7 --- /dev/null +++ b/net-misc/r8168/files/linux-5.4.patch @@ -0,0 +1,12 @@ +diff -Naur r8168-8.047.05.orig/src/r8168_n.c r8168-8.047.05/src/r8168_n.c +--- r8168-8.047.05.orig/src/r8168_n.c 2019-07-23 10:22:09.000000000 +0800 ++++ r8168-8.047.05/src/r8168_n.c 2019-12-23 00:55:34.121947346 +0800 +@@ -56,7 +56,7 @@ + #include <linux/rtnetlink.h> + #include <linux/completion.h> + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) && LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) + #include <linux/pci-aspm.h> + #endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37) diff --git a/net-misc/r8168/r8168-8.047.05.ebuild b/net-misc/r8168/r8168-8.047.05.ebuild index 5d05429e616c..152d2ec6ffca 100644 --- a/net-misc/r8168/r8168-8.047.05.ebuild +++ b/net-misc/r8168/r8168-8.047.05.ebuild @@ -19,6 +19,10 @@ BUILD_TARGETS="modules" CONFIG_CHECK="!R8169" ERROR_R8169="${P} requires Realtek 8169 PCI Gigabit Ethernet adapter (CONFIG_R8169) to be DISABLED" +PATCHES=( + "${FILESDIR}"/linux-5.4.patch +) + pkg_nofetch() { einfo "Please download ${SRC_URI} from:" einfo " ${HOMEPAGE}" |