Skip to content

[Backport release-26.05] php.buildComposerProject2: use cacert for vendored composer/ca-bundle - #576994

Merged
philiptaron merged 2 commits into
release-26.05from
backport-576561-to-release-26.05
Oct 21, 2026
Merged

philiptaron merged 2 commits into
release-26.05from
backport-576561-to-release-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to release-26.05, triggered by a label in #576561.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

composer/ca-bundle uses SSL_CERT_FILE, SSL_CERT_DIR, openssl.cafile and
well-known system paths first. If none of them is usable (for example a
container without /etc/ssl, or a sandbox without cacert), it uses its
vendored res/cacert.pem. That copy does not get cacert updates.

Replace it with a symlink to the cacert bundle.

Ref: #576541

Assisted-by: Claude Code (claude-opus-5)
(cherry picked from commit 62e23af)
Many PHP applications vendor composer/ca-bundle. It uses
SSL_CERT_FILE, SSL_CERT_DIR, openssl.cafile and well-known system
paths first. If none of them is usable (for example a container
without /etc/ssl, or a sandbox without cacert), it uses its vendored
res/cacert.pem. That copy does not get cacert updates.

Replace every vendored copy with a symlink to the cacert bundle in the
install hook. This also covers composer, so remove its own symlink.

Ref: #576541

Assisted-by: Claude Code (claude-opus-5)
(cherry picked from commit 9a579e4)
@nixpkgs-ci
nixpkgs-ci Bot requested a review from zimbatm October 21, 2026 20:37
@nixpkgs-ci
nixpkgs-ci Bot requested a review from philiptaron October 21, 2026 20:43
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. llm-assisted Contributions that include code generation with LLMs 6.topic: php PHP is a general-purpose scripting language geared towards web development. 4.workflow: backport This targets a stable branch labels Oct 21, 2026
@philiptaron
philiptaron added this pull request to the merge queue Oct 21, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 21, 2026
Merged via the queue into release-26.05 with commit da6dc0e Oct 21, 2026
35 checks passed
@philiptaron
philiptaron deleted the backport-576561-to-release-26.05 branch October 21, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: php PHP is a general-purpose scripting language geared towards web development. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants