Commit Graph

544 Commits

Author SHA1 Message Date
Pol Dellaiera
b422ca288c
php82: 8.2.6 -> 8.2.7 2023-06-08 12:08:10 +02:00
Pol Dellaiera
678084e0fa
php81: 8.1.19 -> 8.1.20 2023-06-08 12:08:10 +02:00
Pol Dellaiera
e6a26b900c
php80: 8.0.28 -> 8.0.29 2023-06-08 12:08:09 +02:00
Lars Strojny
095dfa20dc
php: use binary wrappers
Instead of shell wrappers, use binary wrappers which are preferred (see
https://nixos.org/manual/nixpkgs/unstable/#:~:text=Using%20the-,makeBinaryWrapper,implementation%20is%20usually%20preferred,-%2C%20as%20it%20creates)
2023-06-01 13:53:20 +02:00
Pol Dellaiera
69769d3e1b php82: 8.2.5 -> 8.2.6 2023-05-12 17:44:44 +02:00
Pol Dellaiera
e0f2995ab1
php81: 8.1.18 -> 8.1.19 2023-05-11 21:23:50 +02:00
Pol Dellaiera
b384624244 php82: 8.2.4 -> 8.2.5
changelog: https://www.php.net/ChangeLog-8.php#8.2.5
2023-04-17 10:34:34 +02:00
Pol Dellaiera
9b5533a3be php81: 8.1.17 -> 8.1.18
changelog: https://www.php.net/ChangeLog-8.php#8.1.18
2023-04-17 10:33:58 +02:00
Elis Hirwing
f427d9477c
Merge pull request #221845 from lstrojny/fix-php-wrapper
Set PHP_INI_SCAN_DIR only if not set
2023-04-04 12:46:08 +02:00
Pol Dellaiera
64362896c8
php82: 8.2.3 -> 8.2.4 2023-03-20 22:33:50 +01:00
Pol Dellaiera
a5c90b896d
php81: 8.1.16 -> 8.1.17 2023-03-20 22:33:40 +01:00
Lars Strojny
e81872b9f4
Set PHP_INI_SCAN_DIR only if not set
Only set PHP_INI_SCAN_DIR if it isn’t set yet. This is so that users can
provide there own PHP_INI_SCAN_DIR, e.g. to restart the current PHP process
without xdebug.
For example, composer/xdebug-handler uses this mechanism to turn off xdebug
(cf19e3380f/src/XdebugHandler.php (L441))
2023-03-19 22:04:35 +01:00
Pol Dellaiera
853650b77e
php80: 8.0.27 -> 8.0.28 2023-02-15 22:10:57 +01:00
Pol Dellaiera
10e361a93e
php81: 8.1.15 -> 8.1.16 2023-02-15 22:10:57 +01:00
Pol Dellaiera
5d61c37a90
php82: 8.2.2 -> 8.2.3
Security update. News: https://www.php.net/archive/2023.php#2023-02-14-2
2023-02-15 22:10:57 +01:00
Pol Dellaiera
a344af4c24
php: add meta.mainProgram 2023-02-10 09:12:32 +01:00
Pol Dellaiera
fb528f2237
php82: 8.2.1 -> 8.2.2 2023-02-01 21:40:01 +01:00
Pol Dellaiera
806e263d6a
php81: 8.1.14 -> 8.1.15 2023-02-01 20:25:51 +01:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Elis Hirwing
b080bcbedf
Merge pull request #208928 from drupol/php/bumps-january-2023
php interpreter: bumps
2023-01-09 08:23:25 +01:00
Pol Dellaiera
142ac0ba91
php: add updateScript 2023-01-05 13:42:31 +01:00
Pol Dellaiera
041d551384
php81: 8.1.13 -> 8.1.14 2023-01-04 21:42:24 +01:00
Pol Dellaiera
793d5252be
php82: 8.2.0 -> 8.2.1 2023-01-03 21:57:26 +01:00
Pol Dellaiera
19e31cd677
php80: 8.0.26 -> 8.0.27 2023-01-03 21:51:47 +01:00
Elis Hirwing
d7cf24f2fa
php82: 8.2.0-rc7 -> 8.2.0 2022-12-07 14:38:20 +01:00
Pol Dellaiera
5a736d1ee2
php80: 8.0.25 -> 8.0.26
Changelog: https://www.php.net/ChangeLog-8.php#8.0.26
2022-11-27 09:29:02 +01:00
Pol Dellaiera
aa634993cd php82: 8.2.0rc6 -> 8.2.0rc7
News: https://github.com/php/php-src/blob/php-8.2.0RC7/NEWS
2022-11-25 09:32:07 +01:00
Pol Dellaiera
a8b76c097a php81: 8.1.12 -> 8.1.13
Changelog: https://www.php.net/ChangeLog-8.php#8.1.13
2022-11-25 09:31:53 +01:00
Maximilian Bosch
2580440389
Merge pull request #198470 from RaitoBezarius/nc25-openssl
nextcloud25: use openssl 1.1 as a PHP extension to fix RC4 encryption
2022-11-20 18:32:41 +01:00
Pol Dellaiera
1812d1540e
php82: init at 8.2.0rc6 2022-11-16 18:57:26 +01:00
Pol Dellaiera
364a7d2920
php: switch to nts by default 2022-11-13 11:47:27 +01:00
Maximilian Bosch
35b146ca31
nixos/nextcloud: fixup openssl compat change
Upon testing the change itself I realized that it doesn't build properly
because

* the `pname` of a php extension is `php-<name>`, not `<name>`.
* calling the extension `openssl-legacy` resulted in PHP trying to compile
  `ext/openssl-legacy` which broke since it doesn't exist:

      source root is php-8.1.12
      setting SOURCE_DATE_EPOCH to timestamp 1666719000 of file php-8.1.12/win32/wsyslog.c
      patching sources
      cdToExtensionRootPhase
      /nix/store/48mnkga4kh84xyiqwzx8v7iv090i7z66-stdenv-linux/setup: line 1399: cd: ext/openssl-legacy: No such file or directory

I didn't encounter that one before because I was mostly interested in
having a sane behavior for everyone not using this "feature" and the
documentation around this. My findings about the behavior with turning
openssl1.1 on/off are still valid because I tested this on `master` with
manually replacing `openssl` by `openssl_1_1` in `php-packages.nix`.

To work around the issue I had to slightly modify the extension
build-system for PHP:

* The attribute `extensionName` is now relevant to determine the output
  paths (e.g. `lib/openssl.so`). This is not a behavioral change for
  existing extensions because then `extensionName==name`.

  However when specifying `extName` in `php-packages.nix` this value is
  overridden and it is made sure that the extension called `extName` NOT
  `name` (i.e. `openssl` vs `openssl-legacy`) is built and installed.

  The `name` still has to be kept to keep the legacy openssl available
  as `php.extensions.openssl-legacy`.

Additionally I implemented a small VM test to check the behavior with
server-side encryption:

* For `stateVersion` below 22.11, OpenSSL 1.1 is used (in `basic.nix`
  it's checked that OpenSSL 3 is used). With that the "default"
  behavior of the module is checked.

* It is ensured that the PHP interpreter for Nextcloud's php-fpm
  actually loads the correct openssl extension.

* It is tested that (encrypted) files remain usable when (temporarily)
  installing OpenSSL3 (of course then they're not decryptable, but on a
  rollback that should still be possible).

Finally, a few more documentation changes:

* I also mentioned the issue in `nextcloud.xml` to make sure the issue
  is at least mentioned in the manual section about Nextcloud. Not too
  much detail here, but the relevant option `enableBrokenCiphersForSSE`
  is referenced.

* I fixed a few minor wording issues to also give the full context
  (we're talking about Nextcloud; we're talking about the PHP extension
  **only**; please check if you really need this even though it's
  enabled by default).

  This is because I felt that sometimes it might be hard to understand
  what's going on when e.g. an eval-warning appears without telling where
  exactly it comes from.
2022-11-11 14:45:46 +01:00
Pol Dellaiera
f8cd3d8b2b
php81: 8.1.11 -> 8.1.12 2022-10-29 08:34:15 +02:00
Pol Dellaiera
305a0e8e65
php80: 8.0.24 -> 8.0.25 2022-10-29 08:33:57 +02:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Pol Dellaiera
d81b7507f0 php: enable imap extension by default 2022-10-03 10:06:48 +02:00
Shyim
6350f1b106
php: enable sysvsem by default 2022-10-01 16:58:45 +02:00
Pol Dellaiera
51ada90c64
php81: 8.1.10 -> 8.1.11 2022-09-30 09:38:38 +02:00
Pol Dellaiera
0d87d2232a
php80: 8.0.23 -> 8.0.24 2022-09-30 09:38:26 +02:00
Elis Hirwing
7986fac217
Merge pull request #190877 from drupol/php/bump-to-8.0.23
php80: 8.0.22 -> 8.0.23
2022-09-12 07:53:49 +02:00
Pol Dellaiera
5f1dfe2c0f
php80: 8.0.22 -> 8.0.23 2022-09-12 07:17:16 +02:00
Tomasz Hanc
0a586cd4d5 php: 8.1.9 -> 8.1.10 2022-09-11 22:55:18 +02:00
ajs124
da6ccfbab2 php81: 8.1.8 -> 8.1.9
https://www.php.net/ChangeLog-8.php#8.1.9
2022-08-05 00:20:10 +02:00
ajs124
2b483c62db php80: 8.0.21 -> 8.0.22
https://www.php.net/ChangeLog-8.php#8.0.22
2022-08-05 00:19:54 +02:00
ajs124
e416f8806d php81: 8.1.7 -> 8.1.8
Fixes CVE-2022-31627

https://www.php.net/ChangeLog-8.php#8.1.8
2022-07-08 18:24:36 +02:00
ajs124
b429bc2508 php80: 8.0.20 -> 8.0.21
https://www.php.net/ChangeLog-8.php#8.0.21
2022-07-08 18:23:30 +02:00
ajs124
3020f0014c php: sha256 -> hash 2022-07-08 18:22:14 +02:00
Elis Hirwing
b6d8d68ce9
Merge pull request #177136 from drupol/php/bumps-june-2022
PHP Bumps
2022-06-10 15:51:18 +02:00
Pol Dellaiera
5d890c086a
php81: 8.1.6 -> 8.1.7 2022-06-10 12:27:08 +02:00
Pol Dellaiera
24e9824ddb
php80: 8.0.19 -> 8.0.20 2022-06-10 12:27:08 +02:00