the use of Debian tooling for packaging and following Debian policy in the creation of .deb files.
Questions tagged [debian-packaging]
84 questions
51
votes
8 answers
dpkg-shlibdeps: error: no dependency information found for
I'm compiling a deb package and when I run dpkg-buildpackage I get:
dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libopencv_highgui.so.2.3
...
make: *** [binary-arch] Error 2
This happens because I installed…

user1370912
- 919
- 2
- 9
- 15
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
14
votes
1 answer
Packaging Go 1.5 applications for Debian-like systems
The original question, Packaging Go application for Debian, was asked over three years ago, when Go was statically linking executables.
Now, with the new Go 1.5 Release, whose release note says,
Changes to the linker enable distributing Go packages…

xpt
- 20,363
- 37
- 127
- 216
6
votes
4 answers
Apt-get commands from within a deb postinst
I have a deb package that I've created. From the postinst script, I would like to run:
apt-get update
The package adds a proxy to the apt system by dropping a file in /etc/apt/apt.conf.d/. I would like to force the apt system to do the…

Seth
- 197
- 2
- 9
5
votes
2 answers
What are the advantages of installing Eclipse Temurin OpenJDK in place of OpenJDK Deb Package on Debian?
I have on my Debian 11 Bullseye these JDK installed :
sudo update-java-alternatives -l
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 …

S. TOURE
- 59
- 1
- 5
5
votes
3 answers
Install multiple .service files with dh_systemd packaging
I'm currently packaging a python app with dh_virtualenv, daemonized with systemd.
I use the dh_systemd plugin to automatically install the file my_app.service will install the .deb package, but I'd like to run another process in a different service…

pbo
- 218
- 2
- 11
4
votes
2 answers
Versioning of debian packaging Information
I'm developing certain scripts and small software packages which I also package as debian packages.
The code is maintained in git and I create new release tarballs with an make target and git-archive. This tarball is then fed to "uupdate -u .tar.gz"…

tex
- 2,051
- 1
- 23
- 27
3
votes
1 answer
CMake: the right way to deal with static and shared libraries
Let's consider Debian or Ubuntu distro where one can install some library package, say libfoobar, and a corresponding libfoobar-dev. The first one contains shared library object. The later usually contains headers, static library variant and cmake…

Max Dmitrichenko
- 330
- 2
- 8
3
votes
0 answers
handling x86-64 microarchitecture levels in Debian package names
I'm planning to build different versions of intense numerical program for x86-64 architectures. Conveniently, in 2020, 4 levels of x86-64 microarchitecture were defined that can be passed to the compiler via the "-march" flag.
Thus, for GCC 11 (and…

Justin JRTI
- 56
- 4
3
votes
0 answers
GitHub Actions with Java to build automatically Linux packages
Introduction
I am currently creating a Java Maven project and wanted to build the project in a Linux package.
I found some links to build a Debian packages…

ThrowsError
- 1,169
- 1
- 11
- 43
3
votes
0 answers
Building custom Erlang debian package from source files
I'm trying to create Debian package from source files, but I'm stuck.
What I want to achieve:
Download Erlang source (https://erlang.org/download/otp_src_23.1.tar.gz)
Create the Debian package from it with configure option "--enable-fips"
Be able…

Dee
- 43
- 2
3
votes
1 answer
How can I Debian-package a python application with a systemd unit using stdeb3/py2dsc and dpkg-buildpackage?
What I'd like to do is create a Debian package for a Python3 application and have the package install an associated systemd service, and remove/update it when the package is removed or updated.
I have a Python3 program that I'd like to bundle into a…

davidA
- 12,528
- 9
- 64
- 96
3
votes
1 answer
Debian include-binaries format
I am trying to build a precompiled debian package for my application.
Some binaries (compiled modules) are present in my package.
Right now, I get an error with the message to add the binaries to debian/source/include-binaries
My problem is that I…

El Dude
- 5,328
- 11
- 54
- 101
3
votes
3 answers
How Debian manage conflicts on packages names?
How Debian manage conflicts on packages names? As example, when there is many packages with the same name on various repositories.

AmauryPi
- 31
- 5
2
votes
0 answers
Add native binary to jetpack compose package
My Jetpack Compose Desktop app depends on a proprietary executable that I would like to include in the Debian package.
The closest I'm getting is adding the file as a resource, but that will not set the executable flag.
Is there another way of…

Robert
- 6,855
- 4
- 35
- 43