build-essential perl flex bison python3 autoconf automake dh-autoreconf autotools-dev debhelper dh-make dh-systemd devscripts fakeroot check libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev file git lintian patch patchutils pbuilder vimOnce booted I was then ready to build bluez 5.37, first step was to clone the bluez git repository:
git clone git://git.kernel.org/pub/scm/bluetooth/bluez.gitChange into the bluez folder:
cd bluezWe want to get the 5.37 release so we checkout as follows:
git checkout tags/5.37Then get the debian folder from the previous version of bluez, this is what is used to build bluez and is placed in the bluez folder created by the git clone.
Thus, get the compressed tar file:
wget http://http.debian.net/debian/pool/main/b/bluez/bluez_5.36-1.debian.tar.xzand then uncompress and place in the bluez folder
tar xJvf bluez_5.36-1.debian.tar.xz -C ./now use your favorite editor (like vim) to modify the changelog to a new version.
vim ./debian/changelogIt is important that you match the previous entries and there is no leading spaces. Something like this will suffice:
bluez (5.37-1) unstable; urgency=medium * Update to 5.37. -- Name Sat, 07 Jan 2016 11:47:02 +0900I also had to modify the rules file to avoid a dpkg-shlibdeps error. To do this just modify the rules file.
vim ./debian/rulesBy adding the following in the %: section as follows (where the dh $@ --with systemd,autoreconf already exists) :
%: dh $@ --with systemd,autoreconf override_dh_shlibdeps: dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-infoNote, you want a tab not a space before dh_shlibdeps.
Now just run buildpackage command and wait forever.
dpkg-buildpackage -j4 -b -uc -usThe end result will be the creation of a bunch of debian bluez packages in the directory above bluez:
bluetooth_5.37-1_all.deb bluez-cups_5.37-1_armhf.deb bluez-dbg_5.37-1_armhf.deb bluez-hcidump_5.37-1_armhf.deb bluez-obexd_5.37-1_armhf.deb bluez-test-scripts_5.37-1_all.deb bluez_5.37-1_armhf.deb libbluetooth-dev_5.37-1_armhf.deb libbluetooth3-dbg_5.37-1_armhf.deb libbluetooth3_5.37-1_armhf.deb