From ff5a43e0a7a4a5ccd21aeede5b0936f05f558ca7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sun, 4 Sep 2022 18:41:29 +0200 Subject: gh workflow: work around libgd-dev dependency problem Work around libgd-dev dependency issue apparently caused by a 3rd party repository with PHP and nginx and related stuff like libgd. So we remove nginx and libgd3 to get rid of the relevant 3rd party packages which pull in their libgd, and only then install libgd-dev which then comes from Ubuntu proper and works. As we need neither nginx nor php, this should work for libgphoto2. This appears to be a reoccuring problem on github runners, so keeping this workaround in place looks like the way to go for the future. See also https://github.com/actions/runner-images/issues/6153 and recursively follow the linked issues and comments for more information. --- .github/workflows/ccpp.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index fc4308376..9ad9ccb16 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -13,8 +13,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: apt-get update + run: sudo apt-get update + - name: apt-get 3rd party repo libgd-dev dependency workaround + run: sudo apt-get remove nginx libgd3 + - name: apt-get dist-upgrade + run: sudo apt-get dist-upgrade - name: apt-get install - run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y autopoint gettext libusb-1.0-0-dev libcurl4-openssl-dev libgd-dev + run: sudo apt-get install -y autopoint gettext libusb-1.0-0-dev libcurl4-openssl-dev libgd-dev - name: autoreconf run: autoreconf -i -f - name: configure -- cgit v1.2.1