Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: kernel@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH 3/3] kernel-2.eclass: minor whitespace fixes
Date: Sun, 25 Dec 2022 19:18:04
Message-Id: 20221225191714.757003-3-sam@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] linux-mod.eclass: use consistent style by Sam James
1 Signed-off-by: Sam James <sam@g.o>
2 ---
3 eclass/kernel-2.eclass | 32 ++++++++++++++++----------------
4 1 file changed, 16 insertions(+), 16 deletions(-)
5
6 diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
7 index 2cf88f0ff238..e13ed1a4f5ba 100644
8 --- a/eclass/kernel-2.eclass
9 +++ b/eclass/kernel-2.eclass
10 @@ -22,7 +22,7 @@
11 # @DESCRIPTION:
12 # Utilized for 32-bit userland on ppc64.
13
14 -# @ECLASS_VARIABLE: CKV
15 +# @ECLASS_VARIABLE: CKV
16 # @DEFAULT_UNSET
17 # @DESCRIPTION:
18 # Used as a comparison kernel version, which is used when
19 @@ -187,36 +187,36 @@
20 # Apply genpatches to kernel source. Provide any
21 # combination of "base", "extras" or "experimental".
22
23 -# @ECLASS_VARIABLE: KERNEL_URI
24 +# @ECLASS_VARIABLE: KERNEL_URI
25 # @DEFAULT_UNSET
26 # @DESCRIPTION:
27 # Upstream kernel src URI
28
29 -# @ECLASS_VARIABLE: KV
30 +# @ECLASS_VARIABLE: KV
31 # @DEFAULT_UNSET
32 # @OUTPUT_VARIABLE
33 # @DESCRIPTION:
34 # Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1)
35
36 -# @ECLASS_VARIABLE: KV_FULL
37 +# @ECLASS_VARIABLE: KV_FULL
38 # @DEFAULT_UNSET
39 # @OUTPUT_VARIABLE
40 # @DESCRIPTION:
41 # Kernel full version
42
43 -# @ECLASS_VARIABLE: KV_MAJOR
44 +# @ECLASS_VARIABLE: KV_MAJOR
45 # @DEFAULT_UNSET
46 # @OUTPUT_VARIABLE
47 # @DESCRIPTION:
48 # Kernel major version from <KV_MAJOR>.<KV_MINOR>.<KV_PATCH
49
50 -# @ECLASS_VARIABLE: KV_MINOR
51 +# @ECLASS_VARIABLE: KV_MINOR
52 # @DEFAULT_UNSET
53 # @OUTPUT_VARIABLE
54 # @DESCRIPTION:
55 # Kernel minor version from <KV_MAJOR>.<KV_MINOR>.<KV_PATCH
56
57 -# @ECLASS_VARIABLE: KV_PATCH
58 +# @ECLASS_VARIABLE: KV_PATCH
59 # @DEFAULT_UNSET
60 # @OUTPUT_VARIABLE
61 # @DESCRIPTION:
62 @@ -227,12 +227,12 @@
63 # @DESCRIPTION:
64 # Default cflags if not already set
65
66 -# @ECLASS_VARIABLE: OKV
67 +# @ECLASS_VARIABLE: OKV
68 # @DEFAULT_UNSET
69 # @DESCRIPTION:
70 # Original Kernel Version (2.6.0/2.6.0-test11)
71
72 -# @ECLASS_VARIABLE: RELEASE
73 +# @ECLASS_VARIABLE: RELEASE
74 # @DEFAULT_UNSET
75 # @DESCRIPTION:
76 # Representative of the kernel release tag (-rc3/-git3)
77 @@ -261,15 +261,15 @@
78 # @DESCRIPTION:
79 # space delimetered list of patches to be applied to the kernel
80
81 -# @ECLASS_VARIABLE: UNIPATCH_LIST_DEFAULT
82 +# @ECLASS_VARIABLE: UNIPATCH_LIST_DEFAULT
83 # @INTERNAL
84 # @DESCRIPTION:
85 # Upstream kernel patch archive
86
87 -# @ECLASS_VARIABLE: UNIPATCH_LIST_GENPATCHES
88 +# @ECLASS_VARIABLE: UNIPATCH_LIST_GENPATCHES
89 # @INTERNAL
90 # @DESCRIPTION:
91 -# List of genpatches archives to apply to the kernel
92 +# List of genpatches archives to apply to the kernel
93
94 # @ECLASS_VARIABLE: UNIPATCH_STRICTORDER
95 # @DEFAULT_UNSET
96 @@ -646,7 +646,7 @@ kernel_is() {
97 eq) operator="-eq"; shift;;
98 *) operator="-eq";;
99 esac
100 - [[ $# -gt 3 ]] && die "Error in kernel-2_kernel_is(): too many parameters"
101 + [[ $# -gt 3 ]] && die "Error in ${ECLASS}_${FUNCNAME}(): too many parameters"
102
103 ver_test \
104 "${KV_MAJOR:-0}.${KV_MINOR:-0}.${KV_PATCH:-0}" \
105 @@ -1190,14 +1190,14 @@ unipatch() {
106 fi
107 done
108
109 - #populate KPATCH_DIRS so we know where to look to remove the excludes
110 + # Populate KPATCH_DIRS so we know where to look to remove the excludes
111 x=${KPATCH_DIR}
112 KPATCH_DIR=""
113 for i in $(find ${x} -type d | sort -n); do
114 KPATCH_DIR="${KPATCH_DIR} ${i}"
115 done
116
117 - #so now lets get rid of the patchno's we want to exclude
118 + # So now lets get rid of the patch numbers we want to exclude
119 UNIPATCH_DROP="${UNIPATCH_EXCLUDE} ${UNIPATCH_DROP}"
120 for i in ${UNIPATCH_DROP}; do
121 ebegin "Excluding Patch #${i}"
122 @@ -1224,7 +1224,7 @@ unipatch() {
123 # addition of a file with the same name as the symlink in the #
124 # same location; this causes the dry-run to fail, see bug #507656. #
125 # #
126 - # https://bugs.gentoo.org/show_bug.cgi?id=507656 #
127 + # https://bugs.gentoo.org/507656 #
128 ####################################################################
129 if [[ -n ${K_NODRYRUN} ]]; then
130 ebegin "Applying ${i/*\//} (-p1)"
131 --
132 2.39.0

Replies