-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php: update build config and php package #62783
Conversation
@Izorkin Please add details for |
@aanderse PHP generates its lexer using re2c from the zend_language_scanner.l definition file - https://phpinternals.net/categories/lexer
|
du -h --max=0 -c $(nix-store -qR /run/current-system) | sort -h | tail
after update
|
@Izorkin Why are you looking to generate the parsers with |
@aanderse PHP generates its lexer using re2c from the zend_language_scanner.l definition file - https://phpinternals.net/categories/lexer |
@Izorkin I understand what a lexer is. I'm familiar with I'm asking what features are missing from |
@aanderse i do not know. I just removed the message varning. |
It would be nice to know what value having |
Is there an option how to check? |
Maybe the documentation explains. I'll mention that I've seen this same warning not just in NixOS but Debian as well. Possibly RedHat, though I'm not certain on that. |
If we don't see any benefit of including this, like feature, performance or security wise I don't see any point in including it. And warnings during compilations of software is not uncommon, it happens on every distro everywhere because of different versions of libs, compilers, kernels, headers, etc. It happens everywhere. So just to silence warnings is not a good enough reasons to me. |
re2c is already in use when building |
Found information - https://grokbase.com/t/php/php-internals/0832kd02zs/rfc-replace-the-flex-based-scanner-with-an-re2c-1-based-lexer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Izorkin Thanks for doing the research! The oci8
package compiles against both php72
and php73
.
@GrahamcOfBorg build php71 php71Packages.composer php71Packages.event php72 php72Packages.composer php72Packages.event php73 php73Packages.composer php73Packages.event |
Now that's a good reason and good resource, thanks. I just want to see that it all builds on all platforms first :) |
Thanks! |
Motivation for this change
With enable apxs2Support php automatic buildinfg with --enable-maintainer-zts
Enable build phpPackages with re2c.
Remove options valgrindPcreSupport. This options not used with external PCRE
Update buyild config. Packages autoconf, bison, flex, libtool, pkgconfig, re2c need only build php - https://www.php.net/manual/en/install.unix.php
Update phpPackage event to 2.5.2
cc @etu
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)