| Summary: | ppp: 4.8 kernel fix breaks builds with older external toolchains | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Christopher Larson <kergoth> |
| Component: | connectivity | Assignee: | Yi Zhao <yi.zhao> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jackie.huang, meta.mr.watcher, meta.watcher, pokylinux, randy.macleod, yi.zhao |
| Version: | unspecified | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Christopher Larson
2016-10-19 15:54:56 UTC
Updated the meta-sourcery workaround to grab the kernel version from the external toolchain sysroot and remove the patch based on that, so this is low priority. It does not only break it for external toolchains, but also if you set LINUXLIBCVERSION to something < 4.8 for internal toolchains with morty.
I took your ppp_2.4.7.bbappend, hacked it a bit and added it to my meta layer so it works now with an internal toolchain, but a LINUXLIBCVERSION before 4.4 as well:
KERNEL_48_PATCH = "file://ppp-fix-building-with-linux-4.8.patch"
SRC_URI_remove := "${@'${KERNEL_48_PATCH}' if [int(i) for i in ('${LINUXLIBCVERSION}'.replace('%', '') or '0.0').split('.')] < [4, 8] else ''}"
should be but a LINUXLIBCVERSION before 4.8 as well: (In reply to comment #2) > It does not only break it for external toolchains, but also if you set > LINUXLIBCVERSION to something < 4.8 for internal toolchains with morty. > > I took your ppp_2.4.7.bbappend, hacked it a bit and added it to my meta > layer so it works now with an internal toolchain, but a LINUXLIBCVERSION > before 4.4 as well: > > KERNEL_48_PATCH = "file://ppp-fix-building-with-linux-4.8.patch" > SRC_URI_remove := "${@'${KERNEL_48_PATCH}' if [int(i) for i in > ('${LINUXLIBCVERSION}'.replace('%', '') or '0.0').split('.')] < [4, 8] else > ''}" So we specify the patch to the kernel 4.8 can solve the problem. This patch should only be applied when a 4.8 (or maybe newer) kernel is used and certainly makes a problem for 4.4 kernels. |