]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
raisin: Use fakeroot for mkdeb so we can build the package as non-root
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 20 Apr 2015 15:01:33 +0000 (15:01 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 20 Apr 2015 15:01:33 +0000 (15:01 +0000)
From: George Dunlap <george.dunlap@eu.citrix.com>

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
lib/commands.sh
lib/common-functions.sh

index c47ba1f3a845ced96dfc13ba895db43d9867ce36..bf580e54064dc74499226488bfffc851a7cea8ff 100755 (executable)
@@ -8,6 +8,9 @@ function check-builddep() {
     if [[ $DISTRO = "Fedora" ]]
     then
         check-package rpm-build
+    elif [[ $DISTRO = "Debian" ]]
+    then
+        check-package fakeroot
     fi
 
     for_each_component check_package
index 4010d23205632cee123562a8a5684c8b32583520..05e8fa830f1074246e3bf214c5804a10d6c7faf0 100644 (file)
@@ -248,7 +248,7 @@ function for_each_component () {
 function build_package() {
     if [[ $DISTRO = "Debian" ]]
     then
-        ./scripts/mkdeb "$1"
+        fakeroot bash ./scripts/mkdeb "$1"
     elif [[  $DISTRO = "Fedora" ]]
     then
         ./scripts/mkrpm "$1"