Debian Codegraph @

debian/README

raw
1 LibreOffice build system
2 ------------------------
3
4 Building the packages from source
5 =================================
6 Overview:
7 apt-get source libreoffice
8 apt-get build-dep libreoffice (to install build dependencies)
9 cd <source directory>
10 debuild
11
12 Changing the build behaviour with DEB_BUILD_OPTIONS
13 ---------------------------------------------------
14 These options are supported:
15
16 debug - build with FULL debug symbols. Default is just to build
17 with SMALL ones since the deb otherwise gets too big
18 ((>400M, ca. 1GB I-S))
19
20 ccache - enable the use of ccache during the build. This is highly
21 recommended if you plan on building the package more than
22 once, or doing any development on the packages. Be aware
23 that you need EXTRAPACKAGES="ccache" in /etc/pbuilderrc
24 when trying to build libreoffice with ccache in
25 $DEB_BUILD_OPTIONS under pbuilder (this has no effect
26 on speed, hough because the cache does not persist in
27 pbuilder)
28
29 parallel=<n>
30 - enable n projects to be built in parallel.
31 The log output can get a little confusing, and some projects
32 may fail still. You need to remove config.status if you
33 change this value after interrupting a build.
34
35 lang=<code>
36 - Build only the specified language
37
38 nocheck
39 - disable run of tests when enabled in rules
40
41
42 The targets that are built during the package build
43 ---------------------------------------------------
44
45 - targets run during the package build -
46
47 unpack - Does prerequisites for the build: packing, unpacking etc.
48
49 build - as the name says
50
51 install - Copy files from debian/tmp/pkg into the correct locations
52 for the final package layout in debian/libreoffice*
53 where we need to do that here because it affects arch-dep
54 and arch-indep stuff and therefore cannot be done in
55 install-arch / install-indep.
56
57 install-arch - installs arch-dependent stuff into the arch-dep. packages
58 install-indep - " "-independent " " " "-indep. packages
59
60 langpackgs - Installs the language packgs
61 helppkgs - Installs the help packages
62
63 maintscripts - Generates the maintainer scripts
64
65 get-orig-source - gets original source tarballs and unpacks them
66 GIT_BASEURL can be set to a local mirror
67 GIT_BRANCH is the branch to clone from the repos
68 GIT_TAG is tag that should be packed
69 GIT_BRANCH and GIT_TAG can both be master
70
71 Building the package from git master
72 ====================================
73 To do a build from git master, do:
74 mkdir libreoffice-git
75 cd libreoffice-git
76 git clone https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice.git debian
77 ./debian/rules unpack GIT_BRANCH=master GIT_TAG=master SOURCE_TARBALLS=n
78 dpkg-buildpackage
79
80 Build system file layout
81 ========================
82 debian/scripts:
83 Directory containing various debian-specific build-related scripts.