Commit Graph

523 Commits

Author SHA1 Message Date
pascal
bab2c41591
phpExtensions.parallel: init at 1.2.4 2024-10-25 13:33:55 +02:00
Maximilian Bosch
a06b0e266a
php8{1..3}Extensions.soap: fix tests
See e.g. https://github.com/cachix/devenv/actions/runs/11125063603/job/30922426947#step:7:527

There were multiple issues I observed:

* `--offline` not being set causing several tests to try accessing the
  internet:

      Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'http://www.w3.org/2009/01/xml.xsd' in /build/php-8.3.12/ext/soap/tests/bugs/bug76348.php:2

  I'm not really sure, why this worked before or if a default was
  flipped. However, the tests are passing on Linux (both x86_64-linux
  and aarch64-linux for me).

* On Darwin, a few more tests are failing like this:

      reason: php_network_getaddresses: getaddrinfo for localhost failed: nodename nor servname provided, or not known

  This looks like some sandbox problem on Darwin, but since we have a
  working test-suite on Linux I figured that's good enough and turned it
  off on Darwin.
2024-10-02 12:57:59 +02:00
Maximilian Bosch
620fee7437
phpExtensions: clean up old libxml compat patches
These are part of the patch-level we've packaged.
2024-09-29 09:46:18 +02:00
Maximilian Bosch
5c8b1b25bf
Revert "php82Extensions.soap: fix tests"
This reverts commit bc9dacde24.

Patch is now upstream.
2024-09-28 18:07:27 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
K900
23b4832da0 Merge remote-tracking branch 'origin/master' into staging-next 2024-09-04 08:53:48 +03:00
Maximilian Bosch
bc9dacde24
php82Extensions.soap: fix tests
Closes #339074
2024-09-03 12:45:22 +02:00
github-actions[bot]
eb9c198aae
Merge staging-next into staging 2024-08-26 12:05:49 +00:00
Jan Tojnar
ffc8004c3d php.extensions.mysqlnd: Fix libz underlinking
Prior to 2.13 bump, libxml2 linked zlib so the `compress` symbol was available in the namespace.
This is no longer the case so mysqlnd extension failed to load:

    $ nix-build --expr 'let pkgs = import ./. {}; in pkgs.php.withExtensions ({ all, ... }: [ all.mysqlnd ])' && result/bin/php -i | grep Warning
    /nix/store/rgmbjkdf8vixqq644b3nydcsvqm3m2mi-php-with-extensions-8.2.22
    Warning: PHP Startup: Unable to load dynamic library '/nix/store/c9yffs97qgdp97kz4frsy06r1way30nn-php-mysqlnd-8.2.22/lib/php/extensions/mysqlnd.so' (tried: /nix/store/c9yffs97qgdp97kz4frsy06r1way30nn-php-mysqlnd-8.2.22/lib/php/extensions/mysqlnd.so (/nix/store/c9yffs97qgdp97kz4frsy06r1way30nn-php-mysqlnd-8.2.22/lib/php/extensions/mysqlnd.so: undefined symbol: compress)…
2024-08-26 04:32:14 +02:00
Wolfgang Walther
050689db30
treewide: fix pg_config / postgresql headers moved to dev output
This was supposed to happen in #294504, but the commit was accidentally
left out when splitting off some libpq-related changes. Originated in
#179962, by Sandro.

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2024-08-24 15:44:10 +02:00
Pol Dellaiera
dbc4f15b89
Merge pull request #308059 from drupol/build-support/php/remove-composer-local-repo-plugin
build-support/php: init `buildComposerProject2` and `mkComposerRepository2`
2024-08-20 18:38:44 +02:00
Pol Dellaiera
4c110cd338
Merge pull request #334628 from piotrkwiecinski/8.4beta1
php84: 8.4.0alpha4 -> 8.4.0beta3
2024-08-16 09:12:20 +02:00
Piotr Kwiecinski
3e4323317c
php84: 8.4.0alpha4 -> 8.4.0beta3 2024-08-16 08:02:09 +02:00
Pol Dellaiera
65c0e4ebf6
build-support/php: implement v2 2024-08-15 13:43:00 +02:00
Pol Dellaiera
29aa9e9b12
Merge pull request #334411 from piotrkwiecinski/php81-libxml-2.13
php81: libxml 2.13 compatibility
2024-08-14 16:52:44 +02:00
Piotr Kwiecinski
fa088a9477
php81: libxml2 2.13 compatibility 2024-08-13 20:17:12 +02:00
Pol Dellaiera
f5c25500e1 php84: init at 8.4.0alpha4
https://github.com/php/php-src/blob/php-8.4.0alpha4/NEWS

Announcements:

- alpha1 https://www.php.net/archive/2024.php#2024-07-05-1
  - imap and pspell moved to PECL
- alpha3 https://www.php.net/archive/2024.php#2024-07-18-1
- alpha4 https://www.php.net/archive/2024.php#2024-08-01-3

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2024-08-11 12:12:49 +02:00
Jan Tojnar
a15c71f684 php.extensions.imap: Fetch from PECL
PHP 8.4 will remove it from tree:

987417e2e0

Keeping in-tree versions for PHP < 8.3 since the PECL version does not build there.
2024-08-11 12:12:49 +02:00
Jan Tojnar
b92fa30124 php.extensions.pspell: Fetch from PECL
PHP 8.4 will remove it from tree:

b035cb6c8e
2024-08-11 12:10:00 +02:00
Jan Tojnar
1bf9d8abd0 php.extensions: Filter out enabled attribute
So that the packages are not forced to rebuild when `enabled = true` is added.
2024-08-11 12:10:00 +02:00
Vladimír Čunát
313ac78d0e
phpExtensions.soap: back to doCheck = false (except on Darwin)
On *-linux we get:
> 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]
Logs e.g.: https://github.com/NixOS/nixpkgs/pull/330299/checks?check_run_id=27989364591
2024-07-28 08:19:52 +02:00
Randy Eckenrode
30a6f25d29
php{83,83}Extensions.xmlwriter: apply upstream patch for libxml2 2.13 compatibility 2024-07-26 20:03:06 -04:00
Randy Eckenrode
99c8b8395a
php{83,83}Extensions.xml: apply upstream patch for libxml2 2.13 compatibility 2024-07-26 20:03:05 -04:00
Randy Eckenrode
ae17cd6616
php{83,83}Extensions.soap: apply upstream patch for libxml2 2.13 compatibility 2024-07-26 20:03:03 -04:00
Randy Eckenrode
ff6f05d3cf
php{83,83}Extensions.simplexml: apply upstream patch for libxml2 2.13 compatibility 2024-07-26 20:03:02 -04:00
Randy Eckenrode
d2c6d36823
php{82,83}Extensions.dom: apply upstream patch for libxml2 2.13 compatibility 2024-07-26 20:03:00 -04:00
Pol Dellaiera
5a8fa32aff
php84Extensions.pdo_odbc: add unixODBC buildInput
Since this commit, the `buildInputs` is required now:
6635948b7a

(cherry picked from commit 5073ae476cb9c95234075ce7709a78029437ba81)
2024-07-16 20:26:03 +02:00
Hendrik Söbbing
33a1b6e587
phpExtensions.intl: icu64 -> icu73 2024-06-21 08:27:45 +02:00
Pol Dellaiera
0c44802ac4
phpExtensions.soap: add phpExtensions.session as internal deps.
Context: https://github.com/php/php-src/pull/14362
2024-06-01 22:48:14 +02:00
Pol Dellaiera
a18047b6ad
Merge pull request #312231 from drupol/build-support/php/init-composer-with-plugin
build-support/php: init new builder `php.buildComposerWithPlugin`, refactor `php.packages.composer`, etc
2024-05-23 12:03:42 +02:00
Pol Dellaiera
c99246f169
php.packages.cyclonedx-php-composer: init at 5.2.0 2024-05-19 22:10:03 +02:00
Pol Dellaiera
d503bc4f4a
php.packages.composer-local-repo-plugin: init at 1.1.0 2024-05-19 22:10:03 +02:00
Pol Dellaiera
bd92bef332
php.buildComposerWithPlugin: init new builder 2024-05-19 22:10:02 +02:00
Patka
07849edcfa
phpExtensions.zend_test: fix build
libxml2 headers were missing. For the build failure see: https://hydra.nixos.org/build/259581636/nixlog/1
2024-05-14 18:08:39 +02:00
Vladimír Čunát
1d2dff45d3
php: fix build on darwin (the iconv extension)
https://hydra.nixos.org/build/258946784/nixlog/2/tail
The issue was probably triggered by the darwin iconv changes
done during this staging-next cycle.

Also use enable tests on linux, as they pass for me
on native x86_64 and aarch64.
2024-05-12 08:54:43 +02:00
Pol Dellaiera
3d155494e4
build-support/php: reorganize files
Pave the way for having multiple versions in the future
2024-05-07 11:18:34 +02:00
Pol Dellaiera
08e29ab163
build-support/php: remove confusing with self; 2024-05-07 11:17:14 +02:00
Patka
d3ef766498
phpPackages.phpinsights: init at 2.11.0 2024-03-24 10:21:39 +01:00
Pol Dellaiera
a3d99d0bd3
Merge pull request #287617 from NeverBehave/pkg/php/ioncube-loader
phpExtensions.ioncube-loader: init at 13.0.2
2024-03-17 07:48:45 +01:00
Thomas Gerbet
60c94de436
Merge pull request #295968 from drupol/php/extensions/xsl/update-for-php84
php.extensions.xsl: update extension in prevision of next PHP version
2024-03-14 23:33:38 +01:00
Pol Dellaiera
c3813b73c5
php.extensions.xsl: update extension in prevision of next PHP version
see comments from @nielsdos at https://github.com/php/php-src/pull/13031
2024-03-14 21:24:49 +01:00
Pol Dellaiera
81c42da3c3
php: use --replace-fail 2024-03-14 12:02:39 +01:00
Pol Dellaiera
cb4d58b28d
phpExtensions.dom: update bounds for PHP82 and PHP81 2024-03-11 17:49:29 +01:00
Pol Dellaiera
47195dc3d9
phpExtensions.dom: fix lowest extensions 2024-03-11 16:28:15 +01:00
Pol Dellaiera
ddb92f079f
phpExtensions.relay: remove obsolete inherit 2024-02-25 17:35:08 +01:00
Pol Dellaiera
6addd08220
phpExtensions.blackfire: remove obsolete inherit 2024-02-25 17:35:08 +01:00
Pol Dellaiera
8d0197fe1e
php-codesniffer: init at 3.7.2, phpcs: deprecated, phpcbf: deprecated 2024-02-25 17:35:07 +01:00
NeverBehave
33eb2e8a9c phpExtensions.ioncube-loader: init at 13.0.2 2024-02-09 16:17:25 -08:00
Soner Sayakci
8d83f2153c
php82Extensions.zstd: init at 0.13.3 2024-02-04 20:08:39 +01:00
Pol Dellaiera
6a6c83c138
php: add lower version bound constraint to avoid applying it to older PHP versions. 2024-02-01 10:36:44 +01:00