From 329492cb8a1a9a550c2a5d6408cf805b381e48e4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 5 Jun 2018 16:46:15 +0900 Subject: DEB build scripts: major update of README file after testing on a clean netinstall VM. Signed-off-by: Michele Calgaro --- debian/_buildscripts/local/scripts/README.txt | 172 ++++++++++++--------- .../root/.pbuilder/hooks/__template_C10shell | 7 + .../scripts/additional files/root/.pbuilderrc | 152 ++++++++++++++++++ .../.pbuilder/hooks/__template_C10shell | 7 - .../additional files/user_home_folder/.pbuilderrc | 152 ------------------ 5 files changed, 254 insertions(+), 236 deletions(-) create mode 100755 debian/_buildscripts/local/scripts/additional files/root/.pbuilder/hooks/__template_C10shell create mode 100644 debian/_buildscripts/local/scripts/additional files/root/.pbuilderrc delete mode 100755 debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilder/hooks/__template_C10shell delete mode 100644 debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilderrc (limited to 'debian/_buildscripts') diff --git a/debian/_buildscripts/local/scripts/README.txt b/debian/_buildscripts/local/scripts/README.txt index 244b323c3..fb65240e6 100644 --- a/debian/_buildscripts/local/scripts/README.txt +++ b/debian/_buildscripts/local/scripts/README.txt @@ -1,71 +1,85 @@ - Index -------- +----- +Index +----- A) Environment preparation B) Notes about scripts C) How to use the scripts ------------------------------- - A) Environment preparation ------------------------------- -0) * NOTE *: you can change folder names, as long as you update the "build_config.sh" file accordingly. - -1) Install pbuilder and configure it - (see https://wiki.ubuntu.com/PbuilderHowto and https://wiki.debian.org/PbuilderTricks for a detailed tutorial) - - You can use the file ".pbuilderrc" from following point 2) - -2) Copy files from "additional files" folder to respectivily named folder. - - "user_home_folder" refers to the user home folder. - - make sure to make the files in "user home folder/.pbuilder/hooks" executable - -3) Create base package with the command: - pbuilder --create - If you wish to build for a different distro, use the command: - DIST= pbuilder --create +-------------------------- +A) Environment preparation +-------------------------- +0) Initial notes + - this guide has been prepared based on a clean debian testing netinstall system without any other DE. + 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 "build_config.sh" file accordingly. + +1) Install following packages: bc, cdbs, git, links2, pbuilder + +2) Create a base folder for TDE, hereafter referred to as TDE_SRC (for example $HOME/tde_src) + +3) Create the following folders [ see NOTE at point 0) about folder names ] + - in TDE_SRC: 0_logs : contains log files for repo update and global builds (more on this later) + 1_git : contains the git repo clones and build hook scripts + 2_build: folder used for build preparation and for local builds + 3_repo : local repo for package installation (to be configured in /etc/apt/sources.list) + buildscripts: contains a local copy of the build scripts, which can be modified as required + - in TDE_SRC/1_git: + edeps : contains extra dependency modules necessary to build TDE + hooks : contains build hook scripts to execute ad-hoc code before and after the building process. + Mainly used to apply patches automatically during the building process + +4) Clone TDE git repositories and extra dependency modules: + - TDE main repo + cd "TDE_SRC/1_git" + git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde + cd tde + git submodule init -- scripts + git submodule update -- scripts + ./scripts/switch_all_submodules_to_head_and_clean anonymous + - TDE packaging repo + cd "TDE_SRC/1_git" + git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging + - extra dependency packages + using a browser, download the source code for extra dependency modules from Slavek's PPA + (usually more recently updated): + https://quickbuild.pearsoncomputing.net/~slavek-banko/+archive/deps-r14/+packages + or from the official PPA: + https://quickbuild.pearsoncomputing.net/~trinity/+archive/trinity-nightly-build-dependencies/+packages + NOTES: + * Once the page open in your browser, select your distro in the combobox near the "Filter" button and click + the button to update. You should get a list of 10-15 modules, depending on the distro. + * Click on one module at a time, it will expand (or open another page) and show a list of .deb and other files. + * 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/ folder (one folder per module). + +5) Add your user to the sudoers group (not required if you are root) + su -c "adduser sudo" + Logout and login again to make sure the setting is applied. + +6) Copy the files from "TDE_SRC/1_git/tde-packaging/debian/_buildscripts/local/scripts/additional files" folder + to the respectivily named folders. + - make sure the files in "/root/.pbuilder/hooks" are executable + +7) Create pbuilder base package with the command: + sudo pbuilder --create + If you wish to build for a different distro or architecture, use the command: + sudo DIST= ARCH= pbuilder --create -4) Create a base folder for TDE, hereafter referred to as TDE_SRC (for example $HOME/tde_src) - -5) Create the following folders [ see NOTE at point 0) about folder names ] - - in TDE_SRC: 0_logs : contains log files for repo update and global builds (more on this later) - 1_git : contains the git repo clones and build hook scripts - 2_build: folder used for build preparation and for local builds - 3_repo : local repo for package installation (to be configured in /etc/apt/sources.list) - buildscripts: contains a local copy of the build scripts, which can be modified as required - - in TDE_SRC/1_git: - edeps : contains extra dependency modules necessary to build TDE - hooks : contains build hook scripts to execute ad-hoc code before and after the building process. - Mainly used to apply patches automatically during the building process - -6) Clone TDE git repositories and extra dependency modules: - - cd "TDE_SRC/1_git" - - clone tde repo : git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde - - clone tde packaging repo: git clone https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging - - using a browser, download the source code for extra dependency modules from Slavek's PPA - (usually more recently updated): - https://quickbuild.pearsoncomputing.net/~slavek-banko/+archive/deps-r14/+packages - or from the official PPA: - https://quickbuild.pearsoncomputing.net/~trinity/+archive/trinity-nightly-build-dependencies/+packages - NOTES: - * 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/ folder (one folder per module) - -7) Setup the build scripts locally: +8) Setup the build scripts locally: - copy build scripts from "TDE_SRC/1_git/tde-packaging/debian/_buildscripts/local/scripts" to "TDE_SRC/buildscripts" - cd "TDE_SRC/buildscripts" - 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. - -8) Add your user to the sudoers group (not required if you are root): - sudo adduser sudo + Make sure to set the variable TDE_SRC to the correct path and the variables DISTRO, DISTRO_NAME and ARCHITECTURE to + match the distro and architecture you want to build for. ------------------------------- - B) Notes about scripts ------------------------------- +---------------------- +B) Notes about scripts +---------------------- 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// and the source code and build reports in TDE_SRC/2_build/debs//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 -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) - + - _build_config_template.sh 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. @@ -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 ------------------------------- -1) Follow the steps in section "A) Environment preparation" (only required the first time) +------------------------- +C) How to use the scripts +------------------------- +1) Follow the steps in section "A) Environment preparation" (only required the first time). 2) cd "TDE_SRC/buildscripts" -3) ./update_git_repository.sh -> update git repository, wait until "Update completed" is printed out. - Check log in TDE_SRC/0_logs/ if you wish -4) Run "pbuilder update" at the beginning of the day to update the base package to the latest version. This will speed up +3) Update to latest git repository using + ./update_git_repository.sh + 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. -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: 4.1) build a single module -* ./build_module.sh -g "tdelibs" -> build "tdelibs" from git sources in a clean chroot environment -* ./build_module.sh -g -l -sl "applications/amarok" -> build "amarok" locally from git sources and - display building logs during building -* ./build_module.sh -sh -lr "tdebase" -> build "tdebase" from the local sources (in TDE_SRC/2_build/build/tdebase) - in a clean chroot environment and launch a shell in case of building failure. - Append the build result (OK, FAILED) to TDE_SRC/scripts/logs/build_result.log -* ./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"' + - [sudo] ./build_module.sh -g -sl "dependencies/libr" -> build libr package. This is a good test to check + whether everything is working fine + - [sudo] ./build_module.sh -g "tdelibs" -> build "tdelibs" from git sources in a clean chroot environment + - [sudo] ./build_module.sh -g -l -sl "applications/amarok" -> build "amarok" locally from git sources and + display building logs during building + - [sudo] ./build_module.sh -sh -lr "tdebase" -> build "tdebase" from the local sources (in TDE_SRC/2_build/build/tdebase) + in a clean chroot environment and launch a shell in case of building failure. + Append the build result (OK, FAILED) to TDE_SRC/scripts/logs/build_result.log + - [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 (optional) delete the TDE_SRC/0_logs/build_result.log file - ./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] ./01_base_01.sh : build this 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 - ./build_TDE.sh : build all TDE - ./build_TDE.sh -s 4 : build all TDE, but skip the first 4 sets + [sudo] ./build_TDE.sh : build all TDE + [sudo] ./build_TDE.sh -s 4 : build all TDE, but skip the first 4 sets diff --git a/debian/_buildscripts/local/scripts/additional files/root/.pbuilder/hooks/__template_C10shell b/debian/_buildscripts/local/scripts/additional files/root/.pbuilder/hooks/__template_C10shell new file mode 100755 index 000000000..3e2f1c865 --- /dev/null +++ b/debian/_buildscripts/local/scripts/additional files/root/.pbuilder/hooks/__template_C10shell @@ -0,0 +1,7 @@ +#!/bin/sh +# invoke shell if build fails. + +apt-get install -y --force-yes vim less bash mc +cd /tmp/buildd/*/debian/.. +echo "Build FAILED! Invoking shell" +/bin/bash < /dev/tty > /dev/tty 2> /dev/tty diff --git a/debian/_buildscripts/local/scripts/additional files/root/.pbuilderrc b/debian/_buildscripts/local/scripts/additional files/root/.pbuilderrc new file mode 100644 index 000000000..d6662085c --- /dev/null +++ b/debian/_buildscripts/local/scripts/additional files/root/.pbuilderrc @@ -0,0 +1,152 @@ +#!/bin/bash + +#-- this is necessary for running 'apt-ftparchive' in a hook script if required +EXTRAPACKAGES="$EXTRAPACKAGES apt-utils" + +#-- get desired distribution and architecture +if [ "$DIST" = "" ]; then + DIST=$(lsb_release -cs) +fi +DISTRIBUTION=$DIST +if [ "$ARCH" = "" ]; then + ARCH=$(dpkg --print-architecture) +fi +ARCHITECTURE=$ARCH + +if [ -n "$T" ]; then + if [ "${T##*-}" = "vm" ]; then + BUILD_VM="qemu" + T=${T%-vm} + fi + if [ "${T#*@}" = "$T" ]; then + DISTRIBUTION=${T%-*} + ARCHITECTURE=${T##*-} + else + DISTRIBUTION=${T%@*} + ARCHITECTURE=${T##*@} + fi + if [ "${DISTRIBUTION##*-}" = "backports" ]; then + BACKPORTS="yes" + DISTRIBUTION=${DISTRIBUTION%-backports} + fi +fi + +BASETGZ="/var/cache/pbuilder/base-$DIST@$ARCH.tgz" + +#-- select apt components +case "$DISTRIBUTION" in + sid|buster|stretch|jessie|wheezy|squeeze|lenny|etch|sarge) + COMPONENTS="main contrib non-free" + ;; + + ceres|beowulf|ascii) + COMPONENTS="main" + DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) + EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring" + ;; + + bionic|artful|zesty|yakkety|xenial|wily|vivid|utopic|trusty|saucy|raring|quantal|precise|oneiric|natty|maverick|lucid) + COMPONENTS="main restricted universe multiverse" + DEBOOTSTRAPOPTS=(--variant=buildd) + ;; + + raspbian-jessie|raspbian-wheezy) + COMPONENTS="main contrib non-free" + DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) + ;; +esac +EXTRAPACKAGES="$EXTRAPACKAGES fakeroot apt-transport-https ca-certificates" + +#-- select base apt sources +case "$DISTRIBUTION" in + sid|buster|stretch|jessie|wheezy) + MIRRORSITE=http://deb.debian.org/debian + ;; + + squeeze|lenny|etch|sarge) + MIRRORSITE=http://archive.debian.org/debian + OTHERMIRROR="#deb http://archive.debian.org/backports.org $DISTRIBUTION-backports main contrib non-free" + ;; + + ceres|beowulf|ascii) + MIRRORSITE=http://auto.mirror.devuan.org/merged + ;; + + bionic|artful|zesty|yakkety|wily|vivid|trusty|precise) + if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then + MIRRORSITE=http://archive.ubuntu.com/ubuntu + else + MIRRORSITE=http://ports.ubuntu.com + fi + ;; + + xenial) + if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then + MIRRORSITE=http://archive.ubuntu.com/ubuntu + else + MIRRORSITE=http://ports.ubuntu.com + fi + OTHERMIRROR="deb $MIRRORSITE $DISTRIBUTION-updates $COMPONENTS" + ;; + + utopic|saucy|raring|quantal|oneiric|natty|maverick|lucid) + MIRRORSITE=http://old-releases.ubuntu.com/ubuntu + ;; + + raspbian-jessie|raspbian-wheezy) + MIRRORSITE=http://ftp.fi.muni.cz/pub/linux/raspbian/raspbian + ;; +esac + +if [ -n "${ARCH}" ]; then + NAME="$NAME-$ARCH" + DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}") +fi + +BUILDRESULT="/var/cache/pbuilder/$DISTRIBUTION/result/" + +APTCACHE="/var/cache/pbuilder/aptcache/$DISTRIBUTION/" +if [ -n "$APTCACHE" ] && [ ! -d "$APTCACHE" ]; then + mkdir $APTCACHE +fi +if [ -z "$(stat -L --print "%d\n" $APTCACHE/. /var/cache/pbuilder/build/. | uniq -d)" ]; then + # apt cache for build on tmpfs is managed by hook scripts + BINDMOUNTS="${BINDMOUNTS} ${APTCACHE}" + APTCACHEHARDLINK=no + APTCACHE="" +fi + +BUILDPLACE="/var/cache/pbuilder/build/" + +# default PKGNAME_LOGFILE +PKGNAME_LOGFILE="__build__.log" + +#-- extra options +DEBBUILDOPTS="-B" +if [ "$ARCHITECTURE" == "amd64" ]; then + DEBBUILDOPTS="-b" +fi +if [ "${DISTRIBUTION#raspbian}" != "$DISTRIBUTION" ] && [ "$ARCHITECTURE" == "armhf" ]; then + DEBBUILDOPTS="-b" + DISTRIBUTION=${DISTRIBUTION#raspbian-} +fi +if [ -z "$DEB_SIGN_KEYID" ]; then + AUTO_DEBSIGN=${AUTO_DEBSIGN:-no} +fi + +#-- choose dependency solver +#-- apt is better if target distribution contains apt >= 1.4~beta3 +#-- aptitude is better if target distribution contains apt < 1.4~beta3 +case "$DISTRIBUTION" in + sid|buster|stretch|\ + ceres|beowulf|ascii|\ + bionic|artful|zesty) + PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-apt" + ;; + + jessie|wheezy|squeeze|lenny|etch|sarge|\ + raspbian-jessie|raspbian-wheezy|\ + yakkety|xenial|wily|vivid|utopic|trusty|saucy|raring|quantal|precise|oneiric|natty|maverick|lucid) + PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude" + ;; +esac diff --git a/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilder/hooks/__template_C10shell b/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilder/hooks/__template_C10shell deleted file mode 100755 index 3e2f1c865..000000000 --- a/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilder/hooks/__template_C10shell +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# invoke shell if build fails. - -apt-get install -y --force-yes vim less bash mc -cd /tmp/buildd/*/debian/.. -echo "Build FAILED! Invoking shell" -/bin/bash < /dev/tty > /dev/tty 2> /dev/tty diff --git a/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilderrc b/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilderrc deleted file mode 100644 index d6662085c..000000000 --- a/debian/_buildscripts/local/scripts/additional files/user_home_folder/.pbuilderrc +++ /dev/null @@ -1,152 +0,0 @@ -#!/bin/bash - -#-- this is necessary for running 'apt-ftparchive' in a hook script if required -EXTRAPACKAGES="$EXTRAPACKAGES apt-utils" - -#-- get desired distribution and architecture -if [ "$DIST" = "" ]; then - DIST=$(lsb_release -cs) -fi -DISTRIBUTION=$DIST -if [ "$ARCH" = "" ]; then - ARCH=$(dpkg --print-architecture) -fi -ARCHITECTURE=$ARCH - -if [ -n "$T" ]; then - if [ "${T##*-}" = "vm" ]; then - BUILD_VM="qemu" - T=${T%-vm} - fi - if [ "${T#*@}" = "$T" ]; then - DISTRIBUTION=${T%-*} - ARCHITECTURE=${T##*-} - else - DISTRIBUTION=${T%@*} - ARCHITECTURE=${T##*@} - fi - if [ "${DISTRIBUTION##*-}" = "backports" ]; then - BACKPORTS="yes" - DISTRIBUTION=${DISTRIBUTION%-backports} - fi -fi - -BASETGZ="/var/cache/pbuilder/base-$DIST@$ARCH.tgz" - -#-- select apt components -case "$DISTRIBUTION" in - sid|buster|stretch|jessie|wheezy|squeeze|lenny|etch|sarge) - COMPONENTS="main contrib non-free" - ;; - - ceres|beowulf|ascii) - COMPONENTS="main" - DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) - EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring" - ;; - - bionic|artful|zesty|yakkety|xenial|wily|vivid|utopic|trusty|saucy|raring|quantal|precise|oneiric|natty|maverick|lucid) - COMPONENTS="main restricted universe multiverse" - DEBOOTSTRAPOPTS=(--variant=buildd) - ;; - - raspbian-jessie|raspbian-wheezy) - COMPONENTS="main contrib non-free" - DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) - ;; -esac -EXTRAPACKAGES="$EXTRAPACKAGES fakeroot apt-transport-https ca-certificates" - -#-- select base apt sources -case "$DISTRIBUTION" in - sid|buster|stretch|jessie|wheezy) - MIRRORSITE=http://deb.debian.org/debian - ;; - - squeeze|lenny|etch|sarge) - MIRRORSITE=http://archive.debian.org/debian - OTHERMIRROR="#deb http://archive.debian.org/backports.org $DISTRIBUTION-backports main contrib non-free" - ;; - - ceres|beowulf|ascii) - MIRRORSITE=http://auto.mirror.devuan.org/merged - ;; - - bionic|artful|zesty|yakkety|wily|vivid|trusty|precise) - if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then - MIRRORSITE=http://archive.ubuntu.com/ubuntu - else - MIRRORSITE=http://ports.ubuntu.com - fi - ;; - - xenial) - if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then - MIRRORSITE=http://archive.ubuntu.com/ubuntu - else - MIRRORSITE=http://ports.ubuntu.com - fi - OTHERMIRROR="deb $MIRRORSITE $DISTRIBUTION-updates $COMPONENTS" - ;; - - utopic|saucy|raring|quantal|oneiric|natty|maverick|lucid) - MIRRORSITE=http://old-releases.ubuntu.com/ubuntu - ;; - - raspbian-jessie|raspbian-wheezy) - MIRRORSITE=http://ftp.fi.muni.cz/pub/linux/raspbian/raspbian - ;; -esac - -if [ -n "${ARCH}" ]; then - NAME="$NAME-$ARCH" - DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}") -fi - -BUILDRESULT="/var/cache/pbuilder/$DISTRIBUTION/result/" - -APTCACHE="/var/cache/pbuilder/aptcache/$DISTRIBUTION/" -if [ -n "$APTCACHE" ] && [ ! -d "$APTCACHE" ]; then - mkdir $APTCACHE -fi -if [ -z "$(stat -L --print "%d\n" $APTCACHE/. /var/cache/pbuilder/build/. | uniq -d)" ]; then - # apt cache for build on tmpfs is managed by hook scripts - BINDMOUNTS="${BINDMOUNTS} ${APTCACHE}" - APTCACHEHARDLINK=no - APTCACHE="" -fi - -BUILDPLACE="/var/cache/pbuilder/build/" - -# default PKGNAME_LOGFILE -PKGNAME_LOGFILE="__build__.log" - -#-- extra options -DEBBUILDOPTS="-B" -if [ "$ARCHITECTURE" == "amd64" ]; then - DEBBUILDOPTS="-b" -fi -if [ "${DISTRIBUTION#raspbian}" != "$DISTRIBUTION" ] && [ "$ARCHITECTURE" == "armhf" ]; then - DEBBUILDOPTS="-b" - DISTRIBUTION=${DISTRIBUTION#raspbian-} -fi -if [ -z "$DEB_SIGN_KEYID" ]; then - AUTO_DEBSIGN=${AUTO_DEBSIGN:-no} -fi - -#-- choose dependency solver -#-- apt is better if target distribution contains apt >= 1.4~beta3 -#-- aptitude is better if target distribution contains apt < 1.4~beta3 -case "$DISTRIBUTION" in - sid|buster|stretch|\ - ceres|beowulf|ascii|\ - bionic|artful|zesty) - PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-apt" - ;; - - jessie|wheezy|squeeze|lenny|etch|sarge|\ - raspbian-jessie|raspbian-wheezy|\ - yakkety|xenial|wily|vivid|utopic|trusty|saucy|raring|quantal|precise|oneiric|natty|maverick|lucid) - PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude" - ;; -esac -- cgit v1.2.1