Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP packages & extensions ZHF #352945

Merged
merged 7 commits into from
Nov 2, 2024
Merged

PHP packages & extensions ZHF #352945

merged 7 commits into from
Nov 2, 2024

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Nov 1, 2024

Marks a bunch of things as broken and fixes psysh and php84Extensions.soap.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

ZHF NixOS#352882

Doesn't compile with PHP 8.3: https://hydra.nixos.org/build/276605925

We actually want to use the `couchbase-php-client`[1] repo. I briefly
tried to package it, but given that I don't care a bit about this
specific extension and it was far too annoying (vendored C++ libraries,
.gitattributes removing CMake files from the GitHub tarball, a random
CMake "package manager" is used) I decided to not bother.

If nobody steps up, I'd suggest to throw it out when PHP 8.2 becomes
EOL.

[1] https://github.com/couchbase/couchbase-php-client/
See https://hydra.nixos.org/build/275613910

The issue that symbols from `session.so` cannot be loaded doesn't happen
when building a PHP with ext-soap enabled.

To me it seems as if PHP just doesn't find it on runtime. My current
hypothesis is that this is because ext-soap now depends on ext-session[1].

[1] php/php-src@c7797fc
I originally wanted to investigate what went wrong here, but I guess
that the tag just got force-pushed.

See https://hydra.nixos.org/build/276639542
@@ -663,7 +663,7 @@ in {
# Some tests are causing issues in the Darwin sandbox with issues
# such as
# Unknown: php_network_getaddresses: getaddrinfo for localhost failed: nodename nor servname provided
doCheck = !stdenv.hostPlatform.isDarwin;
doCheck = !stdenv.hostPlatform.isDarwin && lib.versionOlder php.version "8.4";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the commit message for the rationale. If somebody has a better solution, I'm all for it.

Copy link
Contributor

@patka-123 patka-123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and makes sense. Builds fine, as expected.

Thanks!

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 1, 2024
@ofborg ofborg bot requested a review from piotrkwiecinski November 2, 2024 04:18
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 labels Nov 2, 2024
@Ma27 Ma27 mentioned this pull request Nov 2, 2024
13 tasks
@wegank wegank added 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Nov 2, 2024
@drupol
Copy link
Contributor

drupol commented Nov 2, 2024

hey @piotrkwiecinski ! Long time no see! All good?

@Ma27 Ma27 merged commit 520015d into NixOS:master Nov 2, 2024
43 of 44 checks passed
@Ma27 Ma27 deleted the php-exts branch November 2, 2024 14:12
@piotrkwiecinski
Copy link
Contributor

hi @drupol . All good. Live happened. I'm slowly getting back to contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: php 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants