Description
I.e. link everything except libc statically, that way both musl and glibc can load shared extensions. Build php with all extensions. Then package it and offer a repo url like https://apk.static-php.dev, https://deb.static-php.dev and https://rpm.static-php.dev
Installing one of those with apk, apt or dnf would then enable users to dnf install static-php-zts
to install static php-cli, php-fpm, php-embed. Then a few weeks later dnf upgrade
to upgrade to static-php-zts-8.4.8-1.rpm
.
I've looked into it and it shouldn't require too much work. Mostly just static hosting space. Our github actions could build the packages like static-php-8.4.7-1.arm64.rpm
and would upload them into the webspace. Then each day the webspace could sign them with a gpg key and regenerate repository information.
For the question why to do this: convenience. We also currently offer the only reliable source of zts support across all operating systems and architectures (windows aside).
We are already 95% of the way
there, anyhow. https://dl.static-php.dev/static-php-cli/bulk/
- support mostly static musl
- support mostly static glibc
- build bulk php cli
- build bulk php fpm
- build bulk php micro
- build bulk php embed
- build all above with zts
- upload binaries
- create packages (easy with fpm)
- create package registry