failed to install both clang-3.4 and clang-3.5

Bug #1366815 reported by trophime
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-3.4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Following debian packages it should be now possible to install both clang-3.4 and clang-3.5.
Trying to do the same on ubuntu utopic fails (sorry for the report in french) whereas it works smoothly on Debian :

"""
Sélection du paquet clang-3.5 précédemment désélectionné.
dpkg: concernant clang-3.5_3.5~+rc3-1ubuntu1_amd64.deb contenant clang-3.5 :
 clang-3.5 casse (« breaks ») clang-3.4 (<< 1:3.4.2-7~exp1)
  « clang-3.4 » (version « 1:3.4.2-3ubuntu2 ») est présent ainsi que « installé ».

dpkg: error processing archive clang-3.5_3.5~+rc3-1ubuntu1_amd64.deb (--install):
 l'installation de clang-3.5 casserait clang-3.4
 et la déconfiguration n'est pas autorisée (--auto-deconfigure pourrait aider)
Sélection du paquet clang-3.5-doc précédemment désélectionné.
(Lecture de la base de données... 966395 fichiers et répertoires déjà installés.)
Préparation du décompactage de clang-3.5-doc_3.5~+rc3-1ubuntu1_all.deb ...
Sélection du paquet clang-3.5-examples précédemment désélectionné.
Préparation du décompactage de clang-3.5-examples_3.5~+rc3-1ubuntu1_amd64.deb ...
Sélection du paquet libclang-3.5-dev précédemment désélectionné.
Préparation du décompactage de libclang-3.5-dev_3.5~+rc3-1ubuntu1_amd64.deb ...
Sélection du paquet python-clang-3.5 précédemment désélectionné.
dpkg: concernant python-clang-3.5_3.5~+rc3-1ubuntu1_amd64.deb contenant python-clang-3.5 :
 python-clang-3.5 casse (« breaks ») python-clang-3.4
  « python-clang-3.4 » (version « 1:3.4.2-3ubuntu2 ») est présent ainsi que « installé ».
"""

The trouble in Ubuntu is, I think, linked with the following lines in the debian/control file:
"""
Package: clang-3.5
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
 libclang-common-3.5-dev (= ${binary:Version}),
 libclang1-3.5 (= ${binary:Version}), libc6-dev
Provides: c-compiler, objc-compiler, c++-compiler
Recommends: llvm-3.5-dev, python
Suggests: gnustep, gnustep-devel, clang-3.5-doc
Replaces: clang-3.1, clang-3.2, clang-3.3,
 clang (<< 1:3.5),
 clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1), compiler-rt
Breaks: clang-3.1, clang-3.2, clang-3.3,
 clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1), compiler-rt
Description: C, C++ and Objective-C compiler (LLVM based)
"""

The version number for clang-3.4 is wrong in Ubuntu. There is no 3.4.2-7~, there is only a 3.4.2-3~
Changing this would enable to install both version of clang

Best
C

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.