[llvm-bugs] [Bug 44966] New: Ubuntu installer script (llvm.sh) does not work for clang-10 on eoan

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 19 09:49:52 PST 2020


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: unassignedbugs at nondot.org
          Reporter: rbellamy at terradatum.com
                CC: greg.bedwell at sony.com, i at maskray.me,
                    llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200219/f575118a/attachment.html>


More information about the llvm-bugs mailing list