Skip to contentSkip to conversation

CI: Add gnu grep to alpine containers

PATCH In review Andrew Cooper 4 participants 4 messages Feb 18, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Add gnu grep to alpine containers

A forthcoming change is going to want more support than busybox's grep can provide.

---
CC: Doug Goldstein <[email protected]>
CC: Wei Liu <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Jan Beulich <[email protected]>

I've already rebuilt the containers and confirmed that the build is still fine.

---
 automation/build/alpine/3.12.dockerfile | 1 +
 1 file changed, 1 insertion(+)
automation/build/alpine/3.12.dockerfile +1 -0
index 4ee3ddc12e52..4cce7ab926dc 100644
@@ -26,6 +26,7 @@ RUN \
   # gettext for Xen < 4.13
   apk add gettext && \
   apk add git && \
+  apk add grep && \
   apk add iasl && \
   apk add libaio-dev && \
   apk add linux-headers && \
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Andrew Cooper

A forthcoming change is going to want more support than busybox's grep can provide.

---
CC: Doug Goldstein <[email protected]>
CC: Wei Liu <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Jan Beulich <[email protected]>

Quoted 1 line

I've already rebuilt the containers and confirmed that the build is still fine.

Thanks,

Signature · 1 line
Anthony PERARD
#2 lore raw
Quoted 13 lines · Anthony PERARD
Quoted 12 lines · Andrew Cooper

A forthcoming change is going to want more support than busybox's grep can provide.

---
CC: Doug Goldstein <[email protected]>
CC: Wei Liu <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Jan Beulich <[email protected]>

Quoted 3 lines
Quoted 1 line

I've already rebuilt the containers and confirmed that the build is still fine.

Good for me too. Out of curiousity, what is that is not working with busybox's grep? Is it regex?

#3 lore raw
Quoted 14 lines · Stefano Stabellini
Quoted 13 lines · Anthony PERARD
Quoted 12 lines · Andrew Cooper

A forthcoming change is going to want more support than busybox's grep can provide.

---
CC: Doug Goldstein <[email protected]>
CC: Wei Liu <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Jan Beulich <[email protected]>

Quoted 4 lines
Quoted 2 lines
Quoted 1 line

I've already rebuilt the containers and confirmed that the build is still fine.

Good for me too. Out of curiousity, what is that is not working with busybox's grep? Is it regex?

No.  Binary searching, which we want to use in a build-time check for CET-IBT.

https://lore.kernel.org/xen-devel/[email protected]/

~Andrew