From e78c440585b6cd1c00dad7e5bf3be35b1eb2c7eb Mon Sep 17 00:00:00 2001 From: Stanislav Sinyagin Date: Sat, 22 Aug 2015 20:22:06 -0400 Subject: [PATCH] FS-8019 debian/util.sh ignored -T option Fixed the handling of -T and -t, and added debian/apt_sources.list that needs to build 1.7 master. The following commands need to be used to build Jessie packages: apt-get update && apt-get install -y git curl mkdir -p /usr/src/freeswitch cd /usr/src/freeswitch/ git clone https://stash.freeswitch.org/scm/fs/freeswitch.git /usr/src/freeswitch/src curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add - cd /usr/src/freeswitch/src ./debian/util.sh build-all -i -z1 -aamd64 -cjessie -T /usr/src/freeswitch/src/debian/apt_sources.list --- debian/apt_sources.list | 2 ++ debian/util.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 debian/apt_sources.list diff --git a/debian/apt_sources.list b/debian/apt_sources.list new file mode 100644 index 0000000000..857524c9c5 --- /dev/null +++ b/debian/apt_sources.list @@ -0,0 +1,2 @@ +deb http://httpredir.debian.org/debian jessie main +deb http://files.freeswitch.org/repo/deb/debian/ jessie main diff --git a/debian/util.sh b/debian/util.sh index efeb071a3b..0200409300 100755 --- a/debian/util.sh +++ b/debian/util.sh @@ -276,7 +276,7 @@ build_debs () { set -e local OPTIND OPTARG debug_hook=false hookdir="" cow_build_opts="" local keep_pbuilder_config=false keyring="" custom_keyring="" - local use_system_sources=false + local use_custom_sources=false while getopts 'BbdK:kT:t' o "$@"; do case "$o" in B) cow_build_opts="--debbuildopts '-B'";; @@ -284,7 +284,7 @@ build_debs () { d) debug_hook=true;; k) keep_pbuilder_config=true;; K) custom_keyring="$OPTARG";; - t) use_system_sources=true; custom_sources_file="/etc/apt/sources.list";; + t) use_custom_sources=true; custom_sources_file="/etc/apt/sources.list";; T) use_custom_sources=true; custom_sources_file="$OPTARG";; esac done @@ -308,7 +308,7 @@ build_debs () { apt-key exportall > "$keyring" fi cow () { - if ! $use_system_sources; then + if ! $use_custom_sources; then cowbuilder "$@" \ --distribution $distro \ --architecture $arch \