|
|
@ -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
|
|
|
|
It should work for other debian/ubuntu distros as well, but eventually you may run into small differences
|
|
|
|
here and there.
|
|
|
|
here and there.
|
|
|
|
- you can change folder names below, as long as you update the "_config.sh" file accordingly.
|
|
|
|
- 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.
|
|
|
|
1) Install following packages: bc, cdbs, git, pbuilder, rsync and required dependencies.
|
|
|
|
NOTE: sudo should already be installed. If not, install sudo as well.
|
|
|
|
NOTE: sudo should already be installed. If not, install sudo as well.
|
|
|
@ -41,7 +48,7 @@ A) Environment preparation
|
|
|
|
cd tde
|
|
|
|
cd tde
|
|
|
|
./scripts/switch_all_submodules_to_head_and_clean anonymous
|
|
|
|
./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"
|
|
|
|
cd "$TDE_DIR/1_git"
|
|
|
|
git clone https://mirror.git.trinitydesktop.org/gitea/TDE/extra-dependencies.git edeps
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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)
|
|
|
|
5) Add your user to the sudo group (not required if you are root). Mind the stand alone "-"!
|
|
|
|
su -c "adduser <username> sudo"
|
|
|
|
su - -c "adduser <username> sudo"
|
|
|
|
Logout and login again to make sure the new settings are applied.
|
|
|
|
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
|
|
|
|
* 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).
|
|
|
|
(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
|
|
|
|
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
|
|
|
|
sudo pbuilder create
|
|
|
|
If you wish to build for a different distro or architecture, use the command:
|
|
|
|
If you wish to build for a different distro or architecture, use the command:
|
|
|
|
sudo DISTRO_NAME=<target distro> ARCHITECTURE=<target architecture> pbuilder create
|
|
|
|
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:
|
|
|
|
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
|
|
|
|
and make sure all shell scripts are executable
|
|
|
|
- cd "TDE_DIR/buildscripts"
|
|
|
|
- cd "TDE_DIR/buildscripts"
|
|
|
|
- cp ./internals/_config_template.sh _config.sh
|
|
|
|
- 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.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
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 Slavek Banko's pre-built binaries can be used.
|
|
|
|
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
|
|
|
|
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)
|
|
|
|
- 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
|
|
|
|
- create the file /etc/apt/sources.list.d/tde.list add the following lines to it. This will setup the
|
|
|
|
installing the extra dependency packages when TDE is installed.
|
|
|
|
correct repository in apt for installing the required extra dependency packages.
|
|
|
|
* For R14.1.x series (repository branch "master")
|
|
|
|
* For R14.2.x series (repository branch "master")
|
|
|
|
# --- SLAVEK BANKO'S EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
# --- TDE EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-testing <YOUR DISTRO> deps
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-testing <YOUR DISTRO> deps
|
|
|
|
* For R14.0.x series (repository branch "r14.0.x")
|
|
|
|
* For R14.1.x series (repository branch "r14.1.x")
|
|
|
|
# --- SLAVEK BANKO'S EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
# --- TDE EXTRA DEPENDENCIES REPOSITORY ---
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb <YOUR DISTRO> deps-r14
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb <YOUR DISTRO> deps-r14
|
|
|
|
For example:
|
|
|
|
For example:
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb buster deps-r14
|
|
|
|
deb http://mirror.ppa.trinitydesktop.org/trinity-sb buster deps-r14
|
|
|
|
|
|
|
|
|
|
|
|
- install package dirmngr if required
|
|
|
|
- install package dirmngr if required
|
|
|
|
- import TDE Archive Signing key into your apt keyring
|
|
|
|
- import the TDE archive signing key into your apt keyring
|
|
|
|
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key C93AF1698685AD8B
|
|
|
|
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)
|
|
|
|
9.2) Building extra dependencies locally (recommended option)
|
|
|
|
- open "_config.sh" and set the variables USE_PREBUILD_EXTRA_DEPS to "n" and
|
|
|
|
- open "_config.sh" and set the variables USE_PREBUILD_EXTRA_DEPS to "n" and
|
|
|
|
CFG_EXTRA_DEPS_DIR to "edeps"
|
|
|
|
CFG_EXTRA_DEPS_DIR to "edeps"
|
|
|
|
- build the extra dependency as any other normal module
|
|
|
|
- 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 ---
|
|
|
|
# --- 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:
|
|
|
|
For example:
|
|
|
|
deb [trusted=yes] file:/home/tde_src/3_repo buster main
|
|
|
|
deb [trusted=yes] file:/home/tde_src/3_repo buster main
|
|
|
|
|
|
|
|
|
|
|
|