!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
22 Jan 2024
@drupol:matrix.orgPol Thanks Jan Tojnar ! 08:41:22
@drupol:matrix.orgPol

php80 cannot be built because of a patch introduced in nixpkgs in the issue you mentionned.
What would be the best way to fix that? Redefine the patches attribute completely or apply a filter to it?

2024-01-22T08:56:09.8936579Z setting SOURCE_DATE_EPOCH to timestamp 1691082788 of file php-8.0.30/win32/wsyslog.c
2024-01-22T08:56:09.9011603Z Running phase: patchPhase
2024-01-22T08:56:09.9049955Z applying patch /nix/store/il8mbrw0nywsi3zgllr5zqjww7vg6bwp-061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch
2024-01-22T08:56:09.9088628Z patching file ext/dom/tests/DOMDocument_loadXML_error1.phpt
2024-01-22T08:56:09.9094519Z can't find file to patch at input line 15
2024-01-22T08:56:09.9098227Z Perhaps you used the wrong -p or --strip option?
2024-01-22T08:56:09.9101672Z The text leading up to this was:
2024-01-22T08:56:09.9104715Z --------------------------
2024-01-22T08:56:09.9108408Z |--- a/ext/dom/tests/DOMDocument_loadXML_error2_gte2_11.phpt
2024-01-22T08:56:09.9111949Z |+++ b/ext/dom/tests/DOMDocument_loadXML_error2_gte2_11.phpt
2024-01-22T08:56:09.9115613Z --------------------------

09:40:39
@drupol:matrix.orgPol *

php80 cannot be built because of a patch (061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch) introduced in nixpkgs in the issue you mentionned.
What would be the best way to fix that? Redefine the patches attribute completely or apply a filter to it?

2024-01-22T08:56:09.8936579Z setting SOURCE_DATE_EPOCH to timestamp 1691082788 of file php-8.0.30/win32/wsyslog.c
2024-01-22T08:56:09.9011603Z Running phase: patchPhase
2024-01-22T08:56:09.9049955Z applying patch /nix/store/il8mbrw0nywsi3zgllr5zqjww7vg6bwp-061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch
2024-01-22T08:56:09.9088628Z patching file ext/dom/tests/DOMDocument_loadXML_error1.phpt
2024-01-22T08:56:09.9094519Z can't find file to patch at input line 15
2024-01-22T08:56:09.9098227Z Perhaps you used the wrong -p or --strip option?
2024-01-22T08:56:09.9101672Z The text leading up to this was:
2024-01-22T08:56:09.9104715Z --------------------------
2024-01-22T08:56:09.9108408Z |--- a/ext/dom/tests/DOMDocument_loadXML_error2_gte2_11.phpt
2024-01-22T08:56:09.9111949Z |+++ b/ext/dom/tests/DOMDocument_loadXML_error2_gte2_11.phpt
2024-01-22T08:56:09.9115613Z --------------------------

09:40:56
@lstrojny:matrix.orgLars Strojny

Pol: building a multi-version dev environment for a composer package, this is the flake.

Couple of questions:

  • Is there a way to not hardcode the vendorHash (think dependabot)?
  • Any way to get xdebug out of require-dev? It's defined there as a dependency
  • Any other tips & tricks?
13:09:22
@lstrojny:matrix.orgLars Strojny *

Pol: building a multi-version dev environment for a composer package, here is the flake.

Couple of questions:

  • Is there a way to not hardcode the vendorHash (think automatic dependency updates through dependabot)?
  • Any way to read the xdebug dependency from require-dev instead of manually requiring it? It's defined there as a dependency
  • Any other tips & tricks?
13:12:35
@drupol:matrix.orgPol Lars Strojny: Yes, this is a good starting point, there's room for improvements, but it's already really good. What you did there is what I already did in loophp/nix-shell basically, except that in that project, you can use any PHP version you want. 13:46:30
@drupol:matrix.orgPolWe should do a small visio to talk about that, currently I can't stay here on Matrix because I'm working at my employer's office in Brussels, but tomorrow I'll be more available. 13:48:14
@lstrojny:matrix.orgLars StrojnyPlease take your time, any help is very much appreciated. Is your recommendation to wrap nix-shell?14:40:09
@drupol:matrix.orgPolLet's discuss that tomorrow if you're available?15:43:06
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
pol: might need to apply some of this https://github.com/NixOS/nixpkgs/pull/269060/commits/93c51d7f606211c54ff935360ecb2bf1435fda4a
It is not possible to apply some patches for php <= 7.4. Do you think we should create our own patch for php <= 7.4 or just backport libxml ?
17:43:48
23 Jan 2024
@lstrojny:matrix.orgLars StrojnyI am08:16:16
@drupol:matrix.orgPolLet me setup my thing and I ping you08:29:43
@drupol:matrix.orgPolETA: ~10min08:29:50
@drupol:matrix.orgPolHere we go: https://meet.jit.si/PoDa08:35:36
@drupol:matrix.orgPol Lars Strojny: ^^ 08:36:04
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
It is not possible to apply some patches for php <= 7.4. Do you think we should create our own patch for php <= 7.4 or just backport libxml ?
Our patches would be preferred, we do not want to end up with a dead copy of nixpkgs
15:18:34
@jtojnar:matrix.orgJan TojnarAlso maybe some of the other distros/ci envs already created them? 15:19:19
@drupol:matrix.orgPolHaven't found anything yet so far :(15:20:23
31 Jan 2024
@drupol:matrix.orgPolCurrently working on this: https://github.com/fossar/nix-phps/pull/32110:06:29
@drupol:matrix.orgPolIt's a big mess... 10:06:33
@drupol:matrix.orgPol Shyim: The PR to add aarch64-darwin is up. I volontary stopped the builds to have more resources on https://github.com/fossar/nix-phps/pull/321 10:07:17
@drupol:matrix.orgPol Shyimand shyim : There are 2 users for you, which one are we supposed to use when we want to ping you? 10:08:47
@drupol:matrix.orgPol Jan Tojnar: I've been working on PR #321, fixed the libxml related issues on all PHP versions. Along the way I had to fix an issue with sqlite3 too.
Now I'm getting issue on darwin archs, and I simply cannot fix them since I don't have such a machine and I don't really understand where it comes from (log: https://github.com/fossar/nix-phps/actions/runs/7724334942/job/21056301213?pr=321)
I pushed my changes in here: https://github.com/fossar/nix-phps/pull/321 I tried to be clear in my commit log message, but when everything will be done, I'll rebase properly, so don't pay attention at the form.
10:16:58
@drupol:matrix.orgPolIssues on old versions of PHP on aarch64-darwin: https://github.com/fossar/nix-phps/actions/runs/7724334942/job/21056301213?pr=321 Libxml issues on newer PHP versions at: https://github.com/fossar/nix-phps/actions/runs/7724334942/job/21056297392?pr=321 Is there anybody who can help on figuring out how to fix them or give some clue on this?10:25:55
@shyim:matrix.orgShyimI tried out a own matrix server and delete that 😂. but the user is still here lol10:34:57
@shyim:matrix.orgShyimCan we maybe backport the libxml2 patches from PHP itself? 🤔10:39:41
@shyim:matrix.orgShyimI can take a look there i have an mac, but i am later traveling to Brussel because MySQL Days, Fosdem 😅10:41:15
@drupol:matrix.orgPolI'll be at fosdem too :)11:26:20
@shyim:matrix.orgShyimthat libxml problem seems also with PHP 8.1 from nixpkgs :D 14:20:08
@shyim:matrix.orgShyim * that libxml problem seems also with PHP 8.1 from nixpkgs :D, not only nix-phps problem14:20:18

Show newer messages


Back to Room ListRoom Version: 6