Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

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

share|improve this answer
    
that looks just the thing –  Gareth Davis Apr 26 '12 at 12:53
    
AFAIK fpm does not provide a way to provide a package repository for several clients. Related: github.com/jordansissel/fpm/issues/817 –  guettli Nov 28 at 7:39

See the Open Build Service

share|improve this answer

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.

share|improve this answer
    
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 –  Gareth Davis Apr 27 '12 at 7:35
    
Answered in the answer. –  mgorven Apr 27 '12 at 16:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.