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: build from github source #89329
Conversation
Can you explain to me why this is an improvement over the current package? |
Releases (both stable and unstable) are published to github before php.net. With this change, we can test unstable releases sooner. Also we can test 8.0-dev version with this change. |
I'm fine with testing unstable packages sooner, but please be cautious about tags being published on github.com: I still remember when PHP 7.0.0 was released (on Dec 03 2015), people wrongly assumed that it was out on Dec 01 2015 since this was the date where the tag was published. |
@NixOS/php who can check correct working of this patch:
No build errors. |
@jtojnar these changes were done quite a long time ago. Probably something was changed in build process since that time. |
I totally agree with this. PHP does the official releases with changelogs on their website. Those tarballs are the ones that they say that people should use. So I'm skeptical to the entire effort due to this. |
679a01a
to
984ec73
Compare
@GrahamcOfBorg build php73.unwrapped |
dab7cb9
to
825c3ac
Compare
As a PHP extension developer that uses NixOS, testing against php master has been a pain. Although, personally, I think it would be ideal to fetch the official release tarballs instead of those from GitHub for the actual derivations, it would be very nice for an easy way to override the src with php master from GitHub. I suspect the other changes in the PR are required for that to work correctly? |
@jbboehr build option required using tarballs and github sources? Have not tried this way. |
cc @NixOS/php |
I marked this as stale due to inactivity. → More info |
Yeah, it is now easy to use a different source as needed, like we did for 8.2: |
Motivation for this change
Build php packages from github sources.
The source files on php.net are created using these scripts:
https://github.com/php/php-src/blob/php-7.4.6/scripts/dev/makedist
https://github.com/php/php-src/blob/php-7.4.6/scripts/dev/genfiles
https://github.com/php/php-src/blob/php-7.4.6/buildconf
@NixOS/php
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)