Feature #356

More improvements for Debian package specification

Added by Jochen Schalanda over 1 year ago. Updated over 1 year ago.

Status:Closed Start:07/21/2010
Priority:Low Due date:
Assigned to:Jochen Schalanda % Done:

100%

Category:Distribution packages
Target version:0.1-6
Backlog: Difficulity:
Votes: 0

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.

0001-Added-rake-task-pkg-deb-to-build-a-Debian-package-fo.patch (3.4 KB) Jochen Schalanda, 07/21/2010 03:19 pm

Associated revisions

Revision 7a3815fb1b70b86c01c32330f88bbed126693696
Added by Jochen Schalanda over 1 year 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

Updated by Ohad Levy over 1 year 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?

Updated by Jochen Schalanda over 1 year 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.

Updated by Ohad Levy over 1 year ago

  • Target version set to 0.1-6

Updated by Jochen Schalanda over 1 year ago

  • Status changed from New to Ready For Testing

Updated by Ohad Levy over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF