Conflict between php82 and php7
Package Information
- Package name: php82
- Package version: 8.2.18-r0
- Alpine version: 3.19.1
- Alpine architecture: x86_64
Summary
php82 is conflicting with php7 (from repository v3.15) for no apparent reason. I was able to install php81 and php83 side by side with php7 by using the --repositories-file flag, but php82 is the only one that fails.
Steps to reproduce
FROM alpine:3.19
COPY --from=alpine:3.15 /etc/apk/repositories /etc/apk/repositories-v3.15
RUN apk add --no-cache --repositories-file /etc/apk/repositories-v3.15 \
php7 php7-fpm php7-common
RUN apk add --no-cache \
php81 php81-fpm php81-common
# *** This beaks the build ***
# RUN apk add --no-cache \
# php82 php82-fpm php82-common
RUN apk add --no-cache \
php83 php83-fpm php83-common
As soon as you uncomment php82 it fails with:
2.014 ERROR: unable to select packages:
2.015 php7-7.4.33-r1:
2.015 conflicts: php82-8.2.18-r0[cmd:php=7.4.33-r1]
2.015 satisfies: world[php7]
2.015 php82-8.2.18-r0:
2.015 conflicts: php7-7.4.33-r1[cmd:php=8.2.18-r0]
2.015 satisfies: world[php82]
All other versions work fine.