!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
26 Apr 2022
@drupol:matrix.orgPol
In reply to @andreas.schraegle:helsinki-systems.de
the easiest way around that is probably just using gcc < 11
How to specify the gcc version to use then?
08:34:06
@andreas.schraegle:helsinki-systems.deAndreas SchrägleThere's a lot of ways, but the easiest is probably using gcc10Stdenv instead of stdenv. Although that probably breaks the build on aarch64, if that works right now, for reasons.08:39:31
@drupol:matrix.orgPolOh... damn :S08:40:10
@drupol:matrix.orgPol Jan Tojnar: WDYT ? ^^ 08:40:21
@andreas.schraegle:helsinki-systems.deAndreas Schrägle
In reply to @andreas.schraegle:helsinki-systems.de
There's a lot of ways, but the easiest is probably using gcc10Stdenv instead of stdenv.
Although that probably breaks the build on aarch64, if that works right now, for reasons.
I can link the reasons, but basically it's because libgcc_s.so is from the bootstrap tarball. Or something like that. It's complicated -.-
08:43:08
@drupol:matrix.orgPolIndeed, this is way too complex for me.08:45:01
@jtojnar:matrix.orgJan Tojnar Pol: I would look for a patch that allows it to build with newer gcc 09:59:25
@drupol:matrix.orgPolI already checked, but couldn't find anything. Nobody's looking to compile PHP < 7.4 with newest GCC !10:04:12
@jtojnar:matrix.orgJan Tojnarwell, it must have been fixed in PHP 8 at some point10:28:02
@jtojnar:matrix.orgJan Tojnarso perhaps there is patch in PHP repo that we can backport10:28:17
@jtojnar:matrix.orgJan Tojnarif we make nix-phgs able to build from git, we could try bisecting it10:29:28
@andreas.schraegle:helsinki-systems.deAndreas Schrägle
In reply to @jtojnar:matrix.org
if we make nix-phgs able to build from git, we could try bisecting it
why isn't it, right now? I remember a pr that made the php in nixpkgs build from git, which we probably didn't merge for reasons. maybe it was even by Pol? or by Izorkin? maybe I'm making all of this up. well never find out, unless someone searches github.
16:43:57
@drupol:matrix.orgPol
In reply to @andreas.schraegle:helsinki-systems.de
why isn't it, right now? I remember a pr that made the php in nixpkgs build from git, which we probably didn't merge for reasons. maybe it was even by Pol? or by Izorkin? maybe I'm making all of this up. well never find out, unless someone searches github.
I tried indeed, but I think I never submitted a PR
16:44:26
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
I tried indeed, but I think I never submitted a PR
you did https://github.com/NixOS/nixpkgs/pull/155012
18:07:14
@jtojnar:matrix.orgJan Tojnar
In reply to @andreas.schraegle:helsinki-systems.de
why isn't it, right now? I remember a pr that made the php in nixpkgs build from git, which we probably didn't merge for reasons. maybe it was even by Pol? or by Izorkin? maybe I'm making all of this up. well never find out, unless someone searches github.
we usually prefer the official distribution method to reduce the chance of divergences. For PHP it is tarballs.
18:09:50
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
you did https://github.com/NixOS/nixpkgs/pull/155012
Ah that controversial one ! :)
18:19:34
@drupol:matrix.orgPolhttps://github.com/NixOS/nixpkgs/commit/52f8cf58a4504e5e219faebffa51033e400e3aec#r7222807518:29:22
@jtojnar:matrix.orgJan Tojnar Pol: I added the master version here https://github.com/fossar/nix-phps/pull/104 19:15:52
@jtojnar:matrix.orgJan Tojnarbut currently it fails to build19:16:03
@jtojnar:matrix.orgJan Tojnarand I run out of time to investigate19:17:30
@drupol:matrix.orgPolOmg, checking this out 19:20:52
@drupol:matrix.orgPolLooks amazing19:28:03
@drupol:matrix.orgPolCan't wait for tomorrow to review all of this.19:28:14
@drupol:matrix.orgPolI think you should use a specific branch instead of master19:28:35
@drupol:matrix.orgPolhttps://github.com/php/php-src/tree/PHP-8.119:29:35
@drupol:matrix.orgPolJust for the sake of it, try with that branch19:30:02
@jtojnar:matrix.orgJan Tojnar Pol: nix build --override-input php github:php/php-src/PHP-8.1 -L .#php-master should work 19:40:59
@drupol:matrix.orgPolGoing to test tomorrow, this is my evening without computer 😅19:56:43
@jtojnar:matrix.orgJan Tojnar * Pol: nix build --override-input php-src github:php/php-src/PHP-8.1 -L .#php-master should work 20:06:15
27 Apr 2022
@drupol:matrix.orgPolI tried, but I'm unable to go further than this: https://dpaste.org/wDL4A09:34:32

Show newer messages


Back to Room ListRoom Version: 6