Questions tagged [debhelper]

Suite of programs intended to simplify and improve the process of creating .deb packages

Debian "rules" files control how a .deb package is built and arranged, including how maintainer scripts like the postinst and prerm are created and installed.

At the lowest level, rules files are just Makefiles. With the number of tasks that need to be accomplished to make, build, and maintain a safe, clean, policy-abiding package, bare Makefile rules files can become very large and cumbersome. The debhelper suite of tools makes these tasks remarkably simpler and less error-prone.

Over 95% of the over-17000 packages in the Debian archive use Debhelper in some form.

See http://joeyh.name/code/debhelper/

44 questions
99
votes
5 answers

Is there a standard way to create Debian packages for distributing Python programs?

There is a ton of information on how to do this, but since "there is more than one way to skin a cat", and all the tutorials/manuals that cover a bit of the process seem to make certain assumptions which are different from other tutorials, I still…
mac
  • 42,153
  • 26
  • 121
  • 131
22
votes
2 answers

dpkg: How to use trigger?

I wrote a little CDN server that rebuilds its registry pool when new pool-content-packages are installed into that registry pool. Instead of having each pool-content-package call the init.d of the cdn-server, I'd like to use triggers. That way it…
TLindig
  • 48,010
  • 3
  • 28
  • 31
21
votes
1 answer

debian rules file make a symlink

I'm creating a small deb package to install a few files. Some of them will be located in /usr/lib/mypackage/ and I want to create a symlink from /usr/lib/mypackage/mybin to /usr/bin/mybin For the /usr/lib/mypackage folder I'm using mypackage.install…
Loic Duros
  • 5,472
  • 10
  • 43
  • 56
8
votes
0 answers

How to create a self-starting C++ systemd service with CPackDeb?

I'm new to Debian packaging and I believe this is a fairly basic question, but I am embarrassed to say I've struck out on Google. I have a C++ project which builds with CMake and packages a debian with CPack. This project has a service component…
Sean Kelly
  • 338
  • 1
  • 10
7
votes
2 answers

Having trouble building python deb package , complain about modified binary

I have built my packages before using debhelper, but I'm running into a very frustrating problem. This is my file tree: usr/ `-- share |-- applications | `-- create-launcher.desktop `-- create-launcher |-- bin | |--…
narnie
  • 1,742
  • 1
  • 18
  • 34
7
votes
5 answers

package.init is not getting installed

I have a project.init file in the debian directory (along with rules, control, etc), and I have dh_installinit in my rules file (in the binary-arch rule). When dpkg-buildpackage completes, the init script has been copied to…
Tony Meyer
  • 10,079
  • 6
  • 41
  • 47
7
votes
2 answers

easy, straightforward way to package a python program for debian?

i'm having trouble navigating the maze of distribution tools for python and debian; cdbs, debhelper, python-support, python-central, blah blah blah .. my application is a fairly straightforward one - a single python package (directory containing…
Jeremiah Rose
  • 3,865
  • 4
  • 27
  • 31
6
votes
1 answer

Debian packaging: deploying files to the user home directory

I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and…
nicoulaj
  • 3,463
  • 4
  • 27
  • 32
5
votes
4 answers

Prevent creation of conffiles

I'm trying to build a package which has some files under /etc that are not configuration. They are included in the conffiles automatically even if I create an empty package.conffiles in the debian directory. How can I stop dh_installdeb from doing…
viraptor
  • 33,322
  • 10
  • 107
  • 191
5
votes
2 answers

Overriding or disabling ${python:Depends} at stdeb bdist_deb invocation

I am trying to package my Python software with stdeb: python setup.py --command-packages=stdeb.command bdist_deb which works fine. Unfortunately, stdeb adds the variable ${python:Depends} to the debian/control file. This placeholder is…
w177us
  • 332
  • 5
  • 13
4
votes
1 answer

Default sequence of debhelper

I am trying to get a better understanding of debhelper's dh tool. As I understand it, dh is a frontend for various dh_* helper tools. These helper tools can both be called standalone or automatically from the dh tool. Usually a debian/rules file is…
lanoxx
  • 12,249
  • 13
  • 87
  • 142
4
votes
1 answer

debian packaging: what's the difference between dh build and dh binary

I encountered an issue when building debian package. As for the document of the rules file: https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#rules debian/rules build runs dh build; which in turn runs the…
chenzhiwei
  • 441
  • 6
  • 14
4
votes
2 answers

debhelper: add `prefix=/usr' to all implicit make invocations

I have a Makefile that starts with prefix = /opt/$(PACKAGE) and expects make prefix=/usr in case someone wants a non-/opt installation. There's no ./configure (and no need for one really). The package is trivially debianizable via %: …
dan3
  • 2,528
  • 22
  • 20
3
votes
2 answers

debian dh-exec install creates extra directory

I'm building a debian package that installs several config files to different places with other names. For that I wanted to use dh-exec install-rename capabilities. In the control file I declared dh-exec as Build-Dependency: Build-Depends: debhelper…
Javier
  • 161
  • 8
3
votes
1 answer

debhelper instructed to use python3, but runs setup.py with python2

I am struggling with dh to create package for python 3 (and not for python 2). I use setup.py which, when called with python3, builds for python 3. I have a separate debian directory for py3k, so I want to build just for that version. debian/rules…
eudoxos
  • 18,545
  • 10
  • 61
  • 110
1
2 3