Questions tagged [dpkg-buildpackage]

tool that creates a .deb package out of Debian source files automatically. Source files should include a debian directory with the required files that describe the package and build process. This command automates the process.

24 questions
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
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
2 answers

dpkg-buildpackage command not working with -P argument

When I run dpkg-buildpackage with -P argument it fails dpkg-buildpackage -b -us -uc -P mypackageprofile dpkg-buildpackage: unknown option or argument mypackageprofile I have also tried -P [mypackageprofile] and ['mypackageprofile']. According to…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
1
vote
0 answers

Prevent dpkg-build from overriding flags set in CMakeLists.txt during package building

I am building deb package from c++ project that uses CMake. Package that I build works fine, but binary itself is compiled using various options that override flags set in CMakeLists.txt, e.g. flags used for compilation are -g -O2 instead of -Os. I…
Jędrzej Dudkiewicz
  • 1,053
  • 8
  • 21
1
vote
1 answer

JFrog not showing any 'Debian Info' for package built on Ubuntu Jammy

I am trying to build a custom debian package of the Cassandra C++ Driver on Jammy (22.04) [0]. It builds fine, but when I manually 'Deploy' the packages to our private JFrog repo no information is shown in the 'Debian Info' section, and the packages…
James
  • 9,064
  • 3
  • 31
  • 49
1
vote
0 answers

Make a deb package that depends on other package installed from deb file

I am trying to build a deb package A that depends on another deb package B that is downloaded from URL and then installed. The obvious solution I tried was putting the script that downloads and installs package B in the postinst/preinst scripts of…
1
vote
0 answers

Problems packaging on buster

I'm trying to build some packages from source, and I'm facing trouble that I don't understand despite lots of googling. This happens with some packages, while others compile and get packed normally. One of the softwares that fail to package is…
1
vote
0 answers

dpkg-buildpackage error when builing Linux Kernel

I'm trying to build Linux Kernel ffor Ubuntu 20.04 with GCC 9.3.0. There are instructions out there https://wiki.ubuntu.com/KernelTeam/GitKernelBuild make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom After long running compiling C…
Some Name
  • 8,555
  • 5
  • 27
  • 77
1
vote
1 answer

How to intentionally leave a package half configured?

I'm trying to test Wazuh configuration related to half-configured packages. So, I'm trying to create a .deb package that will end up half configured when installed. I started by following these instructions for creating a dirt-simple, do-nothing…
Jim Ivey
  • 93
  • 1
  • 5
1
vote
2 answers

Building a 64bit Debian package on 32bit Ubuntu

I am trying to build a .deb package for an application my company (and me) have been developing. I'm trying to create a 64bit package on my 32bit ubuntu (12.04 LTS) using dpkg-buildpackage and I get the following warnings/errors: dpkg-shlibdeps:…
Andy Thomas
  • 1,219
  • 3
  • 19
  • 33
0
votes
0 answers

What causes dpkg to add files to multiple packages when they are only listed in one package's .install file?

The package coq-8.16.1ide (8.16.1-1~jammy~ppa191) is unusable, failing with error Unpacking coq-8.16.1ide (8.16.1-1~jammy~ppa191) ... dpkg: error processing archive /tmp/apt-dpkg-install-HG8l2q/08-coq-8.16.1ide_8.16.1-1~jammy~ppa191_amd64.deb…
Jason Gross
  • 5,928
  • 1
  • 26
  • 53
0
votes
0 answers

dpkg error when running sudo apt-get install build-essential

I tried to run this command in my terminal: sudo apt-get install build-essential and keep getting this error: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL =…
Zachary
  • 13
  • 3
0
votes
0 answers

I used the ddpkg-buildpackage tool to generate the deb package in linux, and the dynamic library of the dependent report could not be found

My project is based on QT5.14 and relies on the mxml library and libhv library. Now to port to Ubuntu, I choose to use ddpkg-buildpackage to generate the deb package. Run the dpkg-buildpackage -b -rfakeroot -us-uc command. The following error…
james
  • 1
  • 1
0
votes
1 answer

Dpkg force stop after preinst

I build my own package and I need to check something on the system before the install process. So in my dpkg I add a preinst script which is written as follow. As an example I want to check if the arduino-cli command is available: echo 'Check…
bird12358
  • 39
  • 6
0
votes
2 answers

dpkg-buildpackage unrecognized option: `--runstatedir=/run'

I wanted to build vim package for debian from source and I'm getting this error when running command dpkg-buildpackage -rfakeroot dh_clean dpkg-source -b . dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building vim…
F.Hand
  • 73
  • 1
  • 2
  • 13
1
2