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

[staging-next] PHP 8.2 and 8.3 fixes for libxml2 2.13 #330299

Merged
merged 6 commits into from
Jul 28, 2024

Conversation

reckenrode
Copy link
Contributor

Description of changes

Applies upstream patches to fix libxml2 2.13 compatibility issues. Fixes build failures on staging-next #328673.

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.

@reckenrode
Copy link
Contributor Author

I can drop soap, xml, and xmlwriter if that would be preferred since they do seem to build on Hydra.

@reckenrode
Copy link
Contributor Author

Result of nixpkgs-review pr 330299 run on aarch64-darwin 1

1 package marked as broken and skipped:
  • qcachegrind
22 packages failed to build:
  • n98-magerun
  • php81
  • php81Extensions.soap
  • php81Extensions.soap.dev
  • php81Packages.castor
  • php81Packages.composer
  • php81Packages.composer-local-repo-plugin
  • php81Packages.cyclonedx-php-composer
  • php81Packages.deployer
  • php81Packages.grumphp
  • php81Packages.phan
  • php81Packages.phing
  • php81Packages.phive
  • php81Packages.php-codesniffer
  • php81Packages.php-cs-fixer
  • php81Packages.php-parallel-lint
  • php81Packages.phpinsights
  • php81Packages.phpmd
  • php81Packages.phpstan
  • php81Packages.psalm
  • php81Packages.psysh
  • snipe-it
108 packages built:
  • adminer
  • adminerevo
  • php (apacheHttpdPackages.php)
  • composer-require-checker
  • davis
  • engelsystem
  • firefly-iii
  • flarum
  • frankenphp
  • freshrss
  • grocy
  • icingaweb2
  • laravel
  • matomo
  • matomo-beta
  • matomo_5
  • movim
  • n98-magerun2
  • nagios
  • nextcloud-news-updater
  • nextcloud-news-updater.dist
  • nominatim
  • paratest
  • pdepend
  • pest
  • phel
  • phoronix-test-suite
  • php81Packages.box (php82Packages.box ,php83Packages.box)
  • php82Extensions.dom
  • php82Extensions.dom.dev
  • php82Extensions.simplexml
  • php82Extensions.simplexml.dev
  • php82Extensions.soap
  • php82Extensions.soap.dev
  • php82Extensions.xml
  • php82Extensions.xml.dev
  • php82Extensions.xmlreader
  • php82Extensions.xmlreader.dev
  • php82Extensions.xmlwriter
  • php82Extensions.xmlwriter.dev
  • php82Extensions.xsl
  • php82Extensions.xsl.dev
  • php82Extensions.zend_test
  • php82Extensions.zend_test.dev
  • php82Packages.castor
  • php82Packages.composer
  • php82Packages.composer-local-repo-plugin
  • php82Packages.cyclonedx-php-composer
  • php82Packages.deployer
  • php82Packages.grumphp
  • php82Packages.phan
  • php82Packages.phing
  • php82Packages.phive
  • php82Packages.php-codesniffer
  • php82Packages.php-cs-fixer
  • php82Packages.php-parallel-lint
  • php82Packages.phpinsights
  • php82Packages.phpmd
  • php82Packages.phpstan
  • php82Packages.psalm
  • php82Packages.psysh
  • php83
  • php83Extensions.dom
  • php83Extensions.dom.dev
  • php83Extensions.simplexml
  • php83Extensions.simplexml.dev
  • php83Extensions.soap
  • php83Extensions.soap.dev
  • php83Extensions.xml
  • php83Extensions.xml.dev
  • php83Extensions.xmlreader
  • php83Extensions.xmlreader.dev
  • php83Extensions.xmlwriter
  • php83Extensions.xmlwriter.dev
  • php83Extensions.xsl
  • php83Extensions.xsl.dev
  • php83Extensions.zend_test
  • php83Extensions.zend_test.dev
  • php83Packages.castor
  • php83Packages.composer
  • php83Packages.composer-local-repo-plugin
  • php83Packages.cyclonedx-php-composer
  • php83Packages.deployer
  • php83Packages.grumphp
  • php83Packages.phan
  • php83Packages.phing
  • php83Packages.phive
  • php83Packages.php-codesniffer
  • php83Packages.php-cs-fixer
  • php83Packages.php-parallel-lint
  • php83Packages.phpinsights
  • php83Packages.phpmd
  • php83Packages.phpstan
  • php83Packages.psalm
  • php83Packages.psysh
  • phpactor
  • phpdocumentor
  • phpunit
  • pixelfed
  • roave-backward-compatibility-check
  • robo
  • rss-bridge-cli
  • signaturepdf
  • simplesamlphp
  • vimPlugins.phpactor
  • wp-cli
  • yle-dl
  • yle-dl.dist

Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

The soap part is still failing on *-linux (ofBorg and locally).

> FAILED TEST SUMMARY
> ---------------------------------------------------------------------
> SOAP Bug #71610 - Type Confusion Vulnerability - SOAP / make_http_soap_request() [tests/bug71610.phpt]
> Bug #76348 (WSDL_CACHE_MEMORY causes Segmentation fault) [tests/bugs/bug76348.phpt]

On *-linux we get:
> FAILED TEST SUMMARY
> ---------------------------------------------------------------------
> SOAP Bug NixOS#71610 - Type Confusion Vulnerability - SOAP / make_http_soap_request() [tests/bug71610.phpt]
> Bug NixOS#76348 (WSDL_CACHE_MEMORY causes Segmentation fault) [tests/bugs/bug76348.phpt]
Logs e.g.: https://github.com/NixOS/nixpkgs/pull/330299/checks?check_run_id=27989364591
@vcunat
Copy link
Member

vcunat commented Jul 28, 2024

Oh, you enabled tests on the soap part. They pass on aarch64-darwin for me, but clearly not on *-linux, so let me simply disable them on Linux again.

@reckenrode
Copy link
Contributor Author

Oh, you enabled tests on the soap part. They pass on aarch64-darwin for me, but clearly not on *-linux, so let me simply disable them on Linux again.

I assumed it was a libxml2 issue not some other issue. Thanks for catching that and fixing it.

@vcunat
Copy link
Member

vcunat commented Jul 28, 2024

I wouldn't say I "fixed" it, but seems good enough to merge, even though PHP 8.1 looks broken.

@vcunat vcunat merged commit 4e4a7d8 into NixOS:staging-next Jul 28, 2024
9 of 10 checks passed
@drupol drupol added backport release-24.05 Backport PR automatically and removed backport release-24.05 Backport PR automatically labels Sep 28, 2024
@NixOS NixOS deleted a comment from github-actions bot Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants