On 01/29/2013 12:43 PM, Larry Garfield wrote:
> On 1/29/13 11:46 AM, Ralf Lang wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Am 29.01.2013 18:38, schrieb Pierre Joye:
>>> On Tue, Jan 29, 2013 at 6:24 PM, Attila Bukor
>>> <attila.bukor@gmail.com> wrote:
>>>> I think Ralf's idea is great. A lot of other projects use nightly
>>>> builds successfully. I don't think a vbox image would be
>>>> necessary as no-one would use nightly builds on a production
>>>> environment,
>>>
>>> It is not about using anything in prod but catch bugs as early as
>>> possible in the QA process.
>>
>> I understand that. Automated distribution packaging of wip code is not
>> meant for production but for rapid deployment of "clean state" test
>> environments. It's similar to a CI suite.
>>
>> If there is enough interest in php snapshots as rpm, I could begin
>> such a setup on monday.
>
> If I could run my own VM (that much I can do) and periodically just do
> apt-get update php-head, that would lower the barrier to testing new
> versions by several orders of magnitude. (Yeah yeah insert RPM vs. Apt
> debate here; both are good to have.) That would be *sweet*. +1
Is building from git really that much harder? Yes, it takes a little bit
of tweaking to get your configure flags right and getting all the right
dev versions of the dependencies installed, but at least on
Debian/Ubuntu (since you mentioned apt) you have the quick shortcut of
doing:
apt-get build-dep php5
which installs everything you should need to build it.
I usually keep a little "cn" script around which is just a saved
config.nice that I hack on when I am testing stuff. You can see a
slightly simplified version of the one I use for 5.5 here:
http://lerdorf.com/cn.txt
If you don't have a checkout of the tree already, do:
git clone -b PHP-5.5 git://git.php.net/php-src.git
Not that this actually checks out all the branches, but puts you on the
5.5 branch automatically. You can switch branches without redownloading
to test other versions.
cd php-src
./buildconf
./cn
make
make install
All done. To check updated versions, just cd into your php-src directory
and type:
git pull
./buildconf
./cn
make
make install
You may sometimes need to do a "make clean" and for minor changes you
can skip the builconf and configure and just make again and hope the
make dependency system works.
I realize this is slightly more complicated than an apt-get, but
pre-building packages that will work with all the combinations of
libraries and things out there is a PITA. By building your own you get
to choose everything by editing your cn script.
-Rasmus