Skip to content

Instantly share code, notes, and snippets.

@gipi
Last active June 3, 2019 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gipi/1582962 to your computer and use it in GitHub Desktop.
Save gipi/1582962 to your computer and use it in GitHub Desktop.
#debian #package: notes about building packages.

The dependencies needed for build package from source are

# sudo apt-get install build-essential fakeroot devscripts dpatch dh-make expect

to build a package obviously you need the source and its dependencies

$ apt-get source blender
# apt-get build-dep blender

and finally you can build it

$ debuild -b -uc -us --no-pre-clean

If you want to install the dependencies before the build of the package you can do

$ mk-build-deps
$ apt install ./<package>_build-deps_<version>.deb

There are some utilities in Debian that can be used in order to deploy correctly a package; first of all, can be inspiring to look at some pre-existent packages in order to understand how some things work. A page with the git repositories of packages can be found here

http://packages.qa.debian.org/

searching for a package shows a page with a link to the repositories.

It is also possible to cross compile a package.

If during packaging an error like happens

dpkg: error processing easy-backup (--purge):
subprocess installed post-removal script returned error exit status 10

then delete /var/lib/dpkg/info/xyz.postrm.

In order to install a specific package version you can use a command like

$ apt-get install subversion-tools=1.3.2-5~bpo1

files

DCH

it's the tool used to increment the version number and edit the changelog file. Standard documentation about version system used in Debian.

UTILITIES

Patches

The patches are into patch/, one file for each patch, and a file named series with the list of all the patches to apply.

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment