1 |
commit: d5abea00d6d178139414ccc845a77d4c3e0e1f29 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 26 22:01:34 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 26 22:02:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5abea00 |
7 |
|
8 |
kernel-2.eclass: Revert "avoid lexicographical compare on versions, bug #705246" |
9 |
|
10 |
This reverts commit 8493b3a1823ea5f24f44ea317ceced513b6722ed. |
11 |
|
12 |
Syntax errors: |
13 |
|
14 |
``` |
15 |
kernel-2.eclass: line 1081: |
16 |
syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' |
17 |
kernel-2.eclass: line 1081: |
18 |
syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' |
19 |
kernel-2.eclass: line 1081: |
20 |
`if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' |
21 |
kernel-2.eclass: line 1081: |
22 |
`if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' |
23 |
``` |
24 |
|
25 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
26 |
|
27 |
eclass/kernel-2.eclass | 8 ++++---- |
28 |
1 file changed, 4 insertions(+), 4 deletions(-) |
29 |
|
30 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
31 |
index d69182045c5..07af8d8ab2c 100644 |
32 |
--- a/eclass/kernel-2.eclass |
33 |
+++ b/eclass/kernel-2.eclass |
34 |
@@ -1015,7 +1015,7 @@ postinst_sources() { |
35 |
# K_SECURITY_UNSUPPORTED=deblob |
36 |
|
37 |
# if we are to forcably symlink, delete it if it already exists first. |
38 |
- if [[ ${K_SYMLINK} -gt 0 ]]; then |
39 |
+ if [[ ${K_SYMLINK} > 0 ]]; then |
40 |
[[ -h ${EROOT}usr/src/linux ]] && { rm "${EROOT}"usr/src/linux || die; } |
41 |
MAKELINK=1 |
42 |
fi |
43 |
@@ -1078,7 +1078,7 @@ postinst_sources() { |
44 |
KV_PATCH=$(ver_cut 3 ${OKV}) |
45 |
if [[ "$(tc-arch)" = "sparc" ]]; then |
46 |
if [[ $(gcc-major-version) -lt 4 && $(gcc-minor-version) -lt 4 ]]; then |
47 |
- if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then |
48 |
+ if [[ ${KV_MAJOR} -ge 3 || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.24 ]] ; then |
49 |
echo |
50 |
elog "NOTE: Since 2.6.25 the kernel Makefile has changed in a way that" |
51 |
elog "you now need to do" |
52 |
@@ -1272,7 +1272,7 @@ unipatch() { |
53 |
# do not apply fbcondecor patch to sparc/sparc64 as it breaks boot |
54 |
# bug #272676 |
55 |
if [[ "$(tc-arch)" = "sparc" || "$(tc-arch)" = "sparc64" ]]; then |
56 |
- if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.28 ]]; then |
57 |
+ if [[ ${KV_MAJOR} -ge 3 || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then |
58 |
if [[ ! -z ${K_WANT_GENPATCHES} ]] ; then |
59 |
UNIPATCH_DROP="${UNIPATCH_DROP} *_fbcondecor*.patch" |
60 |
echo |
61 |
@@ -1521,7 +1521,7 @@ kernel-2_src_unpack() { |
62 |
# fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox |
63 |
# only do this for kernel < 2.6.27 since this file does not exist in later |
64 |
# kernels |
65 |
- if [[ -n ${KV_MINOR} && ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -lt 2.6.27 ]] ; then |
66 |
+ if [[ -n ${KV_MINOR} && ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]] ; then |
67 |
sed -i \ |
68 |
-e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ |
69 |
"${S}"/arch/ppc/Makefile |