[5.5.x] php-fpm.service doesn't correctly generate
Hello
I've tried to compile php 5.5.37 version and src/php-5.5.37/sapi/fpm/php-fpm.service is not correctly updated. ${prefix} and ${exec_prefix} are again present. On php 7.x looks ok.
Hello,
Thank you for taking the time to report this issue. I can confirm that the variables in php-fpm.service are indeed not substituted on PHP 5.x. However, this is also true for later versions (<= 7.0.15).
If you want to get the same result on PHP 5.5.37 as you get on modern PHP 7.x releases, you will have to patch the PHP sources yourself before calling phpfarm. The patch you want to apply is this one: https://github.com/php/php-src/commit/bb19125781c0794da9a63fee62e263ff4efff661
You can also automate the process. For example, assuming you saved the patch above into /home/me/phpfarm/patches/bb19125781c0794da9a63fee62e263ff4efff661.patch, you could add the following script to your custom/options.sh:
#!/bin/bash
pushd "php-$1"
patch -r - -N -p0 < /home/me/phpfarm/patches/bb19125781c0794da9a63fee62e263ff4efff661.patch
popd