]> xenbits.xensource.com Git - people/gdunlap/raisin.git/.git/commitdiff
Fedora fixes
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 18 Mar 2015 18:36:02 +0000 (18:36 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 19 Mar 2015 13:47:40 +0000 (13:47 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
build.sh
common-functions.sh
grub.sh
libvirt.sh
xen.sh

index 1dc50c10dc7770d7140bdb0c53f1e32b8379eade..0e5239caea50e7e23ec95587bdb59097f9ca558a 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -37,9 +37,9 @@ then
 fi
 
 # parameters check
+INST=0
 export NO_DEPS=0
 export VERBOSE=0
-export INSTALL=0
 while test $# -ge 1
 do
   if test "$1" = "-n" || test "$1" = "--no-deps"
@@ -52,7 +52,7 @@ do
     shift 1
   elif test "$1" = "-i" || test "$1" = "--install"
   then
-    INSTALL=1
+    INST=1
     shift 1
   else
     help
@@ -84,7 +84,7 @@ then
 fi
 
 
-if test -z "$INSTALL" || test "$INSTALL" -eq 0
+if test -z "$INST" || test "$INST" -eq 0
 then
     exit 0
 fi
index b57807c3285e4c922dff248b4a83f10bece015fc..0243f02f6295d10c3e9cef7b8dcf1759d3081de4 100644 (file)
@@ -118,3 +118,4 @@ function start_initscripts() {
         ;;
     esac
 }
+
diff --git a/grub.sh b/grub.sh
index 953c9292caccefb7458425c3f9a900bdf0a039ed..0d176736c07c94ec188c1447fa03cac2fca34325 100644 (file)
--- a/grub.sh
+++ b/grub.sh
@@ -11,7 +11,8 @@ function grub_install_dependencies() {
     local DEP_Debian_arm32="$DEP_Debian_common"
     local DEP_Debian_arm64="$DEP_Debian_common"
 
-    local DEP_Fedora_common="make gcc tar automake autoconf sysconftool bison flex"
+    local DEP_Fedora_common="make gcc tar automake autoconf sysconftool bison flex \
+                             glibc-devel"
     local DEP_Fedora_x86_32="$DEP_Fedora_common"
     local DEP_Fedora_x86_64="$DEP_Fedora_common glibc-devel.i686"
 
@@ -32,11 +33,10 @@ function grub_build() {
     tar cf memdisk.tar grub.cfg
     ./git-checkout.sh $GRUB_UPSTREAM_URL $GRUB_UPSTREAM_REVISION grub-dir
     cd grub-dir
-    export CPPFLAGS="-I$INST_DIR/$PREFIX/include"
     ./autogen.sh
     ## GRUB32
     ./configure --target=i386 --with-platform=xen
-    $MAKE
+    $MAKE CPPFLAGS="-I$INST_DIR/$PREFIX/include"
     ./grub-mkimage -d grub-core -O i386-xen -c ../grub-bootstrap.cfg \
       -m ../memdisk.tar -o grub-i386-xen grub-core/*mod
     cp grub-i386-xen "$INST_DIR"/$PREFIX/lib/xen/boot
@@ -45,7 +45,7 @@ function grub_build() {
     then
         $MAKE clean
         ./configure --target=amd64 --with-platform=xen
-        $MAKE
+        $MAKE CPPFLAGS="-I$INST_DIR/$PREFIX/include"
         ./grub-mkimage -d grub-core -O x86_64-xen -c ../grub-bootstrap.cfg \
           -m ../memdisk.tar -o grub-x86_64-xen grub-core/*mod
         cp grub-x86_64-xen "$INST_DIR"/$PREFIX/lib/xen/boot
@@ -59,4 +59,5 @@ function grub_clean() {
 }
 
 function grub_configure() {
+    echo "Nothing to configure for Grub"
 }
index c5291d1148d4b239aca5320116839ab2801d021b..83172c9cf8fea2211632399e8b23147d7f23b86d 100644 (file)
@@ -39,10 +39,10 @@ function libvirt_build() {
         --without-parallels --without-test --with-libvirtd --without-sasl \
         --with-yajl --without-macvtap --without-avahi  --prefix=$PREFIX
     $MAKE
-    $MAKE --ignore-errors install DESTDIR=$INST_DIR
+    $MAKE --ignore-errors install DESTDIR="$INST_DIR"
     if test $DISTRO = "Debian"
     then
-        cp libvirt.debian.init "$INST_DIR"/etc/init.d/libvirtd
+        cp ../libvirt.debian.init "$INST_DIR"/etc/init.d/libvirtd
         chmod +x "$INST_DIR"/etc/init.d/libvirtd
     elif test $DISTRO = "Fedora" || test $DISTRO = "CentOS"
     then
diff --git a/xen.sh b/xen.sh
index f30c057900661d7a7c358bac431619ae03b0e104..c17e24e997e9e350da43a6aa93dd321bd11813a2 100644 (file)
--- a/xen.sh
+++ b/xen.sh
@@ -15,7 +15,7 @@ function xen_install_dependencies() {
 
     local DEP_Fedora_common="make gcc python-devel gettext libuuid-devel   \
              ncurses-devel glib2-devel libaio-devel openssl-devel yajl-devel   \
-             patch pixman-devel"
+             patch pixman-devel glibc-devel"
     local DEP_Fedora_x86_32="$DEP_Fedora_common dev86 iasl texinfo"
     local DEP_Fedora_x86_64="$DEP_Fedora_x86_32 glibc-devel.i686"