* Disable again LTO

* Create a new package llvm-12-linker-tools:
  Contains the LLVMgold and LLVMPolly linker plugins.
This commit is contained in:
Sylvestre Ledru 2021-04-18 23:07:14 +02:00
parent e273082e19
commit d46c88e66a
3 changed files with 25 additions and 10 deletions

3
debian/changelog vendored
View File

@ -43,6 +43,9 @@ llvm-toolchain-12 (1:12.0.0-3) UNRELEASED; urgency=medium
[ Matthias Klose ]
* Improve the clean rule
* Disable again LTO
* Create a new package llvm-12-linker-tools:
Contains the LLVMgold and LLVMPolly linker plugins.
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 15 Apr 2021 13:27:57 +0200

22
debian/control vendored
View File

@ -281,6 +281,7 @@ Description: Modular compiler and toolchain technologies, runtime library
.
This package contains the LLVM runtime library.
<<<<<<< HEAD
Package: llvm-13-linker-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
@ -300,6 +301,27 @@ Depends: llvm-13-runtime (= ${binary:Version}),
llvm-13-linker-tools (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends}
Recommends: llvm-13-dev
=======
Package: llvm-12-linker-tools
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: llvm-12-dev (<< 1:12.0.0~++rc5-1ubuntu2), clang-12 (<< 1:12.0.0~++rc5-1ubuntu2)
Replaces: llvm-12-dev (<< 1:12.0.0~++rc5-1ubuntu2), clang-12 (<< 1:12.0.0~++rc5-1ubuntu2)
Description: Modular compiler and toolchain technologies
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other
compiler-related programs.
.
This package contains the LLVMgold and LLVMPolly linker plugins.
Package: llvm-12
Architecture: any
Suggests: llvm-12-doc
Depends: llvm-12-runtime (= ${binary:Version}),
llvm-12-linker-tools (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends}
Recommends: llvm-12-dev
>>>>>>> 608f891a (* Disable again LTO)
Description: Modular compiler and toolchain technologies
LLVM is a collection of libraries and tools that make it easy to build
compilers, optimizers, just-in-time code generators, and many other

10
debian/rules vendored
View File

@ -351,16 +351,6 @@ preconfigure:
debian/llvm-$(LLVM_VERSION)-dev.install \
debian/llvm-$(LLVM_VERSION)-linker-tools.install
# workaround the breaks/replaces/conflicts introduced with llvm-12-linker-tools
# we update the version to make it work with apt.llvm.org
# Yeah, this is ugly but I don't know how to do better
if test "$(LLVM_VERSION)" = "12"; then \
if echo "$(LLVM_VERSION_SNAPSHOT)"|grep -q "++"; then \
sed -i -e "s|(<< 1:12.0.0-2)|(<< 12.0.0~++20210418)|g" debian/control; \
fi; \
fi
# DH doesn't support the [power ...] in install on Ubuntu trusty
# fails with cp: cannot stat 'debian/tmp/[!powerpc': No such file or directory
if test "$(DISTRO)" = "trusty"; then \