File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ ARG MOD_PERL_SHA=ade3be31c447b8448869fecdfcace258d6d587b8c6c773c5f22735f70d82d6d
55
66COPY src_modules_perl_modperl__common__util.c.patch /tmp/
77
8+ ARG TARGETPLATFORM
9+
810RUN 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 \
You can’t perform that action at this time.
0 commit comments