openwrt-mirror/package/network/utils
Jonas Gorski d015a39dd3 iproute2: point KERNEL_INCLUDE to toolchain headers
Glibc since 2.41 tries to include linux/sched/types.h from sched.h, and
pointing KERNEL_INCLUDE to the kernel headers makes it use
linux/sched/types.h from the kernel headers instead of the installed
one.

This then breaks the configure (test) compile for setns() and the test:

mips-openwrt-linux-gnu-gcc -I/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi -o config.HaAJYe/setnstest config.HaAJYe/setnstest.c
In file included from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/sched/types.h:5,
                 from /fork.openwrt/staging_dir/toolchain-mips_24kc_gcc-14.3.0_glibc/include/bits/sched.h:63,
                 from /fork.openwrt/staging_dir/toolchain-mips_24kc_gcc-14.3.0_glibc/include/sched.h:43,
                 from config.HaAJYe/setnstest.c:2:
/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/types.h:10:2: warning: #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-Wcpp]
   10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
      |  ^~~~~~~
In file included from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/posix_types.h:5,
                 from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/types.h:14:
/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/stddef.h:5:10: fatal error: linux/compiler_types.h: No such file or directory
    5 | #include <linux/compiler_types.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Fix this by pointing KERNEL_INCLUDE to the toolchain headers, which
include the installed kernel headers.

Tested with musl, glibc, and SDK.

Fixes: 60738feded ("iproute2: Fix KERNEL_INCLUDE in SDK")
Reported-by: Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2025-06-18 10:46:35 +02:00
..
adb-enablemodem adb-enablemodem: fix version for APK 2024-10-29 00:07:53 +01:00
arptables build: prefer HTTPS if available (for packages) 2022-10-05 17:37:07 +02:00
bpftool bpftool: Update to v7.5.0 2024-12-28 15:41:44 +01:00
comgt comgt-ncm: fix modem manufacturer detection 2025-04-18 01:37:48 +02:00
ebtables ebtables: fix compilation with GCC14 2024-05-28 10:41:45 +02:00
ethtool ethtool: update to 6.14 2025-05-15 21:57:52 +02:00
iproute2 iproute2: point KERNEL_INCLUDE to toolchain headers 2025-06-18 10:46:35 +02:00
ipset ipset: update to 7.21 2024-04-17 12:14:20 +08:00
iptables iptables: update to 1.8.10 2024-10-22 00:52:03 +02:00
iw iw: backport WiFi 7 (EHT) scan support 2025-05-11 13:09:31 +02:00
iwcap iwcap: fix handling kill signal during dump 2017-03-14 13:29:03 +01:00
iwinfo libiwinfo: update to Git HEAD (2025-02-06) 2025-02-06 14:51:11 +01:00
layerscape/restool restool: bump to lf-6.6.23-2.0.0 2024-09-22 16:21:02 +02:00
linux-atm linux-atm: fix building with GCC 15.1 2025-06-08 12:20:15 +02:00
ltq-dsl-base ltq-dsl-base: enable for ipq40xx 2023-01-16 23:41:41 +00:00
nftables nftables: update to 1.1.1 2024-11-11 00:05:06 +01:00
resolveip network/utils/resolveip: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
rssileds treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
tcpdump tcpdump: update to 4.99.5 2024-09-22 17:53:13 +02:00
umbim umbim: add support for wwan device class 2025-05-27 11:31:07 +02:00
uqmi qmi: increase SIM power-cycle timeouts 2025-05-30 00:16:48 +02:00
wireguard-tools wireguard-tools: update to v1.0.20250521 2025-06-04 20:14:19 +02:00
wireless-tools wireless-tools: add package CPE ID 2022-10-19 21:40:23 +02:00
wpan-tools wpan-tools: update to 0.9 2022-07-10 18:16:34 +02:00
wwan treewide: use APK compatible version schema 2024-03-22 22:14:22 +01:00
xdp-tools xdp-tools: fix compilation when bpftool is installed 2024-10-28 10:34:50 +01:00