On Tuesday 26 August 2014 21:30:16 Andrea Faulds wrote: > > Why would a non-internals person want to build PHP from git? That’s just > making things harder on themselves.
I disagree. The build environment I scripted together for myself, initializes a build tree (php-src and various extensions) from git and svn. For git it also automatically uses a local git mirror, so I only need to fetch changes once regardless of what I want to build. This allows me to easily set up several build trees which check out different tags / branches. Furthermore I "enter" the build tree with some magic that bind-mounts, in a local mount namespace, a build-tree local directory to /opt/php (and another one to /usr/lib64/apache2 for mod_php), so while building, the "outer system" PHP is completely hidden. This bind-mounting-in-namespace stuff then permits me to simply run make install, run any kind of private tests against the newly built setup, run several of these build trees in parallel without disturbing each other, and without disturbing the outer system; I can even enter this as root, and restart apache in a build tree to test out a fresh mod_php So, I use git as a source for building, AND I have a setup that has no php CLI available during the build. > Besides PHP itself (should my proposal > succeed), you need other extra dependencies, including a lexer generator if > Nikita’s proposal succeeds. The difference is that none of these are both required during the build _and_ produced by the build. They are just installed once on the build system and used by all builds. best regards Patrick