View Full Version : How do I copy a package from the official repositories to a PPA?

July 14th, 2010, 05:00 AM
I'm trying to build a PPA with the old gtk1.2 applications and themes in it.
So far, I've added https://launchpad.net/~adamkoczur/+archive/gtk1.2 to my own system, added "deb-src ..." lines to sources.list, and then used apt-get source --compile to build what I wanted.
This has worked so well that I think most gtk1.2 stuff would easily build if the old source packages were copied into a PPA.

I would like to copy source packages over from the Universe repository (Dapper, Hardy, Jaunty) so that they will build for Lucid.
I have read https://help.launchpad.net/Packaging/PPA/Copying , and it is exactly what I want to do. However, I cannot find a similar method for copying packages from the official repositories.

I tried a few searches and reading through the forums, but have found no information.


July 14th, 2010, 09:56 AM
Download the source package with apt-get source and upload it to the PPA as usual?

July 14th, 2010, 09:58 AM
Sorry, I cannot help you.
Wish you solve the problem as soon as quickly.

July 14th, 2010, 04:10 PM
Sorry, I cannot help you.
Wish you solve the problem as soon as quickly.

(Thinking on one of Grice's Conversational Maxims (http://en.wikipedia.org/wiki/Conversational_maxims#Maxim_of_Quantity)...)

I just can't think of any complexity on what Bachstelze said... which is kinda the obvious thing to do, isn't it?

July 17th, 2010, 07:53 PM
Well, thanks everyone.
I have not uploaded to a PPA before, so I wasn't quite sure how to do it.

Now XMMS has uploaded, and I'll see about some other things:
and a few more packages.

Here's my PPA: https://launchpad.net/~ibid-ag/+archive/oldgtk1 (https://launchpad.net/%7Eibid-ag/+archive/oldgtk1)

Overview of my method:

#export PVT_KEY (your gpg key), $PACKAGE, & $PPA first

sudo vi /etc/apt/sources.list
#Add old repositories, deb-src only
sudo apt-get update
mkdir src
cd src
sudo apt-get build-dep $PACKAGE
apt-get source $PACKAGE #DO NOT COMPILE!
debuild -S -s? -k$PVT_KEY #s? is sa|sd
cd ..
dput $PPA $PACKAGE*.source.changes


July 17th, 2010, 10:59 PM
OK, not quite working that way--packages get rejected.
What works:
dch +i --force-distribution lucid 'Bump for the PPA' #Whatever you want in the changelog; must change version
debuild -S -sa -k$PVT_KEY #For whatever reason, it seems to work better this way; may not be needed.