From 119ba7bff3d83e4ce416e089ffd7acc464bc4123 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 9 May 2013 19:01:47 +0200 Subject: fix Failsafe --- remote/modules/xorg/data/etc/X11/Xsession | 34 ++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'remote') diff --git a/remote/modules/xorg/data/etc/X11/Xsession b/remote/modules/xorg/data/etc/X11/Xsession index 529208cd..a9b3d43b 100644 --- a/remote/modules/xorg/data/etc/X11/Xsession +++ b/remote/modules/xorg/data/etc/X11/Xsession @@ -3,4 +3,36 @@ #Workaround to start Xsession. The original Xsession script includes error handling functionality and sources other scrips from the Xsession.d/ directory. #start selected session -exec $1 + case "$1" in + failsafe) + # Failsafe session was requested. + if [ -e /usr/bin/xterm ]; then + if [ -x /usr/bin/xterm ]; then + exec xterm -geometry +1+1 + else + # fatal error + errormsg "unable to launch failsafe X session ---" \ + "x-terminal-emulator not executable; aborting." + fi + else + # fatal error + errormsg "unable to launch failsafe X session ---" \ + "x-terminal-emulator not found; aborting." + fi + ;; + *) + # Specific program was requested. + STARTUP_FULL_PATH=$(/opt/openslx/usr/bin/which "${1%% *}" || true) + if [ -n "$STARTUP_FULL_PATH" ] && [ -e "$STARTUP_FULL_PATH" ]; then + if [ -x "$STARTUP_FULL_PATH" ]; then + exec $1 + else + message "unable to launch \"$1\" X session ---" \ + "\"$1\" not executable; falling back to default session." + fi + else + message "unable to launch \"$1\" X session ---" \ + "\"$1\" not found; falling back to default session." + fi + ;; + esac -- cgit v1.2.3-55-g7522 From b8870fb6c609a88225d1f80353a8628d746d0a0f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 9 May 2013 19:18:52 +0200 Subject: frickel frickel --- remote/modules/vmplayer/vmplayer.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'remote') diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf index c5d92140..7d1aa52e 100644 --- a/remote/modules/vmplayer/vmplayer.conf +++ b/remote/modules/vmplayer/vmplayer.conf @@ -1,3 +1,5 @@ +REQUIRED_DEPENDENCIES="gconf2" +REQUIRED_PACKAGES="gconf2" REQUIRED_BINARIES="" REQUIRED_SYSTEM_FILES="" REQUIRED_DIRECTORIES="/etc /usr" -- cgit v1.2.3-55-g7522 From ed29b377f18dce6a0baec2c29754e42794435453 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 9 May 2013 19:53:28 +0200 Subject: more updates to vmplayer (finally works) --- remote/modules/vmplayer/data/bin/vmplayer | 6 ++++-- remote/modules/vmplayer/vmplayer.build | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'remote') diff --git a/remote/modules/vmplayer/data/bin/vmplayer b/remote/modules/vmplayer/data/bin/vmplayer index d4cd1d65..874c3d96 100755 --- a/remote/modules/vmplayer/data/bin/vmplayer +++ b/remote/modules/vmplayer/data/bin/vmplayer @@ -1,8 +1,10 @@ #!/bin/sh for mod in /lib/modules/vmware/*.ko; do - insmod "$mod" || xmessage "Could not load kernel module $mod. vmplayer might fail." + insmod "$mod" && continue + xmessage "Could not load kernel module $mod. vmplayer might fail." done -/bin/vmplayer-bin $@ +export LIBCONF_DIR=/usr/lib/vmware/libconf +/usr/lib/vmware/bin/vmplayer $@ diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build index 46e4da8f..45a77ae0 100644 --- a/remote/modules/vmplayer/vmplayer.build +++ b/remote/modules/vmplayer/vmplayer.build @@ -24,8 +24,14 @@ build() { cp -r ./src/vmware-usbarbitrator/bin "$MODULE_BUILD_DIR/usr/" || perror "Could not copy bin from vmware-usbarbitrator." cp -r ./src/vmware-vmx/{bin,etc,sbin} "$MODULE_BUILD_DIR/usr/" || perror "could not copy bin,etc,sbin to usr for vmare-vmx." cp -r ./src/vmware-vmx/lib/{bin,icu,lib,libconf,scripts} "$TARGET" || perror "Could not copy many things from vmware-vmx." - ln -s /usr/lib/vmware/bin/appLoader "$TARGET/bin/vmplayer" || perror "Could not link vmplayer to appLoader." + [ ! -L "$TARGET/bin/vmplayer" ] && { ln -s /usr/lib/vmware/bin/appLoader "$TARGET/bin/vmplayer" || perror "Could not link vmplayer to appLoader."; } chmod +x "$TARGET"/bin/* + # Extract libgconf-2 stuff + COPYLIST="list_dpkg_output" + [ -e "${COPYLIST}" ] && rm "${COPYLIST}" + + list_packet_files >> "${COPYLIST}" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" # Compile kernel modules return 0 # TODO: Fix kompalieren pinfo "Compiling required kernel modules." -- cgit v1.2.3-55-g7522 From fa13b6847279e90a834996eb986b8b095c891728 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 9 May 2013 21:42:30 +0200 Subject: FIX VMPLAYER!!!!!!!!!1111elf --- remote/modules/vmplayer/vmplayer.build | 5 +++++ remote/modules/vmplayer/vmplayer.conf | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'remote') diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build index 45a77ae0..2bcfd896 100644 --- a/remote/modules/vmplayer/vmplayer.build +++ b/remote/modules/vmplayer/vmplayer.build @@ -26,6 +26,11 @@ build() { cp -r ./src/vmware-vmx/lib/{bin,icu,lib,libconf,scripts} "$TARGET" || perror "Could not copy many things from vmware-vmx." [ ! -L "$TARGET/bin/vmplayer" ] && { ln -s /usr/lib/vmware/bin/appLoader "$TARGET/bin/vmplayer" || perror "Could not link vmplayer to appLoader."; } chmod +x "$TARGET"/bin/* + pinfo "Patching LIBCONF_DIR" + local file="" + for file in $(grep -rl "@@LIBCONF_DIR@@" "$MODULE_BUILD_DIR"); do + sed -i 's#@@LIBCONF_DIR@@#/usr/lib/vmware/libconf#g' "$file" + done # Extract libgconf-2 stuff COPYLIST="list_dpkg_output" [ -e "${COPYLIST}" ] && rm "${COPYLIST}" diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf index 7d1aa52e..832a0af9 100644 --- a/remote/modules/vmplayer/vmplayer.conf +++ b/remote/modules/vmplayer/vmplayer.conf @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES="gconf2" -REQUIRED_PACKAGES="gconf2" +REQUIRED_DEPENDENCIES="libgconf-2-4 fontconfig-config" +REQUIRED_PACKAGES="libgconf-2-4 fontconfig-config" REQUIRED_BINARIES="" REQUIRED_SYSTEM_FILES="" REQUIRED_DIRECTORIES="/etc /usr" -- cgit v1.2.3-55-g7522 From a2e717ef542d3d9b48311d65da6919e24f029635 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 May 2013 14:39:19 +0200 Subject: Remove unneeded packages from vmplayer.conf Add another check before using distcc for kernel --- remote/modules/kernel/kernel.build | 2 +- remote/modules/vmplayer/vmplayer.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'remote') diff --git a/remote/modules/kernel/kernel.build b/remote/modules/kernel/kernel.build index 1d8e41a7..b5ec8f6e 100644 --- a/remote/modules/kernel/kernel.build +++ b/remote/modules/kernel/kernel.build @@ -45,7 +45,7 @@ build() { make oldconfig || perror "make oldconfig failed" fi pinfo "Kompaliere kernel... (this will take some time)" - if gcc --version | grep "4\.7"; then + if gcc --version | grep "4\.7" && which distcc; then pinfo "USING DISTCC" make CC="distcc gcc-4.7" -j16 || perror "make failed" else diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf index 832a0af9..df88968e 100644 --- a/remote/modules/vmplayer/vmplayer.conf +++ b/remote/modules/vmplayer/vmplayer.conf @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES="libgconf-2-4 fontconfig-config" -REQUIRED_PACKAGES="libgconf-2-4 fontconfig-config" +#REQUIRED_DEPENDENCIES="libgconf-2-4 fontconfig-config" +#REQUIRED_PACKAGES="libgconf-2-4 fontconfig-config" REQUIRED_BINARIES="" REQUIRED_SYSTEM_FILES="" REQUIRED_DIRECTORIES="/etc /usr" -- cgit v1.2.3-55-g7522 From 8fb6b6d139e6af68aeb14cae5c756dfd3696b5a2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 May 2013 15:19:34 +0200 Subject: Force number of jobs when making the kernel --- remote/modules/kernel/kernel.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'remote') diff --git a/remote/modules/kernel/kernel.build b/remote/modules/kernel/kernel.build index 1d8e41a7..39bb77c5 100644 --- a/remote/modules/kernel/kernel.build +++ b/remote/modules/kernel/kernel.build @@ -49,7 +49,8 @@ build() { pinfo "USING DISTCC" make CC="distcc gcc-4.7" -j16 || perror "make failed" else - make || perror "make failed" + # explicitly state number of cores here, as MAKEFLAGS seems to be overridden + make "-j$CPU_CORES" || perror "make failed" fi # install modules to build directory -- cgit v1.2.3-55-g7522