* Once the page open in your browser, select your distro in the combobox and click the "Filter" button.
You should get a list of 10-15 modules, depending on the distro
* Click on one module at a time, it will expand and show a list of .deb and other files below.
* Save those files (exclude .deb files. Only .orig.tar.xz, .dsc, .debian.tar.xz are required) and store
them to TDE_SRC/1_git/edeps/<MODULE NAME> folder (one folder per module)
7) Setup the build scripts locally:
- copy build scripts from "TDE_SRC/1_git/tde-packaging/debian/_buildscripts/local/scripts" to "TDE_SRC/buildscripts"
- copy build scripts from "TDE_SRC/1_git/tde-packaging/debian/_buildscripts/local/scripts" to "TDE_SRC/buildscripts"
- cd "TDE_SRC/buildscripts"
- cd "TDE_SRC/buildscripts"
- cp _build_config_template.sh build_config.sh
- cp _build_config_template.sh build_config.sh
- edit "build_config.sh" to set your preferences and check that the various folder names match the structure on your disk.
- edit "build_config.sh" to set your preferences and check that the various folder names match the structure on your disk.
Make sure to set the variable TDE_SRC to the correct path and the variables DISTRO, DISTRO_NAME and ARCHITECTURE to
8) Add your user to the sudoers group (not required if you are root):
match the distro and architecture you want to build for.
sudo adduser <your user> sudo
------------------------------
----------------------
B) Notes about scripts
B) Notes about scripts
------------------------------
----------------------
1) * Notes *
1) * Notes *
Modules are built using the build_module.sh script. After the build is completed, the installation .deb files are located in TDE_SRC/2_build/debs/<MODULE NAME>/ and the source code and build reports in TDE_SRC/2_build/debs/<MODULE NAME>/src/
Modules are built using the build_module.sh script. After the build is completed, the installation .deb files are located in TDE_SRC/2_build/debs/<MODULE NAME>/ and the source code and build reports in TDE_SRC/2_build/debs/<MODULE NAME>/src/
@ -98,7 +112,7 @@ Scripts used to update the local clone of the git repositories.
doing local changes/development. The module can then be built from the modified local folder
doing local changes/development. The module can then be built from the modified local folder
-d (Debug) : enable debug symbols if possible (debian/rules file must contain "RelWithDebInfo" for this to work)
-d (Debug) : enable debug symbols if possible (debian/rules file must contain "RelWithDebInfo" for this to work)
-ip (Internal Pbuilder): build using internal pbuilder mode (experimental)
-ip (Internal Pbuilder): build using internal pbuilder mode (experimental)
- _build_config_template.sh
- _build_config_template.sh
Template file for building configuration. Will be copied into TDE_SRC/build_config.sh upon first execution, if not already
Template file for building configuration. Will be copied into TDE_SRC/build_config.sh upon first execution, if not already
done when the environment was set up.
done when the environment was set up.
@ -151,36 +165,40 @@ To use a hook, create an executable script (pre_build.sh and/or post_build.sh) i
------------------------------
-------------------------
C) How to use the scripts
C) How to use the scripts
------------------------------
-------------------------
1) Follow the steps in section "A) Environment preparation" (only required the first time)
1) Follow the steps in section "A) Environment preparation" (only required the first time).
2) cd "TDE_SRC/buildscripts"
2) cd "TDE_SRC/buildscripts"
3) ./update_git_repository.sh -> update git repository, wait until "Update completed" is printed out.
3) Update to latest git repository using
Check log in TDE_SRC/0_logs/ if you wish
./update_git_repository.sh
4) Run "pbuilder update" at the beginning of the day to update the base package to the latest version. This will speed up
Wait until "Update completed" is printed out. Check log in TDE_SRC/0_logs/ if you wish.
4) Run "sudo pbuilder update" at the beginning of the day to update the base package to the latest version. This will speed up
the process when building several modules in sequence.
the process when building several modules in sequence.
5) build modules as per your needs.
5) Build modules as per your needs.
- If you are not root, you need to use sudo in front of each command.
Examples of real usage:
Examples of real usage:
4.1) build a single module
4.1) build a single module
* ./build_module.sh -g "tdelibs" -> build "tdelibs" from git sources in a clean chroot environment
- [sudo] ./build_module.sh -g -sl "dependencies/libr" -> build libr package. This is a good test to check
* ./build_module.sh -g -l -sl "applications/amarok" -> build "amarok" locally from git sources and
whether everything is working fine
display building logs during building
- [sudo] ./build_module.sh -g "tdelibs" -> build "tdelibs" from git sources in a clean chroot environment
* ./build_module.sh -sh -lr "tdebase" -> build "tdebase" from the local sources (in TDE_SRC/2_build/build/tdebase)
- [sudo] ./build_module.sh -g -l -sl "applications/amarok" -> build "amarok" locally from git sources and
in a clean chroot environment and launch a shell in case of building failure.
display building logs during building
Append the build result (OK, FAILED) to TDE_SRC/scripts/logs/build_result.log
- [sudo] ./build_module.sh -sh -lr "tdebase" -> build "tdebase" from the local sources (in TDE_SRC/2_build/build/tdebase)
* ./build_module.sh -g -po "tdelibs" -> prepare "tdelibs" for building from git sources. Source code will be available
in a clean chroot environment and launch a shell in case of building failure.
in TDE_SRC/2_build/build/tdelibs. After you have made changes to the source and
Append the build result (OK, FAILED) to TDE_SRC/scripts/logs/build_result.log
want to build the modified package, run './build_module.sh "tdelibs"'
- [sudo] ./build_module.sh -g -po "tdelibs" -> prepare "tdelibs" for building from git sources. Source code will be available
in TDE_SRC/2_build/build/tdelibs. After you have made changes to the source and
want to build the modified package, run './build_module.sh "tdelibs"'
4.2) build a single set
4.2) build a single set
(optional) delete the TDE_SRC/0_logs/build_result.log file
(optional) delete the TDE_SRC/0_logs/build_result.log file
./01_base_01.sh : build this set.
[sudo] ./01_base_01.sh : build this set.
./03_base_03.sh -s 3 : build this set but skip the first 3 modules of the set.
[sudo] ./03_base_03.sh -s 3 : build this set but skip the first 3 modules of the set.
4.3) build all TDE
4.3) build all TDE
./build_TDE.sh : build all TDE
[sudo] ./build_TDE.sh : build all TDE
./build_TDE.sh -s 4 : build all TDE, but skip the first 4 sets
[sudo] ./build_TDE.sh -s 4 : build all TDE, but skip the first 4 sets