summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd.build
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-19 16:13:26 +0100
committerSimon Rettberg2013-12-19 16:13:26 +0100
commit1997e591e361f57e342296c9b69ca84531041729 (patch)
treea1fe1ec30f9aff939f95a296936384ca7cbd0f94 /remote/modules/systemd/systemd.build
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-1997e591e361f57e342296c9b69ca84531041729.tar.gz
tm-scripts-1997e591e361f57e342296c9b69ca84531041729.tar.xz
tm-scripts-1997e591e361f57e342296c9b69ca84531041729.zip
[systemd] Add patch that doesn't clear HOME and USER environment variable to avoid a deadlock in libc/nss/nss_ldap/openssl/libpkcs11
Diffstat (limited to 'remote/modules/systemd/systemd.build')
-rw-r--r--remote/modules/systemd/systemd.build9
1 files changed, 5 insertions, 4 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build
index c9d23794..2c15eccf 100644
--- a/remote/modules/systemd/systemd.build
+++ b/remote/modules/systemd/systemd.build
@@ -1,12 +1,13 @@
#tool/distro specific functions for fetching, building and installing dependencies
fetch_source () {
+ # systemd
download_untar "$REQUIRED_URL" "src/"
- download_untar "$REQUIRED_LIBKMOD_URL" "src/"
+ # Patch PATH, HOME, USER environment
+ patch -p0 src/systemd-*/src/core/main.c < systemd-openslx.patch || perror "Failed to apply openslx systemd patch."
- # Patch PATH environment
- sed -s -i -r 's#"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin(:/sbin:/bin)?"#& ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"#g' src/systemd-*/src/core/main.c
- sed -s -i -r 's#"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"#& ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"#g' src/systemd-*/src/nspawn/nspawn.c
+ # libkmod
+ download_untar "$REQUIRED_LIBKMOD_URL" "src/"
}
build () {