|
|
|
@ -14,6 +14,13 @@ A) Environment preparation
|
|
|
|
|
It should work for other debian/ubuntu distros as well, but eventually you may run into small differences
|
|
|
|
|
here and there.
|
|
|
|
|
- you can change folder names below, as long as you update the "_config.sh" file accordingly.
|
|
|
|
|
- you need to choose whether to use standard git repository clones or use git worktrees.
|
|
|
|
|
Different instructions will be provided where necessary, based on the choice made.
|
|
|
|
|
- you need to choose whether to use standard git repository clones or use git worktrees.
|
|
|
|
|
Different instructions will be provided where necessary, based on the choice made.
|
|
|
|
|
- you need to choose whether to use pre built extra dependency packages or build them yourself.
|
|
|
|
|
Different instructions will be provided where necessary, based on the choice made.
|
|
|
|
|
More on this at point 9).
|
|
|
|
|
|
|
|
|
|
1) Install following packages: bc, cdbs, git, pbuilder, rsync and required dependencies.
|
|
|
|
|
NOTE: sudo should already be installed. If not, install sudo as well.
|
|
|
|
@ -41,7 +48,7 @@ A) Environment preparation
|
|
|
|
|
cd tde
|
|
|
|
|
./scripts/switch_all_submodules_to_head_and_clean anonymous
|
|
|
|
|
|
|
|
|
|
A.2) If you are not using pre-built extra dependencies:
|
|
|
|
|
A.2) If you are *not* using pre-built extra dependencies:
|
|
|
|
|
cd "$TDE_DIR/1_git"
|
|
|
|
|
git clone https://mirror.git.trinitydesktop.org/gitea/TDE/extra-dependencies.git edeps
|
|
|
|
|
|
|
|
|
@ -50,15 +57,16 @@ A) Environment preparation
|
|
|
|
|
cd "$TDE_DIR/1_git"
|
|
|
|
|
git clone --bare --config "remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*" https://mirror.git.trinitydesktop.org/gitea/TDE/tde.git repos/tde.git
|
|
|
|
|
|
|
|
|
|
B.2) If you are not using pre-built extra dependencies:
|
|
|
|
|
B.2) If you are *not* using pre-built extra dependencies:
|
|
|
|
|
cd "$TDE_DIR/1_git"
|
|
|
|
|
git clone --bare --config "remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*" https://mirror.git.trinitydesktop.org/gitea/TDE/extra-dependencies.git repos/edeps.git
|
|
|
|
|
|
|
|
|
|
B.3) run the script "update_repositories.sh" once you have completed the setup as described later in this document.
|
|
|
|
|
|
|
|
|
|
5) Add your user to the sudo group (not required if you are root)
|
|
|
|
|
su -c "adduser <username> sudo"
|
|
|
|
|
Logout and login again to make sure the new settings are applied.
|
|
|
|
|
5) Add your user to the sudo group (not required if you are root). Mind the stand alone "-"!
|
|
|
|
|
su - -c "adduser <username> sudo"
|
|
|
|
|
Logout and login again to make sure the new settings are applied. If you forget this step, you will have build
|
|
|
|
|
errors when you first try to build a module.
|
|
|
|
|
* Optionally, consider extending your sudo timeout interval to avoid having to type your password too often
|
|
|
|
|
(this could be quite painful especially during long builds, which would not be able to complete if unattended).
|
|
|
|
|
To do this, type "sudo visudo" and then add "Defaults timestamp_timeout=<new timeout>", where the value is in
|
|
|
|
@ -71,9 +79,11 @@ A) Environment preparation
|
|
|
|
|
sudo pbuilder create
|
|
|
|
|
If you wish to build for a different distro or architecture, use the command:
|
|
|
|
|
sudo DISTRO_NAME=<target distro> ARCHITECTURE=<target architecture> pbuilder create
|
|
|
|
|
If all goes well there should be no errors reported and a file named "base-<distro name>@<architecture>.tgz"
|
|
|
|
|
should be found at location "/var/cache/pbuilder/".
|
|
|
|
|
|
|
|
|
|
8) Setup the build scripts locally:
|
|
|
|
|
- copy build scripts from "TDE_DIR/1_git/tde/packaging/debian/_buildscripts/local" to "TDE_DIR/buildscripts"
|
|
|
|
|
- copy the contents of "TDE_DIR/1_git/tde/packaging/debian/_buildscripts/local" to "TDE_DIR/buildscripts"
|
|
|
|
|
and make sure all shell scripts are executable
|
|
|
|
|
- cd "TDE_DIR/buildscripts"
|
|
|
|
|
- cp ./internals/_config_template.sh _config.sh
|
|
|
|
@ -85,34 +95,36 @@ A) Environment preparation
|
|
|
|
|
* UPDATE_BRANCHES to the branches you want to keep updated from the main repositories.
|
|
|
|
|
* DEFAULT_REPO_BRANCH to the branch to check out at the end of the repositories update process.
|
|
|
|
|
|
|
|
|
|
9) Some additional packages (referred to as extra dependencies) are required to build and install TDE in debian/ubuntu.
|
|
|
|
|
These modules can be built locally or alternatively Slavek Banko's pre-built binaries can be used.
|
|
|
|
|
9) Some additional packages (referred to as extra dependencies) are required to build and install TDE in debian/devuan/ubuntu.
|
|
|
|
|
These modules can be built locally or alternatively pre-built binaries from the TDE archive can be used.
|
|
|
|
|
|
|
|
|
|
9.1) Using pre-built extra dependencies
|
|
|
|
|
- open "_config.sh" and set the variable USE_PREBUILD_EXTRA_DEPS to "y" (this is the default initial setting)
|
|
|
|
|
- add the following lines to the /etc/apt/sources.list file. This will setup Slavek's repositories in apt for
|
|
|
|
|
installing the extra dependency packages when TDE is installed.
|
|
|
|
|
* For R14.1.x series (repository branch "master")
|
|
|
|
|
# --- SLAVEK BANKO'S EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
|
- create the file /etc/apt/sources.list.d/tde.list add the following lines to it. This will setup the
|
|
|
|
|
correct repository in apt for installing the required extra dependency packages.
|
|
|
|
|
* For R14.2.x series (repository branch "master")
|
|
|
|
|
# --- TDE EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-testing <YOUR DISTRO> deps
|
|
|
|
|
* For R14.0.x series (repository branch "r14.0.x")
|
|
|
|
|
# --- SLAVEK BANKO'S EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
|
* For R14.1.x series (repository branch "r14.1.x")
|
|
|
|
|
# --- TDE EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb <YOUR DISTRO> deps-r14
|
|
|
|
|
For example:
|
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb buster deps-r14
|
|
|
|
|
|
|
|
|
|
- install package dirmngr if required
|
|
|
|
|
- import TDE Archive Signing key into your apt keyring
|
|
|
|
|
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key C93AF1698685AD8B
|
|
|
|
|
- import the TDE archive signing key into your apt keyring
|
|
|
|
|
sudo wget http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-keyring.deb
|
|
|
|
|
sudo dpkg -i trinity-keyring.deb
|
|
|
|
|
|
|
|
|
|
9.2) Building extra dependencies locally (recommended option)
|
|
|
|
|
- open "_config.sh" and set the variables USE_PREBUILD_EXTRA_DEPS to "n" and
|
|
|
|
|
CFG_EXTRA_DEPS_DIR to "edeps"
|
|
|
|
|
- build the extra dependency as any other normal module
|
|
|
|
|
|
|
|
|
|
10) Add the following lines to the /etc/apt/sources.list file. This will setup your local repo in apt.
|
|
|
|
|
10) If needed, create the file /etc/apt/sources.list.d/tde.list. Then add the following lines to it.
|
|
|
|
|
This will setup your local repository in apt.
|
|
|
|
|
# --- LOCAL TDE REPOSITORY ---
|
|
|
|
|
deb [trusted=yes] file:TDE_DIR/3_repo <YOUR DISTRO> main
|
|
|
|
|
deb [trusted=yes] file:$TDE_DIR/3_repo <YOUR DISTRO> main
|
|
|
|
|
For example:
|
|
|
|
|
deb [trusted=yes] file:/home/tde_src/3_repo buster main
|
|
|
|
|
|
|
|
|
|