Re: Creating a deb package from source
- Date: Thu, 8 Jun 2017 15:15:53 +0200
- From: <tomas@xxxxxxxxxx>
- Subject: Re: Creating a deb package from source
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, Jun 08, 2017 at 11:00:35PM +1000, Comprofix Lists wrote:
> Hi Guys,
> I have been googling but not having much luck :(
> I am looking from some advice on how to create a deb package from
> source. All the guides and wiki articles I have found have been missing
> information, some mention using dh_make, others mention pbuilder, some
> mention using a chroot. But what if I want to do an X11 app? Should I
> use a VM for this? I don't want to screw with my daily driver too much.
You could do worse than starting here:
This is what, basically, something like pbuilder does. it sets up a
"clean" environment, so that the result of the build is as independent
as possible from your environment. This shouldn't be much different
from an X11 app (unless you're packaging an X11 server which goes into
a fight over hardware resources with your currently running one :)
Start small, remember that there are lots of different tools for
special cases of packaging.
If you are more of a hands-on type, download an existing package
source (akin to what you are trying to achieve) with, for example
apt-get source <packagename>
This will download the package's sources and unpack them. Then
cd into the package directory and issue "dpkg-buildpackage -uc -us"
and watch the .deb being built.
Then go figure out what -uc and -us mean above; make small changes
to the source and see what happens. Then go to the docs above and
read things. Or in whatever order it suits you.
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----