diff mbox series

[liburing] github: Fix LLVM packages conflict

Message ID 20230801010434.2697794-1-ammarfaizi2@gnuweeb.org (mailing list archive)
State New
Headers show
Series [liburing] github: Fix LLVM packages conflict | expand

Commit Message

Ammar Faizi Aug. 1, 2023, 1:04 a.m. UTC
Recently, the CI hits the following error:

  The following packages have unmet dependencies:
  python3-lldb-14 : Conflicts: python3-lldb-x.y
  python3-lldb-17 : Conflicts: python3-lldb-x.y
  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Fix this by removing preinstalled llvm 14 before installing llvm 17.

Link: https://github.com/llvm/llvm-project/issues/64182#issuecomment-1658085767
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
 .github/workflows/build.yml | 1 +
 1 file changed, 1 insertion(+)


base-commit: 12e697608d841dc33c360beb4753c5509187ef6f

Comments

Jens Axboe Aug. 1, 2023, 1:10 a.m. UTC | #1
On 7/31/23 7:04?PM, Ammar Faizi wrote:
> Recently, the CI hits the following error:
> 
>   The following packages have unmet dependencies:
>   python3-lldb-14 : Conflicts: python3-lldb-x.y
>   python3-lldb-17 : Conflicts: python3-lldb-x.y
>   E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
> 
> Fix this by removing preinstalled llvm 14 before installing llvm 17.

Great thanks, was just looking at this today and was going to email you
about it.
Jens Axboe Aug. 1, 2023, 1:11 a.m. UTC | #2
On Tue, 01 Aug 2023 08:04:34 +0700, Ammar Faizi wrote:
> Recently, the CI hits the following error:
> 
>   The following packages have unmet dependencies:
>   python3-lldb-14 : Conflicts: python3-lldb-x.y
>   python3-lldb-17 : Conflicts: python3-lldb-x.y
>   E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
> 
> [...]

Applied, thanks!

[1/1] github: Fix LLVM packages conflict
      commit: e1e758ae8360521334399c2a6eace05fa518e218

Best regards,
diff mbox series

Patch

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8dd22dfd125692de..895599f160e80304 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -106,6 +106,7 @@  jobs:
       run: |
         if [[ "${{matrix.cc_pkg}}" == "clang" ]]; then \
             wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh; \
+            sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14 -y; \
             sudo bash /tmp/llvm.sh 17; \
             sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 400; \
             sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 400; \