Commit Graph

536 Commits

Author SHA1 Message Date
Maximilian Bosch
ff0df8fe7a
php: 8.4.0RC3 -> 8.4.0RC4, 8.3.12 -> 8.3.13 (#354562)
* php84: 8.4.0RC3 -> 8.4.0RC4

* php83: 8.3.12 -> 8.3.13

ChangeLog: https://www.php.net/ChangeLog-8.php#PHP_8_3
2024-11-09 13:20:50 +01:00
Sandro Jäckel
4bb99d0350
php{81,82,83,84}Extensions.pdo_dblib: fix broken condition 2024-11-05 15:58:07 +01:00
Emily
733c8cddba php{81,82,83,84}Extensions.snmp: remove Darwin conditional
This was accidentally inverted, but also it builds fine on Darwin now.
2024-11-03 19:46:26 +00:00
Maximilian Bosch
11c20b26cc
php84Extensions.soap: skip tests
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] c7797fc8c0
2024-11-01 19:13:57 +01:00
Tristan Ross
fb01d572b5
release-lib: build packages without meta.platforms on all platforms (#351919) 2024-10-30 09:35:04 -07:00
Emily
d6324880a4 phpExtensions.*: inherit meta.platforms from PHP 2024-10-29 19:42:46 +00:00
Emily
8b7ca25150 phpExtensions.*: use meta.broken rather than filtering 2024-10-29 19:42:46 +00:00
Fabián Heredia Montiel
34b62f7c47 Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 16:10:56 -06:00
Artturin
e88258b3fd
php81: replace local patch with an official commit (#337001) 2024-10-27 15:21:19 +02:00
github-actions[bot]
d16edfa996
Merge master into staging-next 2024-10-26 06:04:21 +00:00
pascal
bab2c41591
phpExtensions.parallel: init at 1.2.4 2024-10-25 13:33:55 +02:00
Randy Eckenrode
7fe9eca380
phpExtensions.iconv: fix build on Darwin after the SDK update
PHP’s m4 macros assume that the libiconv shared library can be found at
the same base path as its headers, but that’s not the case on Darwin.
Its libiconv has separate outputs.
2024-10-12 20:31:03 -04: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
Piotr Kwiecinski
9a04e8dc45
php81: replace a patch from a fork with an official commit 2024-08-24 15:13:22 +02:00
Piotr Kwiecinski
8f66f0bcf9
php81: replace local patch with an official commit 2024-08-24 14:20:44 +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