Project

General

Profile

Feature #356

More improvements for Debian package specification

Added by Jochen Schalanda over 8 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Low
Category:
Packaging
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

More improvements for the Debian package specs:

  • Added rake task pkg:deb to build a Debian package for Foreman with debuild.
  • Relaxed dependencies in Debian control file to hopefully allow installation of the foreman DEB under Ubuntu karmic, Ubuntu lucid, Debian lenny and Debian sid.
  • Fixed error in preinst script when Puppet is not installed and group 'puppet' doesn't exist yet.

The packages built by this spec should be able to run on Debian lenny, Debian sid, Ubuntu karmic and Ubuntu lucid.

Associated revisions

Revision 7a3815fb (diff)
Added by Jochen Schalanda over 8 years ago

Fixes #356 - More improvements for Debian package specification

  • Added rake task pkg:deb to build a Debian package for Foreman with debuild.
  • Relaxed dependencies in Debian control file to hopefully allow installation of the foreman DEB under Ubuntu karmic, Ubuntu lucid, Debian lenny and Debian sid.
  • Fixed error in preinst script when Puppet is not installed and group 'puppet' doesn't exist yet.

History

#1 Updated by Ohad Levy over 8 years ago

just tried it and got the following error:

rake pkg:deb
(in /home/ohad/git/foreman)
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of foreman_0.1.5.orig.tar.gz, foreman_0.1.5.orig.tar.bz2,
foreman_0.1.5.orig.tar.lzma or foreman.orig)
continue anyway? (y/n) y
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package foreman
dpkg-buildpackage: source version 0.1.5-2
dpkg-buildpackage: source changed by Jochen Schalanda <jochen@schalanda.name>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: cdbs
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1340:
dpkg-buildpackage -rfakeroot -D -us -uc failed
Error while building the DEB package with `debuild`.

am I missing something?

#2 Updated by Jochen Schalanda over 8 years ago

dpkg-checkbuilddeps: Unmet build dependencies: cdbs
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.

You should install the package cdbs as it's needed for building the foreman .DEB package.

I'll have a look at how to automate this in the Rakefile when I find some time.

#3 Updated by Ohad Levy over 8 years ago

  • Target version set to 0.1-6

#4 Updated by Jochen Schalanda over 8 years ago

  • Status changed from New to Ready For Testing

#5 Updated by Ohad Levy over 8 years ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 6 months ago

  • Category changed from 21 to Packaging

Also available in: Atom PDF