llvm-toolchain/debian
2018-02-27 09:09:55 +01:00
..
patches remove a non existing patch 2018-02-26 18:33:37 +01:00
source
changelog Merge branch '6.0' into snapshot 2018-02-26 16:32:10 +00:00
clang-format-X.Y.install.in
clang-format-X.Y.lintian-overrides.in
clang-format-X.Y.manpages.in
clang-tidy-X.Y.install.in
clang-tidy-X.Y.links.in
clang-tidy-X.Y.lintian-overrides.in
clang-tidy-X.Y.manpages.in
clang-tools-X.Y.install.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-21 21:50:36 +00:00
clang-tools-X.Y.links.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-20 11:07:53 +00:00
clang-tools-X.Y.lintian-overrides.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-20 11:07:53 +00:00
clang-tools-X.Y.manpages.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-20 11:07:53 +00:00
clang-X.Y-doc.docs.in Re-add documentation for clang-doc 2017-06-04 18:11:02 +00:00
clang-X.Y-examples.examples.in
clang-X.Y.install.in add the missing file 2017-11-27 21:32:58 +00:00
clang-X.Y.lintian-overrides.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-20 11:07:53 +00:00
clang-X.Y.manpages.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-20 11:07:53 +00:00
compat
control fix an issue with the snapshot version 2018-02-24 22:27:02 +01:00
copyright Update of the copyright file (Closes: #878502) 2017-10-19 07:35:44 +00:00
debian_path.h
libclang1-X.Y.install.in
libclang1-X.Y.links.in
libclang1-X.Y.lintian-overrides.in
libclang1-X.Y.symbols.in Move the VCS to git. Many thanks to James Clarke for doing the conversion 2018-02-23 19:56:59 +01:00
libclang-common-X.Y-dev.install.in install missing files 2018-01-19 08:50:02 +00:00
libclang-common-X.Y-dev.links.in
libclang-X.Y-dev.install.in
libclang-X.Y-dev.links.in
liblld-X.Y-dev.install.in Fix the install of non existing libs 2017-01-08 08:45:16 +00:00
liblld-X.Y.install.in Also ship ld64.lld and wasm-ld in the lld-X.Y package 2017-11-18 10:43:53 +00:00
liblld-X.Y.links.in Create clang-tools-4.0 and move the various clang tools into it 2017-11-21 21:50:36 +00:00
liblldb-X.Y-dev.install.in
liblldb-X.Y-dev.links.in Add the missing lldb symlinks (Closes: #872237) 2017-10-01 20:55:23 +00:00
liblldb-X.Y.install.in lldb lib ext renamed 2017-08-12 09:34:06 +00:00
liblldb-X.Y.links.in Add the missing lldb symlinks (Closes: #872237) 2017-10-01 20:55:23 +00:00
liblldb-X.Y.lintian-overrides.in
libllvm-X.Y-ocaml-dev.dirs.in
libllvm-X.Y-ocaml-dev.install.in New snapshot release 2017-05-06 08:02:18 +00:00
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
lld-X.Y.install.in Also ship ld64.lld and wasm-ld in the lld-X.Y package 2017-11-18 10:43:53 +00:00
lld-X.Y.manpages.in fix the declaration typo 2018-02-13 12:21:41 +00:00
lldb-X.Y.install.in Also install usr/bin/lldb-test-6.0 2017-12-01 10:32:52 +00:00
lldb-X.Y.links.in Add a symlink to fix lldb-X.Y - for real (Closes: #881993) 2017-12-22 14:16:54 +00:00
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
llvm-X.Y-dev.links.in
llvm-X.Y-doc.dirs.in
llvm-X.Y-doc.install.in Bring back the content of llvm-4.0-doc (Closes: #844616) 2017-01-14 10:57:13 +00:00
llvm-X.Y-examples.dirs.in
llvm-X.Y-examples.examples.in
llvm-X.Y-examples.links.in
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
llvm-X.Y-runtime.prerm.in
llvm-X.Y-tools.dirs.in
llvm-X.Y-tools.install.in Ship the opt-viewer new program as part of llvm-5.0 tools 2017-07-09 15:36:46 +00:00
llvm-X.Y.dirs.in
llvm-X.Y.install.in
llvm-X.Y.lintian-overrides.in
llvm-X.Y.manpages.in
NEWS add a news 2018-01-18 19:50:48 +00:00
orig-tar.sh * Change the versioning from X.Y to X as upstream is using 2018-01-18 19:44:15 +00:00
pollycc.in
prepare-new-release.sh add debian/qualify-clang.sh to the list of files 2018-02-27 09:09:55 +01:00
python-clang-X.Y.install.in
python-lldb-X.Y.install.in
python-lldb-X.Y.links.in
qualify-clang.sh adjust the script for 7 2018-02-27 09:09:30 +01:00
README Add README doc into the repo 2018-02-27 09:03:51 +01:00
README.source
rules Merge branch '6.0' into snapshot 2018-02-26 16:32:10 +00:00
source.lintian-overrides ignore source: source-is-missing lldb/unittests/ 2018-02-07 10:43:38 +00:00
TODO
watch

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

The debian package for each LLVM point release is maintained as a git branch.
For example, the 4.0 release lives at in the "4.0" 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 4.0 5.0 6.0 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 SVN). 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~svn268942. Depending on the current
   snapshot version number and svn 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 4.0 release
branch at
  http://llvm.org/svn/llvm-project/{llvm,...}/branches/release_40
you should use,

  $ sh 4.0/debian/orig-tar.sh release_40

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 4.0.1 release candidate rc3 at
  http://llvm.org/svn/llvm-project/{llvm,...}/tags/RELEASE_401/rc3
you should use,

  $ sh 4.0/debian/orig-tar.sh RELEASE_401 rc3 4.0.1

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.


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.