Skip to content

Commit 8ce8f0f

Browse files
author
pabra
committed
publish: apply patch for linux/386 too
1 parent 989e6b3 commit 8ce8f0f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ARG MOD_PERL_SHA=ade3be31c447b8448869fecdfcace258d6d587b8c6c773c5f22735f70d82d6d
55

66
COPY src_modules_perl_modperl__common__util.c.patch /tmp/
77

8+
ARG TARGETPLATFORM
9+
810
RUN apk add --no-cache gettext \
911
&& apk add --no-cache --virtual .build-dependencies apr-dev apr-util-dev gcc libc-dev make wget patch perl-dev \
1012
&& cd /tmp \
@@ -13,7 +15,7 @@ RUN apk add --no-cache gettext \
1315
&& tar xf mod_perl-${MOD_PERL_VERSION}.tar.gz \
1416
&& cd mod_perl-${MOD_PERL_VERSION} \
1517
&& mv ../src_modules_perl_modperl__common__util.c.patch ./ \
16-
&& if [ "$( uname -m )" = "armv7l" ] ; \
18+
&& if [ "${TARGETPLATFORM}" = "linux/arm/v7" ] || [ "${TARGETPLATFORM}" = "linux/386" ] ; \
1719
then patch src/modules/perl/modperl_common_util.c < src_modules_perl_modperl__common__util.c.patch ; \
1820
else echo 'no patching' ; \
1921
fi \

0 commit comments

Comments
 (0)