Building a Debian package for Ubuntu
Marius Gedminas
marius at pov.lt
Tue Oct 23 10:16:49 UTC 2007
On Mon, Oct 22, 2007 at 04:07:51PM -0700, Bill Moseley wrote:
> Can anyone point me (or explain) the details required to build a
> Debian package for use on Gutsy?
>
> I want to fetch a Debian Sid source package, apply all the Debian patches,
> and build it on Gutsy. I don't have to create a .deb (I can just
> "make install") but I do want to apply the patches.
That's easy.
1. Install build-essential, fakeroot, dpkg-dev.
2. Fetch the package, unpack it with dpkg-source -x packagename.dsc.
3. Install all the build dependencies (listed in the debian/control file).
4. Run dpkg-buildpackage -rfakeroot -uc -us inside the unpacked package
directory.
If you add sid's source repository into your apt sources.list, you can
do steps 2-4 with two commands:
sudo apt-get build-dep packagename
sudo apt-get source -b packagename
Good luck.
Marius Gedminas
--
Cheap, Fast, Good -- pick two.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071023/843e17cb/attachment.sig>
More information about the ubuntu-users
mailing list