3.15: Broken dependencies for php8-tidy (libtidy.so.58)
Reproducer:
$ docker run --rm -it alpine:3.15 sh
/ # apk add php8-cli php8-tidy
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/11) Installing php8-common (8.0.14-r0)
(2/11) Installing argon2-libs (20190702-r1)
(3/11) Installing ncurses-terminfo-base (6.3_p20211120-r0)
(4/11) Installing ncurses-libs (6.3_p20211120-r0)
(5/11) Installing libedit (20210910.3.1-r0)
(6/11) Installing pcre2 (10.39-r0)
(7/11) Installing xz-libs (5.2.5-r0)
(8/11) Installing libxml2 (2.9.12-r2)
(9/11) Installing php8 (8.0.14-r0)
(10/11) Installing tidyhtml-libs (5.8.0-r0)
(11/11) Installing php8-tidy (8.0.14-r0)
Executing busybox-1.34.1-r3.trigger
OK: 17 MiB in 25 packages
/ # php8 -m
PHP Warning: PHP Startup: Unable to load dynamic library 'tidy' (tried: /usr/lib/php8/modules/tidy (Error loading shared library /usr/lib/php8/modules/tidy: No such file or directory), /usr/lib/php8/modules/tidy.so (Error loading shared library libtidy.so.58: No such file or directory (needed by /usr/lib/php8/modules/tidy.so))) in Unknown on line 0
[PHP Modules]
...
Quick fix:
/ # apk add tidyhtml
(1/1) Installing tidyhtml (5.8.0-r0)
Executing busybox-1.34.1-r3.trigger
OK: 18 MiB in 26 packages
/ # php8 -m
[PHP Modules]
...