All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"
@ 2022-12-01  2:49 ` Tiezhu Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2022-12-01  2:49 UTC (permalink / raw
  To: Michael Ellerman, Nicholas Piggin, Christophe Leroy, Shuah Khan
  Cc: linuxppc-dev, linux-kernel, linux-kselftest

The latest version of grep claims the egrep is now obsolete so the build
now contains warnings that look like:
	egrep: warning: egrep is obsolescent; using grep -E
fix this using "grep -E" instead.

  sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`

Here are the steps to install the latest grep:

  wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz
  tar xf grep-3.8.tar.gz
  cd grep-3.8 && ./configure && make
  sudo make install
  export PATH=/usr/local/bin:$PATH

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---

As Shuah suggested, this patch should go through powerpc/linux.git

 tools/testing/selftests/powerpc/scripts/hmi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/powerpc/scripts/hmi.sh b/tools/testing/selftests/powerpc/scripts/hmi.sh
index dcdb392..bcc7b6b 100755
--- a/tools/testing/selftests/powerpc/scripts/hmi.sh
+++ b/tools/testing/selftests/powerpc/scripts/hmi.sh
@@ -36,7 +36,7 @@ trap "ppc64_cpu --smt-snooze-delay=100" 0 1
 
 # for each chip+core combination
 # todo - less fragile parsing
-egrep -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
+grep -E -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
 while read chipcore; do
 	chip=$(echo "$chipcore"|awk '{print $3}')
 	core=$(echo "$chipcore"|awk '{print $5}')
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"
@ 2022-12-01  2:49 ` Tiezhu Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2022-12-01  2:49 UTC (permalink / raw
  To: Michael Ellerman, Nicholas Piggin, Christophe Leroy, Shuah Khan
  Cc: linuxppc-dev, linux-kselftest, linux-kernel

The latest version of grep claims the egrep is now obsolete so the build
now contains warnings that look like:
	egrep: warning: egrep is obsolescent; using grep -E
fix this using "grep -E" instead.

  sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`

Here are the steps to install the latest grep:

  wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz
  tar xf grep-3.8.tar.gz
  cd grep-3.8 && ./configure && make
  sudo make install
  export PATH=/usr/local/bin:$PATH

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---

As Shuah suggested, this patch should go through powerpc/linux.git

 tools/testing/selftests/powerpc/scripts/hmi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/powerpc/scripts/hmi.sh b/tools/testing/selftests/powerpc/scripts/hmi.sh
index dcdb392..bcc7b6b 100755
--- a/tools/testing/selftests/powerpc/scripts/hmi.sh
+++ b/tools/testing/selftests/powerpc/scripts/hmi.sh
@@ -36,7 +36,7 @@ trap "ppc64_cpu --smt-snooze-delay=100" 0 1
 
 # for each chip+core combination
 # todo - less fragile parsing
-egrep -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
+grep -E -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
 while read chipcore; do
 	chip=$(echo "$chipcore"|awk '{print $3}')
 	core=$(echo "$chipcore"|awk '{print $5}')
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"
  2022-12-01  2:49 ` Tiezhu Yang
@ 2022-12-08 12:40   ` Michael Ellerman
  -1 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2022-12-08 12:40 UTC (permalink / raw
  To: Nicholas Piggin, Christophe Leroy, Michael Ellerman, Shuah Khan,
	Tiezhu Yang
  Cc: linux-kselftest, linuxppc-dev, linux-kernel

On Thu, 1 Dec 2022 10:49:57 +0800, Tiezhu Yang wrote:
> The latest version of grep claims the egrep is now obsolete so the build
> now contains warnings that look like:
> 	egrep: warning: egrep is obsolescent; using grep -E
> fix this using "grep -E" instead.
> 
>   sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`
> 
> [...]

Applied to powerpc/next.

[1/1] selftests: powerpc: Use "grep -E" instead of "egrep"
      https://git.kernel.org/powerpc/c/5921eb36d2a1b276b16a24e529788550e6a65449

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"
@ 2022-12-08 12:40   ` Michael Ellerman
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2022-12-08 12:40 UTC (permalink / raw
  To: Nicholas Piggin, Christophe Leroy, Michael Ellerman, Shuah Khan,
	Tiezhu Yang
  Cc: linuxppc-dev, linux-kernel, linux-kselftest

On Thu, 1 Dec 2022 10:49:57 +0800, Tiezhu Yang wrote:
> The latest version of grep claims the egrep is now obsolete so the build
> now contains warnings that look like:
> 	egrep: warning: egrep is obsolescent; using grep -E
> fix this using "grep -E" instead.
> 
>   sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`
> 
> [...]

Applied to powerpc/next.

[1/1] selftests: powerpc: Use "grep -E" instead of "egrep"
      https://git.kernel.org/powerpc/c/5921eb36d2a1b276b16a24e529788550e6a65449

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01  2:49 [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep" Tiezhu Yang
2022-12-01  2:49 ` Tiezhu Yang
2022-12-08 12:40 ` Michael Ellerman
2022-12-08 12:40   ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.