Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3746359
D2085.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2085.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2085: Improve Salt-controlled PHP build process
Attached
Detach File
Event Timeline
Log In to Comment