summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2022-09-04 18:41:29 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2022-09-04 19:02:49 +0200
commitff5a43e0a7a4a5ccd21aeede5b0936f05f558ca7 (patch)
tree714500c38b272391beb0c36207851b4830a807f9 /.github
parent346ff9c8b83dc516dbd6b6819fdf9335adfd4dd2 (diff)
downloadlibgphoto2-ff5a43e0a7a4a5ccd21aeede5b0936f05f558ca7.tar.gz
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ccpp.yml8
1 files changed, 7 insertions, 1 deletions
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