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
3
votes
1 answer

How to create a simply debian package (just compress/extract sources or any files with debian packaging)

I need to create a new .deb package of Realxtend project (https://github.com/realXtend/naali). It's a huge project with a lot of dependencies and a automatic bash script (/tools/Linux/build-deps.bash) to download, compile and install all deps and…
sylv_brl
  • 33
  • 1
  • 5
2
votes
0 answers

debhelper error with Sphinx: is is not in the index; is it up-to-date?

Several debian packages fail to build with the following error. "dh_sphinxdoc: error: 1.0/jquery-3.5.1.js is not in the index; is it up-to-date?" It's not clear why this error is being generated, or what actions would resolve it. Some advice? I…
Ted
  • 61
  • 2
2
votes
1 answer

Get package name or package build directory inside dpkg-buildpackage (debhelper)

When creating a Debian package with dpkg-buildpackage (and debhelper), I am using the following entry in debian/rules for assigning ownership of my-config to my-user (instead of root): override_dh_fixperms: dh_fixperms chown…
rookie099
  • 2,201
  • 2
  • 26
  • 52
2
votes
1 answer

console_scripts not on path when debianising a python package using dh_virtualenv

I have followed the tutorial here https://dh-virtualenv.readthedocs.io/en/latest/tutorial.html#step-2-setup-the-debian-packaging closely and everything builds and installs fine. However, my python package usually installs some console scripts, and I…
Sirrah
  • 1,681
  • 3
  • 21
  • 34
2
votes
1 answer

Packaging an application that uses perl and python on debian

I have an application that has various sections some of which are written in perl and some in python. What would be the best tool to use for packaging such an application. I am looking at deb-helper at the moment and still learning how to use it…
domino
  • 2,137
  • 1
  • 22
  • 30
2
votes
2 answers

Conf files and static files in a deb package

I'm using dh_help to build a package template and trying to follow the ubuntu and debian packaging guides for creating a binary package. How do I tell debuild which file is a conf file and should go for example to /etc/mypkg.conf ? I've tried to put…
pablo
  • 2,719
  • 11
  • 49
  • 67
2
votes
1 answer

Should I override debhelper usage of the init system?

I am trying to build a debian package with systemd scripts and I don't really understand the best way to do it. My first question is, should I use the --with=systemd option (and override dh_systemd_enable and dh_systemd_start) or is using…
zil
  • 21
  • 4
2
votes
1 answer

Manually editing debianrules file needed for simple build process?

I'm a newbie trying to build a deb to put into a PPA, following this Ubuntu guide, but I run into troubles with the rules file, where I consult this overview and the Debian Policy Manual. I gather that in many cases one can leave the rules file as…
knahrvorn
  • 71
  • 5
2
votes
1 answer

Leftover-files after deinstallation of Debian package with own update-mechanism

I have a Debian package which has to update some files. These files will exist after a uninstallation of the Debian package. I want to remove them together with my package, when i call apt-get remove. If i add the updated files to…
imizeropt
  • 176
  • 1
  • 13
2
votes
1 answer

Create Debian package for a dolphin service menu

hi there i have a problem to generate a debian package i have 2 files to install 1 is a BASH SCRIPT the other is .DESKTOP FILE /kate-folder-service-menu-0.1.0$ tree . └── usr ├── bin │   └── ktexeditor-open-folder └── share └──…
user1088530
  • 2,152
  • 1
  • 13
  • 14
1
vote
1 answer

How to use variables in debhelper dh_gencontrol?

I'm trying to append data to a Debian package's description during the build process. The required data is stored in constants declared within debian/rules file. I've override dh_gencontrol and added @printf calls which formats the data. The issues…
Ezekiel
  • 28
  • 6
1
vote
0 answers

How to install kernel modules using debhelper

I have a Makefile that builds a .ko binary, there is a main package with an application in which there is a directory debian/ with all the necessary files to build the package. The question is where to specify and how, so that when the package is…
Den
  • 11
  • 2
1
vote
1 answer

debian-policy states required targets, is dh pass ok?

https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules Document in question ^ I am learning to build debian packages and read above policy, specifically about the main (required) targets. I was told that I don't…
dza
  • 1,478
  • 2
  • 13
  • 24
1
vote
1 answer

How to modify a Debian source package to include an additional executable script?

Goal: I want to create a modified Debian source package, namely the official rrdtool package + "some changes". One of these changes is the addition of an executable script. I have this recipe for patching packages that I've used for many…
Peter V. Mørch
  • 13,830
  • 8
  • 69
  • 103
1
vote
1 answer

Debianize upstream `zip`-file with `gbp` and `pristine-tar`

The manual of gbp tells following: First, create an empty repository: mkdir package-0.1 cd package-0.1 git init Then, you import the upstream sources, branch off the upstream-branch branch and add the Debian files (e.g. via dh_make): gbp…
Tino
  • 9,583
  • 5
  • 55
  • 60