From 0548fd3a5f6cf2f30588616d00dcceee2fb16146 Mon Sep 17 00:00:00 2001 From: Urvi Date: Thu, 27 Jul 2023 12:02:15 -0700 Subject: [PATCH 1/4] Update libc version to fix Horizon CI package dependency errors --- .github/workflows/horizon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index 4b895c841d..240b1a12da 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -76,7 +76,7 @@ jobs: # Workaround for https://github.com/actions/virtual-environments/issues/5245, # libc++1-8 won't be installed if another version is installed (but apt won't give you a helpul # message about why the installation fails) - sudo apt-get remove -y libc++1-10 libc++abi1-10 || true + sudo apt-get remove -y libc++1-12 libc++abi1-12 || true sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add - sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list' From 439a43976c27455a4c3855c58460c3c41d703e29 Mon Sep 17 00:00:00 2001 From: Urvi Date: Thu, 27 Jul 2023 12:06:48 -0700 Subject: [PATCH 2/4] Version update didn't help so try reverting the original fix --- .github/workflows/horizon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index 240b1a12da..8a9b363279 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -76,7 +76,7 @@ jobs: # Workaround for https://github.com/actions/virtual-environments/issues/5245, # libc++1-8 won't be installed if another version is installed (but apt won't give you a helpul # message about why the installation fails) - sudo apt-get remove -y libc++1-12 libc++abi1-12 || true + #sudo apt-get remove -y libc++1-12 libc++abi1-12 || true sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add - sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list' From 5b31176dcb816f89305e789c69c29492cb01b0b3 Mon Sep 17 00:00:00 2001 From: Urvi Date: Thu, 27 Jul 2023 12:27:52 -0700 Subject: [PATCH 3/4] Update libc version to remove --- .github/workflows/horizon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index 8a9b363279..9386d7c510 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -76,7 +76,7 @@ jobs: # Workaround for https://github.com/actions/virtual-environments/issues/5245, # libc++1-8 won't be installed if another version is installed (but apt won't give you a helpul # message about why the installation fails) - #sudo apt-get remove -y libc++1-12 libc++abi1-12 || true + sudo apt-get remove -y libc++1-14 libc++abi1-14 || true sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add - sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list' From b4fdd9fd39e22d9586e7da4cd40347ffce6a34d2 Mon Sep 17 00:00:00 2001 From: Urvi Date: Thu, 27 Jul 2023 14:13:38 -0700 Subject: [PATCH 4/4] List and delete all libc++ versions installed --- .github/workflows/horizon.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index 9386d7c510..afe94be4df 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -76,7 +76,8 @@ jobs: # Workaround for https://github.com/actions/virtual-environments/issues/5245, # libc++1-8 won't be installed if another version is installed (but apt won't give you a helpul # message about why the installation fails) - sudo apt-get remove -y libc++1-14 libc++abi1-14 || true + sudo apt list --installed | grep libc++ + sudo apt-get remove -y libc++1-* libc++abi1-* || true sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add - sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list'