Page MenuHomeDevCentral

D2085.diff
No OneTemporary

D2085.diff

diff --git a/roles/webserver-legacy/php-builder/source.sls b/roles/webserver-legacy/php-builder/source.sls
--- a/roles/webserver-legacy/php-builder/source.sls
+++ b/roles/webserver-legacy/php-builder/source.sls
@@ -37,6 +37,8 @@
def get_build_directory(build):
return "/opt/php/_builds/" + build
+def get_install_directory(build):
+ return "/opt/php/" + build
def get_extract_archive_command(archive, directory):
return "tar xjf " + archive + " --strip-components=1 -C " + directory
@@ -113,20 +115,24 @@
# Task: build PHP
# Task: install PHP
for build_name, build in __pillar__["php_custom_builds"].items():
- directory = get_build_directory(build_name)
+ build_directory = get_build_directory(build_name)
+ install_directory = get_install_directory(build_name)
+
config["php_build_" + build_name + "_phase2_compile"] = {'cmd.run': [
{'names': [
- "cd " + directory,
get_configure(build["version"], build_name),
- "make"
+ "make",
+ "touch .built",
]},
+ {'cwd': build_directory},
{'user': builder_user},
- {'creates': directory + "/configure"},
+ {'creates': build_directory + "/.built"},
]}
config["php_build_" + build_name + "_phase2_install"] = {'cmd.run': [
{'name': "make install"},
- {'creates': directory + "/configure"},
+ {'cwd': build_directory},
+ {'creates': install_directory + "/bin/php"},
]}
return config

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 20:30 (22 h, 12 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248059
Default Alt Text
D2085.diff (1 KB)

Event Timeline