Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398133 - net-misc/r8168: kernel 3.2 support (trivial patch included)
Summary: net-misc/r8168: kernel 3.2 support (trivial patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Birchinger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-08 09:39 UTC by Nikos Chantziaras
Modified: 2012-02-17 14:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 8.026.00 and 8.027.00 to build on kernel 3.2 (kernel_3.2.patch,484 bytes, patch)
2012-01-08 09:40 UTC, Nikos Chantziaras
Details | Diff
Patch for 8.026.00 and 8.027.00 to build on kernel 3.2 (kernel_3.2.patch,548 bytes, patch)
2012-01-08 09:50 UTC, Nikos Chantziaras
Details | Diff
r8168-8.027.00-r1.ebuild (r8168-8.027.00-r1.ebuild,827 bytes, text/plain)
2012-01-10 15:25 UTC, Ahmet Inan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2012-01-08 09:39:03 UTC
net-misc/r8168 (8.026.00 as well as 8.027.00) does not build against a 3.2 kernel. I am attaching a trivial patch that adapts one line to the 3.2 API change.

The patch should *only* be applied when building on 3.2 kernels.

Reproducible: Always
Comment 1 Nikos Chantziaras 2012-01-08 09:40:48 UTC
Created attachment 298303 [details, diff]
Patch for 8.026.00 and 8.027.00 to build on kernel 3.2
Comment 2 Nikos Chantziaras 2012-01-08 09:50:53 UTC
Created attachment 298305 [details, diff]
Patch for 8.026.00 and 8.027.00 to build on kernel 3.2

I figured it's better to make the patch build against all kernel versions in order to avoid a kernel version check in the ebuild.  So here's a new patch that can be applied unconditionally and the driver will build against all kernel versions including 3.2.
Comment 3 Ahmet Inan 2012-01-10 15:25:42 UTC
Created attachment 298505 [details]
r8168-8.027.00-r1.ebuild

and here is the ebuild for r8168-8.027.00
Comment 4 Nikos Chantziaras 2012-01-10 15:30:27 UTC
Why do you need a src_prepare?  Doesn't

PATCHES=( "${FILESDIR}/kernel_3.2.patch" )

work?
Comment 5 Ahmet Inan 2012-02-17 14:28:47 UTC
r8168-8.028.00 is out and works with 3.2 kernel.
so this patch is not needed anymore.
Comment 6 Nikos Chantziaras 2012-02-17 14:43:14 UTC
8.028.00 is in portage now :-)  So I'm closing this.