Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 18 May 2022 11:10:41
Message-Id: 1652872215.97dbf2b84d9fb4ea47ccb909279b3ed50736cdf8.mpagano@gentoo
1 commit: 97dbf2b84d9fb4ea47ccb909279b3ed50736cdf8
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 11:10:15 2022 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 11:10:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97dbf2b8
7
8 linux-mod.eclass: Remove internal function not used since 2005
9
10 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
11
12 eclass/linux-mod.eclass | 44 --------------------------------------------
13 1 file changed, 44 deletions(-)
14
15 diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
16 index 42e677d0670f..93e93b44a99f 100644
17 --- a/eclass/linux-mod.eclass
18 +++ b/eclass/linux-mod.eclass
19 @@ -193,46 +193,6 @@ DEPEND="${RDEPEND}
20 # eclass utilities
21 # ----------------------------------
22
23 -check_vermagic() {
24 - debug-print-function ${FUNCNAME} $*
25 -
26 - local curr_gcc_ver=$(gcc -dumpversion)
27 - local tmpfile old_chost old_gcc_ver result=0
28 - [ -n "${MODULES_OPTIONAL_USE}" ] && use !${MODULES_OPTIONAL_USE} && return
29 -
30 - tmpfile=`find "${KV_DIR}/" -iname "*.o.cmd" -exec grep usr/lib/gcc {} \; -quit`
31 - tmpfile=${tmpfile//*usr/lib}
32 - tmpfile=${tmpfile//\/include*}
33 - old_chost=${tmpfile//*gcc\/}
34 - old_chost=${old_chost//\/*}
35 - old_gcc_ver=${tmpfile//*\/}
36 -
37 - if [[ -z ${old_gcc_ver} || -z ${old_chost} ]]; then
38 - ewarn ""
39 - ewarn "Unable to detect what version of GCC was used to compile"
40 - ewarn "the kernel. Build will continue, but you may experience problems."
41 - elif [[ ${curr_gcc_ver} != ${old_gcc_ver} ]]; then
42 - ewarn ""
43 - ewarn "The version of GCC you are using (${curr_gcc_ver}) does"
44 - ewarn "not match the version of GCC used to compile the"
45 - ewarn "kernel (${old_gcc_ver})."
46 - result=1
47 - elif [[ ${CHOST} != ${old_chost} ]]; then
48 - ewarn ""
49 - ewarn "The current CHOST (${CHOST}) does not match the chost"
50 - ewarn "used when compiling the kernel (${old_chost})."
51 - result=1
52 - fi
53 -
54 - if [[ ${result} -gt 0 ]]; then
55 - ewarn ""
56 - ewarn "Build will not continue, because you will experience problems."
57 - ewarn "To fix this either change the version of GCC you wish to use"
58 - ewarn "to match the kernel, or recompile the kernel first."
59 - die "GCC Version Mismatch."
60 - fi
61 -}
62 -
63 # @FUNCTION: use_m
64 # @RETURN: true or false
65 # @DESCRIPTION:
66 @@ -621,10 +581,6 @@ linux-mod_pkg_setup() {
67 strip_modulenames;
68 [[ -n ${MODULE_NAMES} ]] && check_modules_supported
69 set_kvobj;
70 - # Commented out with permission from johnm until a fixed version for arches
71 - # who intentionally use different kernel and userland compilers can be
72 - # introduced - Jason Wever <weeve@g.o>, 23 Oct 2005
73 - #check_vermagic;
74 }
75
76 # @FUNCTION: linux-mod_pkg_setup_binary