Skip to content

Commit 993fe84

Browse files
authored
Merge pull request #1003 from infosiftr/mips-7.2
Exclude mips64le from 7.2
2 parents 94ed60e + ecc2d77 commit 993fe84

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

generate-stackbrew-library.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ for version in "${versions[@]}"; do
123123
variantParent="$(awk 'toupper($1) == "FROM" { print $2 }' "$dir/Dockerfile")"
124124
variantArches="${parentRepoToArches[$variantParent]}"
125125

126+
if [ "$version" = '7.2' ]; then
127+
# PHP 7.2 doesn't compile on MIPS:
128+
# /usr/src/php/ext/pcre/pcrelib/sljit/sljitNativeMIPS_common.c:506:3: error: a label can only be part of a statement and a declaration is not a statement
129+
# sljit_sw fir;
130+
# ^~~~~~~~
131+
# According to https://github.com/openwrt/packages/issues/5333 + https://github.com/openwrt/packages/pull/5335,
132+
# https://github.com/svn2github/pcre/commit/e5045fd31a2e171dff305665e2b921d7c93427b8#diff-291428aa92cf90de0f2486f9c2829158
133+
# *might* fix it, but it's likely not worth it just for PHP 7.2 on MIPS (since 7.3 and 7.4 work fine).
134+
variantArches="$(echo " $variantArches " | sed -e 's/ mips64le / /g')"
135+
fi
136+
126137
echo
127138
cat <<-EOE
128139
Tags: $(join ', ' "${variantAliases[@]}")

0 commit comments

Comments
 (0)