<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62104>62104</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm.sh needs to be updated after libclang-common-*-dev split
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
acruise
</td>
</tr>
</table>
<pre>
The changelog says:
> Jan 03rd 2023 - libclang-common-X.Y-dev split into: libclang-rt-X.Y-dev, libpolly-X.Y-dev, libclang-rt-X.Y-dev-wasm32 and libclang-rt-X.Y-dev-wasm64
but llvm.sh still installs `libclang-common-15-dev`, which is present in Ubuntu's repos, thus causing a conflict:
```
Unpacking libpolly-15-dev:amd64 (1:15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110) ...
dpkg: error processing archive /tmp/apt-dpkg-install-2IfczZ/31-libpolly-15-dev_1%3a15.0.7~++20230131104537+8dfdcc7b7bf6-1~exp1~20230131104626.110_amd64.deb (--unpack):
trying to overwrite '/usr/lib/llvm-15/include/polly/Canonicalization.h', which is also in package libclang-common-15-dev 1:15.0.7-0ubuntu0.22.04.1
```
This patch might help:
```
--- llvm.sh 2023-01-30 10:01:14.000000000 -0800
+++ llvm-new.sh 2023-04-12 12:14:08.130071599 -0700
@@ -167,7 +167,7 @@
if [[ $ALL -eq 1 ]]; then
# same as in test-install.sh
# No worries if we have dups
- PKG="$PKG clang-tidy-$LLVM_VERSION clang-format-$LLVM_VERSION clang-tools-$LLVM_VERSION llvm-$LLVM_VERSION-dev lld-$LLVM_VERSION lldb-$LLVM_VERSION llvm-$LLVM_VERSION-tools libomp-$LLVM_VERSION-dev libc++-$LLVM_VERSION-dev libc++abi-$LLVM_VERSION-dev libclang-common-$LLVM_VERSION-dev libclang-$LLVM_VERSION-dev libclang-cpp$LLVM_VERSION-dev libunwind-$LLVM_VERSION-dev"
+ PKG="$PKG clang-tidy-$LLVM_VERSION clang-format-$LLVM_VERSION clang-tools-$LLVM_VERSION llvm-$LLVM_VERSION-dev lld-$LLVM_VERSION lldb-$LLVM_VERSION llvm-$LLVM_VERSION-tools libomp-$LLVM_VERSION-dev libc++-$LLVM_VERSION-dev libc++abi-$LLVM_VERSION-dev libclang-rt-$LLVM_VERSION-dev libpolly-15-dev libclang-rt-15-dev-wasm32 libclang-rt-15-dev-wasm64 libclang-$LLVM_VERSION-dev libclang-cpp$LLVM_VERSION-dev libunwind-$LLVM_VERSION-dev"
if test $LLVM_VERSION -gt 14; then
PKG="$PKG libclang-rt-$LLVM_VERSION-dev libpolly-$LLVM_VERSION-dev"
fi
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk-P27YT_TT0ZUCBHP2xdfDBzsZBftlfGrRJ0PYSUBQtsaFElaTW3Rzy2QvS9u7Wu5vmUPRUQRBsztPM8M3TDIX3uhuVWpNyS8qrhZhDb91aSDdrrxaNbW_X73sFshdjp4ztwItbT_INYVeEbUj-Ev4nRmC5awEZ5kDB6EYaMXZU2mGwI_05-4W26gb8ZHQAPQZL8s09yoUzguCLuDxZY24v1i6h9CD8kCOIsX3WXBWnHNOzmQMYczNkvgcftDGgRx-EMR5IxS5z5mUKXrEY_9Br2YP2MDnl1Rj3AB-aeQwzwaUHpybrIy70swcpZq_HDgRIO-6NluGerIqd7vT3wzgJ-Tli7zZ9CptvxNBWBRBccZJveJmxbPmV4JbgNpLMeM45K8p8SXC7avetlMtm2ewryr-qPyb-9QGowirjnBGsIcuyY-R2-tzFGijnrIPJWan8MWkne32jgOAuDBPBnZgCjWh6Iovi67388ivBXc7pRdqfOMEyF_9Etp_S_rNWNZEDSudEFcH6jksI7jZmHCzYG-UOToeY9pLgbvaO4M7oJj7NzUB5SXCnR2nmVhHcpZwJ7l6I0Y5aCqO_iKDtmPXp_Qf1FsbbWOwYXHTqkbKP-4b7GlE2J12wDDFjRcafLPzx-b6PihJB9jDorg_QKzM9pxVK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