Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/uek-sources/
Date: Sat, 14 May 2022 16:30:09
Message-Id: 1652545798.3541a3e7507e84efe5b0e1c2d94ab9bc319bfa37.epsilon-0@gentoo
1 commit: 3541a3e7507e84efe5b0e1c2d94ab9bc319bfa37
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Sat May 14 16:29:58 2022 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Sat May 14 16:29:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3541a3e7
7
8 sys-kernel/uek-sources: add 5.4.17.2136.308.4
9
10 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
11
12 sys-kernel/uek-sources/Manifest | 1 +
13 .../uek-sources-5.4.17.2136.308.4.ebuild | 67 ++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/sys-kernel/uek-sources/Manifest b/sys-kernel/uek-sources/Manifest
17 index 6bab60855..f8316e399 100644
18 --- a/sys-kernel/uek-sources/Manifest
19 +++ b/sys-kernel/uek-sources/Manifest
20 @@ -7,3 +7,4 @@ DIST genpatches-5.4-192.extras.tar.xz 1816 BLAKE2B 2d6760ff367ee0ba6ff8d56f81c7c
21 DIST linux-uek-5.4.17-2136.305.5.tar.gz 175486059 BLAKE2B e51fd6ddc031f3a901ad5e041a966f280be7b33efc43aac6ee468653b7cb9215270c669589891f20e2399031fa9e62ffe4b1357961cfaca4cc51bcf9178a268d SHA512 83a2380013af0cf9600cf7ef36a6eb530e544603684945932bca1a3dd874a366a857bfb7f20e774be545d253bd20457a02c36524982408e498cafbe2f7b6e885
22 DIST linux-uek-5.4.17-2136.306.1.tar.gz 175487701 BLAKE2B 4ea72ec404ef2e88492f46feafdf052f9fff0efd16522f7fcb24c708141b21ab16b9919bd30399c15780126091e083b082a4d47fd5a1aa1743179ac8a11012e0 SHA512 d0fb863acde2fb680f78fb3eb855fa4a4e7bc54c1ea1b4003d3f7a33bffdfbdbfc28c7c3e650deae08a493a0fbda31b085b827ad6b40f5bb31724253925b6935
23 DIST linux-uek-5.4.17-2136.307.2.tar.gz 175498423 BLAKE2B f3e95673891cdf2750d0ff19205c8a0b265de4c171125e69eaf2ee85b72cabe23265de74759a691b824525221f3824b365a9dc67d03e281dc64eaae539903bde SHA512 2b692a5ed58afcf0f351216dee1dda92a8033002c373afd8ab8afcda19b1ca48b46b4cd34c8d299391e44fee57c13be3edaca19a398f6bf3505e37eb7d2e21b5
24 +DIST linux-uek-5.4.17-2136.308.4.tar.gz 176328838 BLAKE2B 0c7187afad5cc21e86eef121fff81a94f13ddad98c1533ed9d1024a28aabcee95eadb403eba33733371e58a6f481ebb7cc42a03af124ab2517475a3d86f8e2ce SHA512 44ba9c17d930624eb502ecc66ecd6b48c3d3686284f45030522d816e26ad0f74c6f92437ba4d39c9c4335182ffec198791ddd7232b49e8de21620862b1cf5648
25
26 diff --git a/sys-kernel/uek-sources/uek-sources-5.4.17.2136.308.4.ebuild b/sys-kernel/uek-sources/uek-sources-5.4.17.2136.308.4.ebuild
27 new file mode 100644
28 index 000000000..423397238
29 --- /dev/null
30 +++ b/sys-kernel/uek-sources/uek-sources-5.4.17.2136.308.4.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 2021-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +KERNEL_VERSION=$(ver_cut 1-3)
38 +KERNEL_TRUNK=$(ver_cut 1-2)
39 +UEK_PATCH_VERSION=$(ver_cut 4-6)
40 +UEK_VERSION="${KERNEL_VERSION}-${UEK_PATCH_VERSION}"
41 +
42 +ETYPE="sources"
43 +
44 +K_GENPATCHES_VER="192"
45 +K_SECURITY_UNSUPPORTED="1"
46 +CKV="${KERNEL_VERSION}_p${UEK_PATCH_VERSION}"
47 +
48 +inherit kernel-2
49 +detect_version
50 +detect_arch
51 +
52 +DESCRIPTION="Unbreakable Enterprise Kernel (UEK) sources built from Oracle"
53 +HOMEPAGE="https://github.com/oracle/linux-uek"
54 +SRC_URI="
55 + https://github.com/oracle/linux-uek/archive/refs/tags/v${UEK_VERSION}.tar.gz
56 + -> linux-uek-${UEK_VERSION}.tar.gz
57 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${KERNEL_TRUNK}-${K_GENPATCHES_VER}.base.tar.xz
58 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${KERNEL_TRUNK}-${K_GENPATCHES_VER}.experimental.tar.xz
59 + https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${KERNEL_TRUNK}-${K_GENPATCHES_VER}.extras.tar.xz
60 +"
61 +S="${WORKDIR}/linux-uek-${UEK_VERSION}"
62 +
63 +LICENSE="GPL-2"
64 +KEYWORDS="~amd64"
65 +IUSE="+gentoo experimental"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/uek-sources-5.4.17.2136.303.1-ip6_sock_set_v6only.patch
69 + "${FILESDIR}"/uek-sources-5.4.17.2136.303.2-O3.patch
70 +)
71 +
72 +src_unpack() {
73 + default
74 +
75 + # remove all backup files
76 + find . -iname "*~" -print -exec rm {} \; 2>/dev/null
77 +
78 + unpack_set_extraversion
79 + unpack_fix_install_path
80 +
81 + env_setup_xmakeopts
82 +}
83 +
84 +src_prepare() {
85 + use gentoo && PATCHES+=(
86 + "${WORKDIR}"/1500_XATTR_USER_PREFIX.patch
87 + "${WORKDIR}"/1510_fs-enable-link-security-restrictions-by-default.patch
88 + "${WORKDIR}"/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
89 + "${WORKDIR}"/2600_enable-key-swapping-for-apple-mac.patch
90 + "${WORKDIR}"/2920_sign-file-patch-for-libressl.patch
91 + "${WORKDIR}"/4567_distro-Gentoo-Kconfig.patch
92 + )
93 + use experimental && PATCHES+=(
94 + "${WORKDIR}"/5000_shifts-ubuntu-20.04.patch
95 + "${WORKDIR}"/5010_enable-cpu-optimizations-universal.patch
96 + )
97 + default
98 +}