Building Debian packages for FS and 3rd-party libs
Hi folks, I'm currently working on the system integration part of the GemeinschaftPBX version 5.0 (see github.com/jpawlowski/GBE). As compilation of FreeSWITCH and all dependent 3rd party libraries takes major time I would like to start using Debian packages which I can prepare once and reuse during the build phase of the appliance ISO. I understand your own Debian repository is not ready yet (or at least it's not public) so I wanted to implement a job on our build system (running Jenkins CI) to have a continuous build of FS packages based on changes in the FS Git. I started by reading documents in /freeswitch/debian/, especially README.source but as I am new to create Debian packages I can't work around this error when I try those command mentioned in the readme: --------- freeswitch_1.2~rc3~n20120628T140917Z.orig.tar.xz does not exist, creating from 'master' Building upstream tarball with compression 'xz -1v' 100 % 29.1 MiB / 143.4 MiB = 0.203 15 MiB/s 0:09 git-pbuilder ['-b', '-us', '-uc'] [] Building for distribution squeeze Base directory /var/cache/pbuilder/base-squeeze.cow does not exist git-pbuilder returned 1 Couldn't run 'git-pbuilder -b -us -uc' --------- I wasn't able to find anything useful regarding missing base-squeeze.cow file for pbuilder and would appreciate any assistance here. In addition, as I plan to have a full set of available modules for FS in our appliance distribution: Are there already Debian packages available for the needed 3rd-party modules like all the stuff for mod_freetdm (especially Sangoma parts)? Just wanted to ask before I reinvent the wheel ;-) Cheers, Julian
I'm sorry. As it is always - as soon as you have asked somebody else you will surely find an answer yourself a few minutes later... I got the Debian package build working. For those who are interested, this is a slightly adjusted version of the build example script from README.source: ------ #!/bin/bash -ex # # settings # distro=squeeze # Install basic Debian maintainer packages apt-get -y --force-yes install -qq build-essential git-buildpackage udev autoconf automake autotools-dev debhelper dh-make devscripts fakeroot file gfortran git gnupg gpc lintian patch patchutils pbuilder perl python python xutils-dev # Install FreeSWITCH specific build packages apt-get -y --force-yes install -qq debhelper automake autoconf libtool dpkg-dev gcc g++ libc6-dev make wget pkg-config libssl-dev unixodbc-dev libncurses5-dev libjpeg62-dev python-dev erlang-dev doxygen uuid-dev libexpat1-dev libgdbm-dev libdb-dev bison zlib1g-dev ladspa-sdk libogg-dev libasound2-dev libx11-dev libpq-dev libsnmp-dev default-jdk gcj-jdk libperl-dev libyaml-dev [ ! -d /var/cache/pbuilder/base-${distro}.cow ] && DIST=${distro} git-pbuilder create [ ! -L /dev/fd ] && ln -s /proc/self/fd /dev/fd [ ! -d ./freeswitch ] && git clone git://git.freeswitch.org/freeswitch freeswitch cd freeswitch ver="$(cat build/next-release.txt | sed -e 's/-/~/g')~n$(date +%Y%m%dT%H%M%SZ)-1~${distro}+1" git clean -fdx && git reset --hard HEAD ./build/set-fs-version.sh "$ver" git add configure.in && git commit -m "bump to custom v$ver" (cd debian && ./bootstrap.sh -c $distro) dch -b -m -v "$ver" --force-distribution -D "$suite" "Custom build." git-buildpackage -b -us -uc \ --git-verbose \ --git-pbuilder --git-dist=$distro \ --git-compression-level=1v --git-compression=xz git reset --hard HEAD^ cd - ---------- Regards, Julian On Thu, Jun 28, 2012 at 2:21 PM, Julian Pawlowski <julian.pawlowski@gmail.com> wrote:
Hi folks,
I'm currently working on the system integration part of the GemeinschaftPBX version 5.0 (see github.com/jpawlowski/GBE). As compilation of FreeSWITCH and all dependent 3rd party libraries takes major time I would like to start using Debian packages which I can prepare once and reuse during the build phase of the appliance ISO.
I understand your own Debian repository is not ready yet (or at least it's not public) so I wanted to implement a job on our build system (running Jenkins CI) to have a continuous build of FS packages based on changes in the FS Git. I started by reading documents in /freeswitch/debian/, especially README.source but as I am new to create Debian packages I can't work around this error when I try those command mentioned in the readme:
--------- freeswitch_1.2~rc3~n20120628T140917Z.orig.tar.xz does not exist, creating from 'master' Building upstream tarball with compression 'xz -1v' 100 % 29.1 MiB / 143.4 MiB = 0.203 15 MiB/s 0:09 git-pbuilder ['-b', '-us', '-uc'] [] Building for distribution squeeze Base directory /var/cache/pbuilder/base-squeeze.cow does not exist git-pbuilder returned 1 Couldn't run 'git-pbuilder -b -us -uc' ---------
I wasn't able to find anything useful regarding missing base-squeeze.cow file for pbuilder and would appreciate any assistance here.
In addition, as I plan to have a full set of available modules for FS in our appliance distribution: Are there already Debian packages available for the needed 3rd-party modules like all the stuff for mod_freetdm (especially Sangoma parts)? Just wanted to ask before I reinvent the wheel ;-)
Cheers, Julian
participants (1)
-
Julian Pawlowski