Recompile PHP without overwriting the PHP folder

asmar

Verified User
Joined
Aug 29, 2005
Messages
101
Location
https://t.me/pump_upp
Hi all,

I need to apply a patch to PHP 5.2 in order to avoid some compile errors on Debian 7 and can't figure out how to do it without having the build command to extract and overwrite each time my code.

Example

cd php-5.2.17
patch -p1 < mypatch

but then when running ./build php n it overwrite my php-5.2.17 folder and missing the patch.

Any idea?

Thanks
 
Please do the following:
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -p configure/ap2/configure.php5 custom/ap2/configure.php5

Now edit the custom/ap2/configure.php5 file with your favorite editor and add:
Code:
patch -p1 < [B]/full/path/to/your/file.patch[/B]
Below:
Code:
#!/bin/sh

Save the file and run "./build php n" now. Good luck! :)
 
Back
Top