llvm-toolchain/debian
Sylvestre Ledru aa3112a2cf fix a typo
2021-12-31 10:48:21 +01:00
..
patches Revert "rebase of the patches" 2021-12-24 18:28:30 +01:00
source Remove old override 'outdated-autotools-helper-file' 2021-10-03 21:17:03 +02:00
tests Merge remote-tracking branch 'origin/12' into 13 2021-11-03 16:13:49 -07:00
changelog fix a typo 2021-12-31 10:48:21 +01:00
clang-format-X.Y.install.in
clang-format-X.Y.lintian-overrides.in
clang-format-X.Y.manpages.in Add a manpage for git-clang-format 2021-11-30 22:52:57 +01:00
clang-tidy-X.Y.install.in fix the run-clang-tidy path 2021-02-28 14:57:54 +01:00
clang-tidy-X.Y.links.in Fix run-clang-tidy symlink. it moved from /usr/lib/llvm-13/share/clang/run-clang-tidy to /usr/lib/llvm-13/bin/run-clang-tidy (Closes: #1001748) 2021-12-24 18:24:39 +01:00
clang-tidy-X.Y.lintian-overrides.in
clang-tidy-X.Y.manpages.in Add manpages for git-clang-format & run-clang-tidy 2021-11-30 22:56:09 +01:00
clang-tools-X.Y.install.in Ship clang-repl See https://reviews.llvm.org/D106813 2021-09-17 22:43:26 +02:00
clang-tools-X.Y.links.in As scan-build-py is installed by default ( https://reviews.llvm.org/D104138 ) update of the code 2021-06-22 14:52:23 +02:00
clang-tools-X.Y.lintian-overrides.in
clang-tools-X.Y.manpages.in Ship clang-repl See https://reviews.llvm.org/D106813 2021-09-17 22:43:26 +02:00
clang-X.Y-doc.docs.in Adjust the paths with the move to git project 2019-10-20 11:24:40 +02:00
clang-X.Y-doc.install.in
clang-X.Y-examples.examples.in
clang-X.Y.install.in
clang-X.Y.links.in
clang-X.Y.lintian-overrides.in
clang-X.Y.manpages.in
clangd-X.Y.install.in
clangd-X.Y.manpages.in
compat * Update to compat 11. 2021-10-20 23:12:13 +02:00
control Build & ship mlir too 2021-12-30 17:23:09 +01:00
copyright Add debian/* to the copyright file. Uses the same license as LLVM 2020-09-02 13:55:52 +02:00
debian_path.h
libc++1-X.Y.install.in
libc++1-X.Y.links.in
libc++1-X.Y.lintian-overrides.in
libc++-X.Y-dev.install.in * experimental New snapshot release 2020-03-25 15:48:02 +01:00
libc++-X.Y-dev.links.in
libc++-X.Y-dev.lintian-overrides.in
libc++abi1-X.Y.install.in
libc++abi1-X.Y.links.in
libc++abi1-X.Y.lintian-overrides.in
libc++abi-X.Y-dev.install.in
libc++abi-X.Y-dev.links.in
libc++abi-X.Y-dev.lintian-overrides.in
libclang1-X.Y.install.in * Adjust libclang: 2021-07-31 12:33:52 +02:00
libclang1-X.Y.links.in
libclang1-X.Y.lintian-overrides.in
libclang1-X.Y.symbols.in Add symbol clang_CompileCommand_getNumMappedSources to libclang 2021-08-11 13:10:34 +02:00
libclang-common-X.Y-dev.install.in Use dh-exec to exclude lib/libPolly*.a on powerpc and powerpcspe 2020-08-29 18:32:43 +02:00
libclang-common-X.Y-dev.links.in
libclang-cppX.Y-dev.install.in fix links 2020-03-03 08:12:57 +01:00
libclang-cppX.Y-dev.links.in remove a link which would prevent lib to be coinstsallable 2020-03-03 10:01:27 +01:00
libclang-cppX.Y.install.in Fix the libclang-cpp* packages 2020-03-02 20:31:38 +01:00
libclang-cppX.Y.links.in Fix the libclang-cpp* packages 2020-03-02 20:31:38 +01:00
libclang-X.Y-dev.install.in Merge remote-tracking branch 'origin/10' into snapshot 2020-03-03 11:59:33 +01:00
libclang-X.Y-dev.links.in
libclc-X.Y-dev.install.in libclc: be more prescriptive for the install + test script 2021-05-01 16:28:55 +02:00
libclc-X.Y.install.in debian: Include SPIR-V (*.spv) outputs in libclc package 2021-08-27 09:41:17 +02:00
liblld-X.Y-dev.install.in Install usr/lib/llvm-11/lib/cmake/lld/*.cmake in liblld-11-dev 2020-05-17 09:56:05 +02:00
liblld-X.Y.install.in * Also install liblldMachO2.a in liblld 2020-04-01 11:05:04 +02:00
liblld-X.Y.links.in Move python2.7 to python3 for clang binaries, Reupload to sid (Closes: #948409) 2020-01-08 12:17:34 +01:00
liblldb-X.Y-dev.install.in
liblldb-X.Y-dev.links.in
liblldb-X.Y.install.in remove old comments 2019-12-04 11:40:54 +01:00
liblldb-X.Y.links.in
liblldb-X.Y.lintian-overrides.in
libllvm-X.Y-ocaml-dev.dirs.in
libllvm-X.Y-ocaml-dev.install.in
libllvm-X.Y-ocaml-dev.lintian-overrides.in
libllvm-X.Y-ocaml-dev.META.in
libllvmX.Y.install.in
libllvmX.Y.links.in
libllvmX.Y.lintian-overrides.in
libmlir-X.Y-dev.install.in Build & ship mlir too 2021-12-30 17:23:09 +01:00
libmlir-X.Y-dev.lintian-overrides.in Build & ship mlir too 2021-12-30 17:23:09 +01:00
libmlir-X.Y.install.in Build & ship mlir too 2021-12-30 17:23:09 +01:00
libmlir-X.Y.lintian-overrides.in Build & ship mlir too 2021-12-30 17:23:09 +01:00
libomp5-X.Y.install.in remove libomptarget from openmp. done by upstream in f2f88f3e7a110b2d4d9da446e45f0dba040e62b2 2021-05-08 13:13:21 +02:00
libomp5-X.Y.links.in
libomp5-X.Y.lintian-overrides.in
libomp5-X.Y.symbols.in Merge branch '12' into 13 2021-09-02 12:29:44 +02:00
libomp-X.Y-dev.install.in Move llvm-omp-device-info-X.Y from llvm-X to libompX-dev 2021-10-13 13:29:42 +02:00
libomp-X.Y-dev.links.in
libomp-X.Y-doc.docs.in
libomp-X.Y.links.in
libunwind-X.Y-dev.install.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
libunwind-X.Y-dev.links.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
libunwind-X.Y-dev.lintian-overrides.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
libunwind-X.Y.install.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
libunwind-X.Y.links.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
libunwind-X.Y.lintian-overrides.in Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
lld-X.Y.install.in also install usr/bin/ld64.lld.darwinnew-12 2020-11-26 20:47:24 +01:00
lld-X.Y.manpages.in
lldb-X.Y.install.in Merge remote-tracking branch 'origin/9' into snapshot 2019-10-05 21:09:33 +02:00
lldb-X.Y.links.in
lldb-X.Y.lintian-overrides.in
lldb-X.Y.manpages.in
lldb-X.Y.postinst.in
llvm-priv-dev.dirs
llvm-X.Y-dev.dirs.in
llvm-X.Y-dev.install.in Add new llvm-11-linker-tools 2021-09-27 15:37:55 +02:00
llvm-X.Y-dev.links.in
llvm-X.Y-doc.dirs.in
llvm-X.Y-doc.install.in Adjust the paths with the move to git project 2019-10-20 11:24:40 +02:00
llvm-X.Y-examples.dirs.in
llvm-X.Y-examples.examples.in Install llvm examples in llvm-11-examples (Closes: #969339) 2020-09-29 21:04:35 +02:00
llvm-X.Y-examples.links.in
llvm-X.Y-linker-tools.install.in Add new llvm-11-linker-tools 2021-09-27 15:37:55 +02:00
llvm-X.Y-linker-tools.links.in * Install bfd plugins in 2021-12-30 19:04:22 +01:00
llvm-X.Y-runtime.binfmt.in
llvm-X.Y-runtime.install.in
llvm-X.Y-runtime.lintian-overrides.in
llvm-X.Y-runtime.manpages.in
llvm-X.Y-runtime.postinst.in Update the binfmt-support postinstall to match what is done elsewhere in Debian 2020-07-08 14:00:03 +02:00
llvm-X.Y-runtime.prerm.in Update the binfmt-support postinstall to match what is done elsewhere in Debian 2020-07-08 14:00:03 +02:00
llvm-X.Y-tools.dirs.in
llvm-X.Y-tools.install.in Install split-file in llvm-X-tools (like lit) 2020-08-04 19:03:09 +02:00
llvm-X.Y.dirs.in
llvm-X.Y.install.in remove it from llvm-X 2021-10-13 15:47:41 +02:00
llvm-X.Y.lintian-overrides.in remove llvm-mcmarkup one more time 2021-09-01 12:47:05 +02:00
llvm-X.Y.manpages.in Bring back the llvm manpages (Closes: #995684) Were generated at the wrong place 2021-10-19 18:45:22 +02:00
mlir-X.Y-tools.install.in Build & ship mlir too 2021-12-30 17:23:09 +01:00
NEWS
orig-tar.sh * New testing release 2021-12-08 14:20:02 +01:00
pollycc.in
prepare-new-release.sh Merge branch '12' into 13 2021-08-27 11:41:13 +02:00
python3-clang-X.Y.install.in Move python2.7 to python3 for clang binaries, Reupload to sid (Closes: #948409) 2020-01-08 12:17:34 +01:00
python3-lldb-X.Y.install.in * Fix some paths, upstream moved from site-packages 2019-12-03 14:04:52 +01:00
python3-lldb-X.Y.links.in Fix link for python3-lldb package 2020-01-23 09:18:49 +01:00
qualify-clang.sh Install LLVMgold in usr/lib/bfd-plugins to help various tools to understand the format (Closes: #919020) 2021-12-24 18:24:41 +01:00
README prepare -12 2020-07-15 17:26:34 +02:00
README.source Document some recent changes 2021-11-11 22:48:55 +01:00
rules run check mlir 2021-12-30 17:23:09 +01:00
TODO
unpack.sh working on 13.0.1 2021-12-22 11:03:56 +01:00
watch Update watch file format version to 4. 2021-10-20 23:08:58 +02:00

Organization of the repository
==============================

The debian package for each LLVM point release is maintained as a git branch.
For example, the 10 release lives at in the "10" branch.

The current snapshot release is maintained in the "snapshot" branch.

The easiest way to get all branches is probably to have one
clone per version:

for f in 8 9 10 snapshot; do
    git clone git@salsa.debian.org:pkg-llvm-team/llvm-toolchain.git -b $f $f
done

Steps for manually building a snapshot release
==============================================

1) Retrieve the latest snapshot and create original tarballs.

   Run the orig-tar.sh script,

     $ sh snapshot/debian/orig-tar.sh

   which will retrieve the latest version for each LLVM subproject (llvm,
   clang, lldb, etc.) from the main development (upstream github). and repack it
   as a set of tarballs.

2) Unpack the original tarballs and apply quilt debian patches.

   From the branches/ directory run the unpack.sh script,

     $ sh unpack.sh

   which will unpack the source tree inside a new directory such as
   branches/llvm-toolchain-snapshot_3.9~+20191018225217+3b123a2be6d.
   (date+hour+short git hash).
   Depending on the current snapshot version number and git release,
   the directory name will be
   different.

   Quilt patches will then be applied.

3) Build the binary packages using,

     $ fakeroot debian/rules binary

When debugging, successive builds can be recompiled faster by using tools such
as ccache (PATH=/usr/lib/ccache:$PATH fakeroot debian/rules binary).

Retrieving a specific branch or release candidate with orig-tar.sh
==================================================================

When using orig-tar.sh, if you need to retrieve a specific branch, you can pass
the branch name as the first argument. For example, to get the 10 release
branch at
  https://github.com/llvm/llvm-project/branches
you should use,

  $ sh 10/debian/orig-tar.sh release/10.x

To retrieve a specific release candidate, you can pass the branch name as the
first argument, and the tag rc number as the second argument. For example, to
get the 9.0.1 release candidate rc3 at
  https://github.com/llvm/llvm-project/tags
you should use,

  $ sh 10/debian/orig-tar.sh 10.0.1 rc3

For a stable release, the syntax is:

 $ sh 10/debian/orig-tar.sh 10.0.0


Additional maintainer scripts
=============================

The script qualify-clang.sh that is found at the git debian/ directory
should be used to quickly test a newly built package. It runs a short
set of sanity-check tests and regression tests.

The script releases/snapshot/debian/prepare-new-release.sh is used when
preparing a new point release. It automatically replaces version numbers
in various files of the package.

Making a change to all versions
===============================

Sometimes, we want to make a change on all branches.
In that case, start to make the change from the older
version (example: 8), then, change branch (example: 9) and
$ git merge origin/8
to retrieve the changes


Change in major upstream version
================================
TODO update with the git commands

$ svn copy snapshot VERSION
$ svn commit -m "VERSION branched" VERSION
$ cd VERSION
$ sed -i -e '0,/llvm-toolchain-snapshot/s/llvm-toolchain-snapshot/llvm-toolchain-VERSION/' debian/changelog debian/control
$ svn commit -m "snapshot => VERSION"
$ cd ../snapshot
$ emacs debian/prepare-new-release.sh
# Change the version
$ bash debian/prepare-new-release.sh
$ svn commit -m "new snapshot release"

Now, try build build it.