datafreak wrote:
So I updated to these (using debian testing apt repositories, and also removed and purged them first):
Code: Select all
libtorrent-rasterbar7 (0.16.11-2)
python-libtorrent (0.16.11-2)
So I've been trying to get the newest libtorrent-rasterbar and python-libtorrent to my Debian Wheezy. But I could not get it to install the packages from testing without updating a lot of other packages I did not want to update.
After trying around a bit, here's how I got it to work:
First of all, stop any running deluge-processes. i.e.:
Then, remove and purge the old packages:
Code: Select all
apt-get remove libtorrent-rasterbar7 python-libtorrent
apt-get purge libtorrent-rasterbar7 python-libtorrent
Install all the dependencies for libtorrent-rasterbar:
Code: Select all
apt-get install debhelper dpkg-dev libboost-system-dev libboost-python-dev libssl-dev libgeoip-dev pkg-config python-all-dev python-all-dbg python-docutils python3-all-dev python3-all-dbg python3-docutils gdebi
Then, add:
Code: Select all
# jessie updates for non-backports
deb ftp://debian.inf.tu-dresden.de/debian/ jessie main non-free contrib
deb-src ftp://debian.inf.tu-dresden.de/debian/ jessie main non-free contrib
to /etc/apt/sources.list
Create file /etc/apt/preferences with the following content:
Code: Select all
Package: *
Pin: release o=Debian,a=wheezy
Pin-Priority: 900
Package: libtorrent-rasterbar7*
Pin: release o=Debian,a=jessie
Pin-Priority: 910
Package: python-libtorrent*
Pin: release o=Debian,n=jessie
Pin-Priority: 910
Package: *
Pin: release o=Debian
Pin-Priority: -1
Now, run:
Code: Select all
mkdir libtorrent-rasterbar7 & echo "This creates our working dir"
cd libtorrent-rasterbar7
apt-get update
apt-get source libtorrent-rasterbar7/jessie
apt-get build-dep & echo "This should not raise any missing dependencies!"
cd libtorrent-rasterbar-0.16.17
dpkg-buildpackage
this will build the libtorrent-rasterbar in the neweset version aswell as python-libtorrent.
When the process is finished - it might take some time - we first remove the preferences-file and rever the changes to sources.list.
To do so:
Code: Select all
mv /etc/apt/preferences /etc/apt/preferences.old
and comment out [#] the lines regarding jessie updates for non-backports.
Now, we install the freshly compiled libtorrent-rasterbar7:
Code: Select all
apt-get update
gdebi libtorrent-rasterbar7_0.16.17-1_amd64.deb
And python-libtorrent:
Code: Select all
gdebi python-libtorrent_0.16.17-1_amd64.deb
after that, you will have the newest version of libtorrent-rasterbar7 and python-libtorrent installed. Please note that amd64 might be something different if you are not using an x64-system. Also, the version number might differ at the time you are trying to build the files. In that case, replace the version numbers accordingly.
If you do not run the commands as root, you might need to add a sudo to each command.