!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

81 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
26 Apr 2022
@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
@drupol:matrix.orgPol
php> Installing PEAR environment: /nix/store/q8wmnnfl0l89a5j8zpnfarl4k8q2fpy6-php-8.1.7.pre+date=20220427002215/lib/php/
php> Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /build/source/pear/fetch.php on line 66
php> Warning: fopen(https://pear.php.net/install-pear-nozlib.phar): Failed to open stream: No such file or directory in /build/source/pear/fetch.php on line 66
php> Error..
php> fopen(https://pear.php.net/install-pear-nozlib.phar): Failed to open stream: No such file or directory
php> make: *** [Makefile:436: install-pear] Error 1
error: builder for '/nix/store/s1ivsfr44x77kwncr1v4kygqlx5pxn3z-php-8.1.7.pre+date=20220427002215.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/f873q9nrh1bbnhrjqmdf6rkci9vbzkq6-php-with-extensions-8.1.7.pre+date=20220427002215.drv' failed to build
09:35:02
@drupol:matrix.orgPolI guess this is because the build environment is jailed and cannot access the network, but I'm not sure yet. 09:35:37
@drupol:matrix.orgPolBesides that, nice work Jan, I really like your approach to this, very interesting. I hope we'll find a way to compile it.09:36:11
@drupol:matrix.orgPolI had to use pdepend for a project, it wasn't in Nix, so I added it: https://github.com/NixOS/nixpkgs/pull/170614 <- needs review12:11:09
@jtojnar:matrix.orgJan Tojnar Pol: might also want to compare the git repo with the source tarball, maybe something is missing? 12:20:21
@drupol:matrix.orgPolI guess they are doing something once the tag as been set on Github. I don't have time today to check it out, but if it's needed, I'll find the time 12:21:14
@drupol:matrix.orgPol Maybe ramsey can tell us more? 12:21:23
@drupol:matrix.orgPol ramsey: Basically, we're trying to compile PHP from Github sources. At some point, we get an error that you see up there. I'm wondering what is done in the tarballs provided on php.net at each release so we can compile them successfully on Nix. 19:21:10
@drupol:matrix.orgPolDo you know anything about that?19:21:19
@ramsey:matrix.orgramsey That looks like it successfully built PHP, but it’s failing when running the PEAR installer. Is there a PHP binary at sapi/cli/php? If so, what do you see when you run ./sapi/cli/php -v? 19:35:30
@ramsey:matrix.orgramsey

This is the error:

Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

What was your full ./configure command? It should be in a file named config.nice.

19:40:52
@ramsey:matrix.orgramseyIs OpenSSL installed? If not, or if configure couldn’t find it, maybe you built PHP without the HTTPS wrapper?19:42:23
28 Apr 2022
@drupol:matrix.orgPolTrying to answer your questions tonight16:46:25
@drupol:matrix.orgPol etu: Could you review this? https://github.com/NixOS/nixpkgs/pull/170614 16:47:27
@drupol:matrix.orgPolDownload php-master.build.log17:08:33
@drupol:matrix.orgPol ramsey: Here's the full build log ^^ 17:08:43

Show newer messages


Back to Room ListRoom Version: 6