Control: retitle -1 clang-19: buggy dependency syntax 1:19:1.7-11 confuses 
aptitude and apt/apt-get

On 2025-11-23 12:41:03 +0100, Vincent Lefevre wrote:
> aptitude refuses to upgrade clang-19 to 1:19.1.7-17, apparently
> due to buggy dependency syntax:
> 
> Replaces: clang-tools-19 (<< 1:19:1.7-11)
> Breaks: clang-tools-19 (<< 1:19:1.7-11)
> 
> There's a colon (:) between the "19" and "1.7-11" instead of a
> period. So, aptitude thinks that clang-19 breaks *any* version
> of clang-tools-19 (while clang-19 recommends it).

It also confuses apt and apt-get, which blindly remove clang-tools-19
as they do not check Recommends:

$ apt-get install -s clang-19
[...]
The following additional packages will be installed:
  clang-format-19 libclang-common-19-dev libclang-cpp19 libclang1-19 libllvm19
  lld-19 llvm-19 llvm-19-dev llvm-19-linker-tools llvm-19-runtime
  llvm-19-tools
The following packages will be REMOVED:
  clang-tools-19
The following packages will be upgraded:
  clang-19 clang-format-19 libclang-common-19-dev libclang-cpp19 libclang1-19
  libllvm19 lld-19 llvm-19 llvm-19-dev llvm-19-linker-tools llvm-19-runtime
  llvm-19-tools
[...]

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to