Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/
Date: Thu, 21 May 2020 20:25:36
Message-Id: 1589939377.b4941f10b5ab361c9dbee8a1ed4957cba564eccd.mattst88@gentoo
1 commit: b4941f10b5ab361c9dbee8a1ed4957cba564eccd
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 20 01:24:58 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed May 20 01:49:37 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=b4941f10
7
8 targets: Remove check_genkernel_version() function
9
10 Existed to ensure a minimum genkernel version, and was last updated in
11 2005. genkernel is emerged during the catalyst build now, so we will
12 always have an updated version.
13
14 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
15
16 targets/support/chroot-functions.sh | 23 -----------------------
17 targets/support/kmerge.sh | 2 --
18 2 files changed, 25 deletions(-)
19
20 diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
21 index d63e4918..b6e221af 100755
22 --- a/targets/support/chroot-functions.sh
23 +++ b/targets/support/chroot-functions.sh
24 @@ -29,29 +29,6 @@ if [[ -z "${clst_CHOST}" ]] ; then
25 fi
26 fi
27
28 -check_genkernel_version() {
29 - local version parts=() major minor
30 -
31 - version=$(genkernel --version)
32 - if [[ -z ${version} ]] ; then
33 - echo "ERROR: Could not detect genkernel version!"
34 - exit 1
35 - fi
36 - printf 'Genkernel version '%s' found ... ' "${version}"
37 -
38 - IFS='.' read -a parts <<<"${version}"
39 - major=${parts[0]}
40 - minor=${parts[1]}
41 - if [[ ${major} -gt 3 || ( ${major} -eq 3 && ${minor} -ge 3 ) ]] ; then
42 - echo "OK"
43 - else
44 - echo "FAIL"
45 - echo "ERROR: Your genkernel version is too low in your seed stage."
46 - echo " genkernel version 3.3.0 or greater is required."
47 - exit 1
48 - fi
49 -}
50 -
51 get_libdir() {
52 ABI=$(portageq envvar ABI)
53 DEFAULT_ABI=$(portageq envvar DEFAULT_ABI)
54
55 diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
56 index 1a432293..6b589493 100755
57 --- a/targets/support/kmerge.sh
58 +++ b/targets/support/kmerge.sh
59 @@ -2,8 +2,6 @@
60
61 source /tmp/chroot-functions.sh
62
63 -check_genkernel_version
64 -
65 install -d /tmp/kerncache
66 PKGDIR=/tmp/kerncache/${clst_kname}/ebuilds