[gparted] Add C++ compiler into GitLab CI Ubuntu image (!60)



commit c5093b7d541d4afbf4f30af678a784f64c6d11b5
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat May 23 13:22:35 2020 +0100

    Add C++ compiler into GitLab CI Ubuntu image (!60)
    
    Next the Ubuntu image CI job is failing without a C++ compiler like
    this:
    
        checking whether to enable maintainer-specific portions of Makefiles... yes
        checking for g++... no
        checking for c++... no
        checking for gpp... no
        checking for aCC... no
        checking for CC... no
        checking for cxx... no
        checking for cc++... no
        checking for cl.exe... no
        checking for FCC... no
        checking for KCC... no
        checking for RCC... no
        checking for xlC_r... no
        checking for xlC... no
        checking whether the C++ compiler works... no
        configure: error: in `/builds/mfleetwo/gparted':
        configure: error: C++ compiler cannot create executables
        See `config.log' for more details
        ...
        ERROR: Job failed: exit code 1
    
    The published "Ubuntu" docker image has been updated to Ubuntu 20.04 LTS
    and must no longer include the build tools by default, or not be a
    dependency of any of the other installed packages.  Explicitly install
    build-essential to get the C++ compiler [1].  Also don't list make as
    build-essential includes it.
    
    [1] Installing the GNU C compiler and GNU C++ compiler
        https://help.ubuntu.com/community/InstallingCompilers
    
    Closes !60 - Fix GitLab CI job failures following Ubuntu docker image
                 updates

 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 84df0f44..f5dca653 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,9 +25,9 @@ stages:
   before_script:
     - export DEBIAN_FRONTEND=noninteractive
     - apt-get update
-    - apt-get install -y gnome-common yelp-tools libglib2.0-dev-bin
-                         uuid-dev libparted-dev libgtkmm-3.0-dev make
-                         policykit-1
+    - apt-get install -y build-essential gnome-common yelp-tools
+                         libglib2.0-dev-bin uuid-dev libparted-dev
+                         libgtkmm-3.0-dev policykit-1
     # Extra packages only needed during the test stage.
     - apt-get install -y btrfs-progs e2fsprogs f2fs-tools dosfstools mtools
                          hfsutils hfsprogs jfsutils util-linux cryptsetup-bin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]