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
1
vote
1 answer

How do wildcards get set when building eglibc?

I am attempting to build the eglibc-2.11.2 package from source. Stupidly or not, I'm trying to backport it to Debian Lenny, mainly so I can build other things that require it without having to upgrade my whole system past stable. (Whether this is…
Andrew
  • 14,325
  • 4
  • 43
  • 64
1
vote
1 answer

how can I create a debian package to distribute python modules without using distutils?

I'm getting myself thoroughly confused how to correctly package my python3 based application. My application uses a Makefile to install stuff to the correct file locations…
fossfreedom
  • 2,903
  • 2
  • 19
  • 40
1
vote
1 answer

Debian package creation with debhelper: change dependency version

I'm creating a Debian package using DebHelper, under the latest stable version of Debian. The "debian/control" file comprises these lines: Depends: ${shlibs:Depends}, ${misc:Depends} The dependencies are thus automatically set in the created…
Davy
  • 429
  • 2
  • 17
1
vote
1 answer

debhelper dh not rerunning when expected to

I was converting some of my packages to use dh from the debhelper package, when I noticed that it doesn't support rerunning targets. For example: I run debian/rules build to check a build. Make a small code change. Run debian/rules build again, and…
Aaron Wright
  • 328
  • 2
  • 11
1
vote
1 answer

Add own poststep to Debian package - postrm.debhelper

In my debian-folder of my debian package I want to add an post-step that removes a directory for example. I think the file *.postrm.debhelper is right for that. But this file will overwritten by several helperscripts (dh_installinit, dh_icons). How…
imizeropt
  • 176
  • 1
  • 13
1
vote
1 answer

debian/rules error while .deb packaging

i'm having some problems creating a .deb file with debuild before reading some tutorials i managed to make the file but i always get this error: make: *** No rule to make target «build». Stop. dpkg-buildpackage: failure: debian/rules build…
Hairo
  • 2,062
  • 5
  • 27
  • 33
0
votes
2 answers

remove .svn while building debian packages

While building a Debian package we use a debian/mypackagename.install file to tell debhelper packaging tool where to copy files and folder. The problem is that folders contain a .svn folder which is copied in to package tree and finally goes to…
amin
  • 621
  • 1
  • 8
  • 20
0
votes
0 answers

How to add additional options (not replace all options) for debhelper target?

I'd like to add an option to one of many debhelper targets (say "dh_strip_nondeterminism"). According to the dh man page (emphasis mine): To override dh_command, add a target named override_dh_command to the rules file. When it would normally run…
ndtrek07
  • 499
  • 1
  • 4
  • 8
0
votes
1 answer

Debian Packaging Without Build Tool

I want to create a Debian package from a C program without the use of a build tool such as autotools or CMake. My debian/rules file: #!/usr/bin/make -f %: dh $@ override_dh_auto_clean: rm -f program override_dh_auto_build: gcc…
0
votes
1 answer

Systemd service in package is restarted on upgrade

I use debhelper with python setuptools in order to build my packages. I recently updated the compatibility level 9 to 11 in order to use the systemd timers. From that moment every time I upgrade the package the service contained is restarted. I…
IK428
  • 1
  • 1
0
votes
1 answer

dh_link not overwriting symlink of another package

I have two packages: libsai-A libsai-B Both of these package 'Provides' a virtual package called 'libsai', but libsai-B can 'Replace' (copy over) libsai-A. For some reason, not all the symlinks in libsai-A is getting overwritten when libsai-B is…
GHe
  • 499
  • 1
  • 4
  • 10
0
votes
1 answer

Is there dh_make analog for rpm packages

Existing source distributions can be debianized easily using dh_make, but I failed to find similar tool for rpm packages. Are there any, or the only way is to write spec file manually
0
votes
1 answer

Debhelper: Ignore setup.py for one of multiple binary packages

A server and and a corresponding client are being built from a single source package: Source: packagename Build-Depends: debhelper (>= 8.0.0), python (>= 2.6) Standards-Version: 3.9.4 …
Niklas
  • 3,753
  • 4
  • 21
  • 29
0
votes
1 answer

is it possible to get python purple running either in cygwin or on a linux that isn't debian?

python purple says it needs dbms and debhelper in order to run, but I don't run debian. Is there a way to get this running on a different linux? or in cygwin?
Ryan
  • 11,743
  • 16
  • 37
  • 37
1 2
3