]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps: Adding gcc for debian based systems 8745/head
authorErwan Velu <erwan@redhat.com>
Mon, 25 Apr 2016 15:11:45 +0000 (17:11 +0200)
committerErwan Velu <erwan@redhat.com>
Mon, 25 Apr 2016 15:11:45 +0000 (17:11 +0200)
When running install-deps on a minimalistic system, we reach that situation :

dpkg-checkbuilddeps --admindir=/tmp/install-deps.5526 debian/control
    sh: 1: gcc: not found
    dpkg-checkbuilddeps: warning: Couldn't determine gcc system type, falling back to default (native compilation)
    dpkg-checkbuilddeps: error: cannot open /tmp/install-deps.5526/status: No such file or directory

This means that we shall install gcc before calling dpkg-checkbuilddeps.

Signed-off-by: Erwan Velu <erwan@redhat.com>
install-deps.sh

index 21e71ee77977a6bdd7336b2f4f7ce695696d6964..fa330035c8db81c427e1678b1bf758299ebb2d0e 100755 (executable)
@@ -33,7 +33,7 @@ fi
 
 case $(lsb_release -si) in
 Ubuntu|Debian|Devuan)
-        $SUDO apt-get install -y dpkg-dev
+        $SUDO apt-get install -y dpkg-dev gcc
         if ! test -r debian/control ; then
             echo debian/control is not a readable file
             exit 1