From 50cf57ce56b4877aca6148cd3de5efb13157cea9 Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Thu, 31 Mar 2016 22:20:20 +0200 Subject: system/xen: Updated for kernel 4.4.6 and fixes. Signed-off-by: Mario Preksavec --- system/xen/xen.SlackBuild | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'system/xen/xen.SlackBuild') diff --git a/system/xen/xen.SlackBuild b/system/xen/xen.SlackBuild index fc7746cb1f..91d44d50c2 100644 --- a/system/xen/xen.SlackBuild +++ b/system/xen/xen.SlackBuild @@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ $ARCH == "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then +if [ "$ARCH" = "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then cat << EOF For a 32bit guest support 32bit libs are required to build the @@ -69,18 +69,21 @@ else LIBDIRSUFFIX="" fi -USE_LIBSSH2=${USE_LIBSSH2:-no} -case "$LIBSSH2" in +case "${USE_LIBSSH2:-no}" in yes) LIBSSH2="en" ;; *) LIBSSH2="dis" ;; esac -USE_BLUEZ=${USE_BLUEZ:-no} -case "$BLUEZ" in +case "${USE_BLUEZ:-no}" in yes) BLUEZ="en" ;; *) BLUEZ="dis" ;; esac +case "${BUILD_STUBDOM:-no}" in + yes) STUBDOM="en" ;; + *) STUBDOM="dis" ;; +esac + set -e rm -rf $PKG @@ -139,6 +142,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-qemu-traditional \ --disable-rombios \ + --${STUBDOM}able-stubdom \ --build=$ARCH-slackware-linux make install-xen \ @@ -155,12 +159,14 @@ make install-tools \ MANDIR=/usr/man \ DESTDIR=$PKG -make install-stubdom \ - docdir=/usr/doc/$PRGNAM-$VERSION \ - DOCDIR=/usr/doc/$PRGNAM-$VERSION \ - mandir=/usr/man \ - MANDIR=/usr/man \ - DESTDIR=$PKG +if [ "$STUBDOM" = "en" ]; then + make install-stubdom \ + docdir=/usr/doc/$PRGNAM-$VERSION \ + DOCDIR=/usr/doc/$PRGNAM-$VERSION \ + mandir=/usr/man \ + MANDIR=/usr/man \ + DESTDIR=$PKG +fi make install-docs \ docdir=/usr/doc/$PRGNAM-$VERSION \ -- cgit v1.2.3-65-gdbad