@@ -132,6 +132,14 @@ RUN export OS_VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '"' -f2)
132
132
&& apt autoremove -y \
133
133
&& apt clean
134
134
135
+ # Temporary fix for https://github.com/laminas/laminas-continuous-integration-action/issues/188
136
+ RUN cp \
137
+ /usr/share/libtool/build-aux/config.sub \
138
+ /usr/share/libtool/build-aux/config.guess \
139
+ /usr/share/libtool/build-aux/ltmain.sh \
140
+ /usr/bin/shtool \
141
+ /usr/lib/php/20230831/build
142
+
135
143
# Build/install static modules that do not have packages
136
144
COPY mods-available /mods-available
137
145
COPY mods-install /mods-install
@@ -167,21 +175,21 @@ COPY composer.json \
167
175
composer.lock \
168
176
/tools/
169
177
170
- RUN cd /tools \
171
- # Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
172
- && apt install -y php-bcmath php8.3-bcmath \
173
- && composer install \
174
- --classmap-authoritative
175
-
176
178
# Set default PHP version based on the `composer.json` `config.platform.php` setting
177
179
RUN export DEFAULT_PHP_VERSION=$(jq -r '.config.platform.php | sub("(?<minor>[0-9.]).99$"; "\( .minor)")' /tools/composer.json) \
178
- # Cleanup composer files from external tools folder
179
- && rm /tools/composer.* \
180
180
&& update-alternatives --set php /usr/bin/php$DEFAULT_PHP_VERSION \
181
181
&& update-alternatives --set phpize /usr/bin/phpize$DEFAULT_PHP_VERSION \
182
182
&& update-alternatives --set php-config /usr/bin/php-config$DEFAULT_PHP_VERSION \
183
183
&& echo "DEFAULT_PHP_VERSION=${DEFAULT_PHP_VERSION}" >> /etc/environment
184
184
185
+ RUN cd /tools \
186
+ # Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
187
+ && apt install -y php-bcmath \
188
+ && composer install \
189
+ --classmap-authoritative \
190
+ # Cleanup composer files from external tools folder
191
+ && rm /tools/composer.*
192
+
185
193
# Copy staabm/annotate-pull-request-from-checkstyle to external-tools stage
186
194
RUN ln -s /tools/vendor/bin/cs2pr /usr/local/bin/cs2pr
187
195
0 commit comments