Differences between revisions 8 and 9
Revision 8 as of 2015-03-29 10:40:43
Size: 3271
Comment:
Revision 9 as of 2015-03-29 10:44:32
Size: 3127
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
If a package is availaible on Ubuntu's but not in debian, you can easily create a Debian version of if.
Most of the times installing a package directly from the PPA will work in Debian, but if you care about having less conflicts with apt, it is better to rebuild the package and it's easy !
If a package is availaible in a Ubuntu PPA but not in Debian, you can easily create a Debian version of if.
Line 4: Line 3:

Here we're going to build a Debian Package of the Pogo music player.
Here we're going to build a Debian package of the Pogo music player.
Line 10: Line 8:
The package might not be availaible in your version from Debian, but maybe it is available in testing / experimental. The package might not be availaible in your version from Debian, but maybe it is available in testing/unstable
Line 12: Line 10:
If {{{rmadison vagrant}}} returns something like: If you're interested by a package called {{{vagrant}}} and {{{rmadison vagrant}}} returns something like:
Line 28: Line 26:
Line 58: Line 55:
Line 75: Line 71:

If a package is availaible in a Ubuntu PPA but not in Debian, you can easily create a Debian version of if.

Here we're going to build a Debian package of the Pogo music player.

Checking that the package is absent from debian

The package might not be availaible in your version from Debian, but maybe it is available in testing/unstable You can check that with the command rmadison. If you're interested by a package called vagrant and rmadison vagrant returns something like:

vagrant | 1.6.5+dfsg1-2 | sid          | source, all

it means you should rather do a SimpleBackportCreation of the vagrant package.

Install the Debian SDK

apt-get install devscripts build-essential

Add the PPA source url to your sources.list

The pogo tea,s maintains two ppa's, one which is considered stable, which we are going to use https://launchpad.net/~pogo-dev/+archive/ubuntu/daily at and one "dev" here https://launchpad.net/~pogo-dev/+archive/ubuntu/daily

Step 1: On the page of the PPA, look for the heading that reads "Adding this PPA to your system" and click the "Technical details about this PPA link".

Step 2: Use the Display sources.list entries drop-down box, and select here the latest version of Ubuntu

Step 3: You'll see that the text-box directly below reads something like this:

deb http://ppa.launchpad.net/pogo-dev/stable/ubuntu utopic main 

We are interested in the line start with with **deb-src**. which is the source repository of the package.

Step 4: Now we can add this line in your list of repos As root:

echo "deb-src http://ppa.launchpad.net/pogo-dev/stable/ubuntu utopic main" > /etc/apt/sources.list.d/pogo.list 

Step 5: To use this repository safely we also have to add the repository signing key, localted on the same page. Here it reads:

Signing key:
1024R/0D4D9B55 (What is this?) 

The 0D4D9B55 part in the middle, is the key ID, that we will use to add this key to our list of trusted apted sources. As root:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0D4D9B55

Install the package source and buildbuild the package

All of this is possible with the magical command. As normal user:

apt-get source --build pogo

Note: For this to work you need to uncomment the lines starting with *deb-src* in /etc/apt/sources.list, or you will get the error "E: You must put some 'source' URIs in your sources.list".

Install the resulting stuff

You habe a package in the directory called something like pogo_0.8.3-0~579~ubuntu14.10.1_all.deb You can install it with

dpkg -i pogo_0.8.3-0~579~ubuntu14.10.1_all.deb

Going further

If you find that the program you used would be of interest to other debian users, check it if an "ITP:IntentToPackage" or a "RFP:RequestForPackage" bug report has been used. If no one has done this before, create a new bug report. For instance this the RFP for Pogo: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666008