Skip to content

Use packages.sury.org instead of the retired ondrej/php PPA - #76

Merged
luispabon merged 1 commit into
masterfrom
new-ondrej-repo
Nov 22, 2026
Merged

luispabon merged 1 commit into
masterfrom
new-ondrej-repo

Conversation

@luispabon

Copy link
Copy Markdown
Contributor

The ppa:ondrej/php Launchpad PPA is frozen and no longer receives updates, as its description now states. PHP packages moved to https://packages.sury.org/php/.

This switches the build to the new repository, following https://packages.sury.org/php/README.txt:

  • download and dpkg -i debsuryorg-archive-keyring.deb
  • add deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ ${UBUNTU} main
  • remove gnupg, apt-key and the keyserver fetch
  • install ca-certificates and curl in the bootstrap step, since the base Ubuntu image ships neither and the keyring is fetched over HTTPS

${UBUNTU} is still the suite, so the jammy and noble matrix entries are unchanged. The php<V>-opcache guard is untouched: separate package below 8.5, built into 8.5.

Verification

Built and ran all five versions, both targets, from this branch:

Version CLI php -r Zend OPcache FPM started [::]:9000 TCP connect SIGQUIT exit
8.1.34 jammy pass yes yes yes yes 0
8.2.36 jammy pass yes yes yes yes 0
8.3.37 jammy pass yes yes yes yes 0
8.4.28 noble pass yes yes yes yes 0
8.5.13 noble pass yes yes yes yes 0

All PHP packages resolve from the new repo, for example php8.5-cli 8.5.13-3+debsuryorg24.04.1+1 and php8.1-cli 8.1.34-15+debsuryorg22.04.1+1. php8.1-opcache installs; php8.5-opcache does not exist and is not requested. composer --version reports 2.11.2 in every image.

FPM was started as a server, not just config-tested: ready to handle connections logged, :2328 listening in /proc/net/tcp6, fsockopen("[::1]", 9000) succeeds, and docker kill -s QUIT exits 0.

Not tested

linux/arm64 and linux/arm/v7: no binfmt/QEMU on the test host, so cross builds cannot run there. The new repo publishes amd64, arm64 and armhf indexes for both suites, and CI covers those platforms.

Note: one build failed transiently while packages.sury.org was mid-publish (InRelease declared a 420970-byte Packages.gz, Fastly served 420959). It passed on retry once the index settled. This is unrelated to the change but can affect any run that starts right after an upstream publish.

@luispabon
luispabon merged commit d0a03c9 into master Nov 22, 2026
5 checks passed
@luispabon
luispabon deleted the new-ondrej-repo branch November 22, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant