Skip to content

Commit

Permalink
Update re2 and remove patch (envoyproxy#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Dec 13, 2022
1 parent 7c1a77f commit 947b66c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 87 deletions.
7 changes: 3 additions & 4 deletions buildtools/re2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ FROM ghcr.io/corazawaf/coraza-proxy-wasm/buildtools-wasi-sdk:main

RUN apt-get install -y patch

RUN mkdir -p /re2 && curl -L https://github.com/google/re2/archive/refs/tags/2022-06-01.tar.gz | tar -xz --strip-components 1 -C /re2
# Use post-release commit for now as it includes support for no-threads
RUN mkdir -p /re2 && curl -L https://github.com/google/re2/archive/954656f47fe8fb505d4818da1e128417a79ea500.tar.gz | tar -xz --strip-components 1 -C /re2
WORKDIR /re2
ADD re2.patch re2.patch
RUN patch -p1 < re2.patch
ENV RE2_CXXFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I.
ENV RE2_CXXFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I. -DRE2_NO_THREADS
RUN make obj/libre2.a

RUN mkdir -p /cre2 && curl -L https://bitbucket.org/marcomaggi/cre2/downloads/cre2-0.4.0-devel.2.tar.gz | tar -xz --strip-components 1 -C /cre2
Expand Down
83 changes: 0 additions & 83 deletions buildtools/re2/re2.patch

This file was deleted.

Binary file modified lib/libcre2.a
Binary file not shown.
Binary file modified lib/libre2.a
Binary file not shown.

0 comments on commit 947b66c

Please sign in to comment.