From 1251d0b2227cb196e12fca2dfa81e6e5de895111 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Mon, 5 Aug 2013 18:20:28 +0200 Subject: [systemd.build] Added switch for Scientific Linux: Patching configure. This is solely experimental and will vanish again - hopefully. --- remote/modules/systemd/systemd.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'remote/modules/systemd') diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build index 8052ca4e..e481f74e 100644 --- a/remote/modules/systemd/systemd.build +++ b/remote/modules/systemd/systemd.build @@ -20,6 +20,16 @@ build () { #build systemd pinfo "Building systemd" cd "${MODULE_DIR}/src/$REQUIRED_VERSION" + + # patching configure for Scientific Linux - cave - ugly hack! + if [ "$SYS_DISTRIBUTION" == "scientific" ]; then + pinfo "Scientific Linux detected; patching systemd/configure..." + sed 's/dbus-1 >= 1.3.2/dbus-1 >= 1.2.24/g' configure > configure.patched + mv configure configure.orig + mv configure.patched configure + chmod +x configure + fi + pinfo "calling configure" ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam|| perror "configure failed." pinfo "calling make" -- cgit v1.2.3-55-g7522 From 96aaa39bd2db526e252a359a6ac0c2fd012c0132 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 6 Aug 2013 15:03:19 +0200 Subject: [systemd] conf for Scientific Linux --- remote/modules/systemd/systemd.conf.scientific | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 remote/modules/systemd/systemd.conf.scientific (limited to 'remote/modules/systemd') diff --git a/remote/modules/systemd/systemd.conf.scientific b/remote/modules/systemd/systemd.conf.scientific new file mode 100644 index 00000000..cbda26fc --- /dev/null +++ b/remote/modules/systemd/systemd.conf.scientific @@ -0,0 +1,16 @@ +REQUIRED_VERSION="systemd-206" +REQUIRED_URL="http://www.freedesktop.org/software/systemd/${REQUIRED_VERSION}.tar.xz" +# REQUIRED_URL="http://www.freedesktop.org/software/systemd/${REQUIRED_VERSION}.tar.bz2" +REQUIRED_INSTALLED_PACKAGES=" + intltool + gperf + pkgconfig + libcap-devel + libudev-devel + dbus-devel + libxslt + libblkid-devel + libacl-devel +" +REQUIRED_UTILLINUX_VERSION="2.23" +REQUIRED_UTILLINUX_URL="ftp://ftp.kernel.org/pub/linux/utils/util-linux/v${REQUIRED_UTILLINUX_VERSION}/util-linux-${REQUIRED_UTILLINUX_VERSION}.tar.xz" -- cgit v1.2.3-55-g7522 From de076c7eb22a58860345749a8a17b063649ba589 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 6 Aug 2013 15:05:58 +0200 Subject: [systemd] .build: Experimental: Special cases fir Scientific Linux --- remote/modules/systemd/systemd.build | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'remote/modules/systemd') diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build index e481f74e..710c4ea6 100644 --- a/remote/modules/systemd/systemd.build +++ b/remote/modules/systemd/systemd.build @@ -3,6 +3,10 @@ fetch_source () { download_untar "$REQUIRED_URL" "src/" download_untar "$REQUIRED_LIBKMOD_URL" "src/" + + # Another nice hack for Scientific Linux - experimental. + [ "$SYS_DISTRIBUTION" == "scientific" ] && download_untar "$REQUIRED_UTILLINUX_URL" "src/" + # 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 @@ -17,19 +21,35 @@ build () { make install || perror "kmod make install failed." cd - &> /dev/null - #build systemd - pinfo "Building systemd" - cd "${MODULE_DIR}/src/$REQUIRED_VERSION" - - # patching configure for Scientific Linux - cave - ugly hack! + # Scientific Linux specials if [ "$SYS_DISTRIBUTION" == "scientific" ]; then + # Utillinux stuff + penfo "Building util-linux" + cd "${MODULE_DIR}/src/util-linux-$REQUIRED_UTILLINUX_VERSION" + ./configure --prefix=${MODULE_DIR}/build --exec-prefix=${MODULE_DIR}/build --disable-libuuid --disable-libmount \ + --disable-mount --disable-losetup --disable-cytune --disable-fsck --disable-partx --disable-uuidd \ + --disable-mountpoint --disable-fallocate --disable-unshare --disable-nsenter --disable-setpriv \ + --disable-eject --disable-agetty --disable-cramfs --disable-bfs --disable-fdformat --disable-hwclock \ + --disable-wdctl --disable-switch_root --disable-pivot_root --disable-kill --disable-utmpdump --disable-raw \ + --disable-rename --disable-login --disable-sulogin --disable-su --disable-runuser --disable-ul --disable-more \ + --disable-pg --disable-schedutils --disable-wall --disable-bash-completion \ + || perror "./configure util-linux failed." + make || perror "util-linux make failed." + make install || perror "util-linux make install failed." + + # patching configure for Scientific Linux - cave - ugly hack! pinfo "Scientific Linux detected; patching systemd/configure..." + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" sed 's/dbus-1 >= 1.3.2/dbus-1 >= 1.2.24/g' configure > configure.patched mv configure configure.orig mv configure.patched configure chmod +x configure fi + + #build systemd + pinfo "Building systemd" + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" pinfo "calling configure" ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam|| perror "configure failed." pinfo "calling make" -- cgit v1.2.3-55-g7522 From e40ae9d127bcecd32046eecd775d343ace882a14 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 6 Aug 2013 15:35:39 +0200 Subject: [systemd] .build: Experimental: Special cases for Scientific Linux: systemd configure options --- remote/modules/systemd/systemd.build | 40 ++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'remote/modules/systemd') diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build index 710c4ea6..a5f9ef3b 100644 --- a/remote/modules/systemd/systemd.build +++ b/remote/modules/systemd/systemd.build @@ -36,6 +36,7 @@ build () { || perror "./configure util-linux failed." make || perror "util-linux make failed." make install || perror "util-linux make install failed." + cd - &> /dev/null # patching configure for Scientific Linux - cave - ugly hack! pinfo "Scientific Linux detected; patching systemd/configure..." @@ -44,18 +45,35 @@ build () { mv configure configure.orig mv configure.patched configure chmod +x configure - fi - + cd - &> /dev/null - #build systemd - pinfo "Building systemd" - cd "${MODULE_DIR}/src/$REQUIRED_VERSION" - pinfo "calling configure" - ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam|| perror "configure failed." - pinfo "calling make" - make || perror "make failed." - pinfo "calling make install" - DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed." + #build systemd for Scientific Linux + pinfo "Building systemd" + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" + pinfo "calling configure" + ./configure --prefix=${MODULE_DIR}/build --exec-prefix=${MODULE_DIR}/build --datadir=${MODULE_DIR}/build \ + --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls \ + --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated \ + --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam \ + || perror "configure failed." + pinfo "calling make" + make || perror "make failed." + pinfo "calling make install" + DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed." + else + #build systemd + pinfo "Building systemd" + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" + pinfo "calling configure" + ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls \ + --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated \ + --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam \ + || perror "configure failed." + pinfo "calling make" + make || perror "make failed." + pinfo "calling make install" + DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed." + fi cd - &> /dev/null # Delete unneeded services pinfo "Deleting unneeded services" -- cgit v1.2.3-55-g7522