4

I have a large Java enterprise application that is required to output rpm and deb packages.

Currently this means that we build the application on two different boxes, one with CentOS and the other with Ubuntu 10.04.

In an ideal world I'd be able to run the build on either of these to systems and produce rpm and deb packaging in a single pass.

Is this possible?

3 Answers 3

6

Have a look at https://github.com/jordansissel/fpm .

2
6

See the Open Build Service

1

Ideally you should be building packages in a chroot environment, using something like pbuilder for debs and mock for RPMs. Mock can be run on Ubuntu so you can do everything on a single build machine. Chroot build environments ensure that packages are built cleanly and aren't affected by any weirdness in the host machine. They also use the correct dependencies when building for different OS versions.

2
  • Not quite sure why a chroot environment is useful in this case. but if it lets me build both types of packages on a single disto I'll have a look Apr 27, 2012 at 7:35
  • Answered in the answer.
    – mgorven
    Apr 27, 2012 at 16:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .