From c94dd92c0ff28ad72a1f9cda2d3b06d654617d40 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 19 Dec 2021 17:02:34 +0100 Subject: [PATCH] package/pppd: fix build with kernel >= 5.15 Fix the following build failure with kernel >= 5.15: sys-linux.c:148:10: fatal error: linux/ipx.h: No such file or directory 148 | #include | ^~~~~~~~~~~~~ This hook could be removed as soon as a new pppd version is released: https://github.com/ppp-project/ppp/pull/326 Fixes: - http://autobuild.buildroot.org/results/5a7f89e5178735f4d3e3f3360f0feb263f6ac431 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/pppd/pppd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk index 71bfceb607..19b6f3ccce 100644 --- a/package/pppd/pppd.mk +++ b/package/pppd/pppd.mk @@ -57,6 +57,13 @@ ifeq ($(BR2_PACKAGE_PPPD_OVERWRITE_RESOLV_CONF),y) PPPD_POST_EXTRACT_HOOKS += PPPD_SET_RESOLV_CONF endif +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15),y) +define PPPD_DROP_IPX + $(SED) 's/-DIPX_CHANGE//' $(PPPD_DIR)/pppd/Makefile.linux +endef +PPPD_POST_EXTRACT_HOOKS += PPPD_DROP_IPX +endif + define PPPD_CONFIGURE_CMDS $(SED) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR)/pppd/Makefile.linux $(SED) 's/ifneq ($$(wildcard \/usr\/include\/pcap-bpf.h),)/ifdef FILTER/' $(PPPD_DIR)/*/Makefile.linux