<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Ubuntu installer script (llvm.sh) does not work for clang-10 on eoan"
   href="https://bugs.llvm.org/show_bug.cgi?id=44966">44966</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Ubuntu installer script (llvm.sh) does not work for clang-10 on eoan
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>support scripts
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rbellamy@terradatum.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>greg.bedwell@sony.com, i@maskray.me, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Current llvm.sh script assumes version 10 is the default version. Version 11 is
the default version.

<span class="quote">> wget <a href="https://apt.llvm.org/llvm.sh">https://apt.llvm.org/llvm.sh</a>
> chmod +x llvm.sh
> sudo ./llvm.sh 10</span >

On eoan, the above installs the default repository:

<span class="quote">> REPO_NAME="deb <a href="http://apt.llvm.org/eoan/">http://apt.llvm.org/eoan/</a> llvm-toolchain-eoan main"</span >

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

<span class="quote">> E: Unable to locate package clang-10</span >

I fix this with the following stanza:

<span class="quote">> sed -i'' 's/LLVM_VERSION_PATTERNS\[10\]=""/LLVM_VERSION_PATTERNS\[10\]="-10"\nLLVM_VERSION_PATTERNS\[11\]=""/' llvm.sh</span ></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>