Diff linux-headers-5.15-r3 with a linux-headers-6.1

/usr/portage/sys-kernel/linux-headers/linux-headers-6.1.ebuild 2025-10-09 18:21:06.195283885 +0300
1 1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
ETYPE="headers"
7
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
7
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 csky hexagon hppa ia64 loong m68k microblaze mips nios2 openrisc ppc ppc64 riscv s390 sh sparc x86 xtensa"
8 8
inherit kernel-2
9 9
detect_version
10 10

  
11 11
PATCH_PV=${PV} # to ease testing new versions against not existing patches
12
PATCH_VER="1"
12
PATCH_VER="0"
13 13
PATCH_DEV="sam"
14 14
SRC_URI="${KERNEL_URI}
15 15
	${PATCH_VER:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/sys-kernel/linux-headers/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz}"
16 16
S="${WORKDIR}/linux-${PV}"
17 17

  
18
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
18
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
19 19

  
20
BDEPEND="
21
	app-arch/xz-utils
20
BDEPEND="app-arch/xz-utils
22 21
	dev-lang/perl
23 22
	net-misc/rsync"
24 23

  
25
# bug #816762
26
RESTRICT="test"
27

  
28 24
[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PATCH_PV} )
29 25

  
30 26
src_unpack() {
31
	# avoid kernel-2_src_unpack
27
	# Avoid kernel-2_src_unpack
32 28
	default
33 29
}
34 30

  
......
39 35
		"${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch
40 36
	)
41 37

  
42
	# avoid kernel-2_src_prepare
38
	# Avoid kernel-2_src_prepare
43 39
	default
44 40
}
45 41

  
46
src_test() {
47
	emake headers_check "${KERNEL_MAKEOPTS[@]}"
48
}
49

  
50 42
src_install() {
51 43
	kernel-2_src_install
52 44

  
53 45
	find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die
54
	# delete empty directories
46
	# Delete empty directories
55 47
	find "${ED}" -empty -type d -delete || die
56 48
}
Thank you!