File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM alpine:3.16 as runtime
3
3
RUN \
4
4
apk add --update --no-cache --force-overwrite \
5
5
# core dependencies
6
- gcc gmp-dev libevent-static musl-dev pcre-dev \
6
+ gcc gmp-dev libevent-static musl-dev pcre-dev pcre2-dev \
7
7
# stdlib dependencies
8
8
libxml2-dev openssl-dev openssl-libs-static tzdata yaml-static zlib-static \
9
9
# dev tools
Original file line number Diff line number Diff line change 7
7
apt-get update && \
8
8
DEBIAN_FRONTEND=noninteractive \
9
9
apt-get install -y tzdata gcc pkg-config libssl-dev libxml2-dev libyaml-dev libgmp-dev git make \
10
- libpcre3-dev libevent-dev libz-dev && \
10
+ libpcre3-dev libpcre2-dev libevent-dev libz-dev && \
11
11
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
12
12
13
13
ARG crystal_targz
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ PREVIOUS_CRYSTAL_RELEASE_LINUX64_TARGZ ?= https://github.com/crystal-lang/crysta
22
22
23
23
SHARDS_VERSION = v0.17.2
24
24
GC_VERSION = v8.2.2
25
- LIBPCRE_VERSION = 8.45
25
+ LIBPCRE2_VERSION = 10.42
26
26
LIBEVENT_VERSION = release-2.1.12-stable
27
27
28
28
OUTPUT_DIR = build
@@ -44,7 +44,7 @@ BUILD_ARGS64 = $(BUILD_ARGS_COMMON) \
44
44
--build-arg gnu_target=x86_64-unknown-linux-gnu
45
45
46
46
BUILD_ARGS64_BUNDLED = $(BUILD_ARGS64 ) \
47
- --build-arg libpcre_version =$(LIBPCRE_VERSION ) \
47
+ --build-arg libpcre2_version =$(LIBPCRE2_VERSION ) \
48
48
--build-arg libevent_version=$(LIBEVENT_VERSION )
49
49
50
50
.PHONY : all
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ RUN apt-get update \
5
5
6
6
ENV CFLAGS="-fPIC -pipe ${release:+-O2}"
7
7
8
- # build libpcre
9
- FROM debian AS libpcre
10
- ARG libpcre_version
11
- RUN curl https://ftp.exim.org/pub/pcre/pcre -${libpcre_version }.tar.gz | tar -zx \
12
- && cd pcre -${libpcre_version } \
8
+ # build libpcre2
9
+ FROM debian AS libpcre2
10
+ ARG libpcre2_version
11
+ RUN curl -L https://github.com/PCRE2Project/pcre2/releases/download/pcre2 -${libpcre2_version}/pcre2-${libpcre2_version }.tar.gz | tar -zx \
12
+ && cd pcre2 -${libpcre2_version } \
13
13
&& ./configure --disable-shared --disable-cpp --enable-jit --enable-utf --enable-unicode-properties \
14
14
&& make -j$(nproc)
15
15
@@ -27,13 +27,13 @@ RUN git clone https://github.com/libevent/libevent \
27
27
FROM debian
28
28
ARG crystal_version
29
29
ARG package_iteration
30
- ARG libpcre_version
30
+ ARG libpcre2_version
31
31
ARG libevent_version
32
32
33
33
RUN mkdir -p /output/lib/crystal/lib/
34
34
35
35
# Copy libraries
36
- COPY --from=libpcre pcre -${libpcre_version }/.libs/libpcre .a /output/lib/crystal/
36
+ COPY --from=libpcre2 pcre2 -${libpcre2_version }/.libs/libpcre2-8 .a /output/lib/crystal/
37
37
COPY --from=libevent libevent/.libs/libevent.a libevent/.libs/libevent_pthreads.a /output/lib/crystal/
38
38
39
39
# Create tarball
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ The following are the suggested packages to be able to use the whole standard li
44
44
45
45
```
46
46
$ sudo apt-get install gcc pkg-config git tzdata \
47
- libpcre3 -dev libevent-dev libyaml-dev \
47
+ libpcre2 -dev libevent-dev libyaml-dev \
48
48
libgmp-dev libssl-dev libxml2-dev
49
49
```
50
50
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if [ ! -f $SNAP_USER_COMMON/env-check-success ]; then
14
14
The following are the suggested packages to be able to use the whole standard library capabilities.
15
15
16
16
$ sudo apt-get install gcc pkg-config git tzdata \\
17
- libpcre3 -dev libevent-dev libyaml-dev \\
17
+ libpcre2 -dev libevent-dev libyaml-dev \\
18
18
libgmp-dev libssl-dev libxml2-dev
19
19
20
20
You can find more detailed information in:
You can’t perform that action at this time.
0 commit comments