https://bugs.llvm.org/show_bug.cgi?id=44966

            Bug ID: 44966
           Summary: Ubuntu installer script (llvm.sh) does not work for
                    clang-10 on eoan
           Product: tools
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: support scripts
          Assignee: unassignedb...@nondot.org
          Reporter: rbell...@terradatum.com
                CC: greg.bedw...@sony.com, i...@maskray.me,
                    llvm-bugs@lists.llvm.org

Current llvm.sh script assumes version 10 is the default version. Version 11 is
the default version.

> wget https://apt.llvm.org/llvm.sh
> chmod +x llvm.sh
> sudo ./llvm.sh 10

On eoan, the above installs the default repository:

> REPO_NAME="deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main"

And then subsequently tries to install clang-10, et al, and fail with:

> E: Unable to locate package clang-10

I fix this with the following stanza:

> sed -i'' 
> 's/LLVM_VERSION_PATTERNS\[10\]=""/LLVM_VERSION_PATTERNS\[10\]="-10"\nLLVM_VERSION_PATTERNS\[11\]=""/'
>  llvm.sh

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to