Added RPM generation capability to Cabal

Bryan O'Sullivan bos at
Tue Feb 20 20:15:55 EST 2007

Stefan O'Rear wrote:

> Besides, remember that 50 patches is
> 50x the documentation :)

Yes, but it's 50x the blundering about when trying to review the code :-)

Here's a seemingly reasonable compromise.  I've attached a single 
unified diff that contains all of my changes in a single lump.  If the 
code looks sane, you can then "darcs pull" the real changes and see if 
the history "smells right".

There shouldn't be any review surprises.  The only "unrelated" change it 
makes is to check the return code from tar in SrcDist, something that 
must have been overlooked.

The actual darcs history is pretty clean, too.  Small, self-contained 
changes, etc, etc.


  Cabal.cabal                    |    3
  Distribution/Setup.hs          |   87 +++
  Distribution/Simple.hs         |   17
  Distribution/Simple/Rpm.hs     |  497 +++++++++++++++++++++
  Distribution/Simple/SrcDist.hs |   66 ++
  5 files changed, 649 insertions(+), 21 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cabal-rpm.patch
Type: text/x-patch
Size: 35083 bytes
Desc: not available
Url :

More information about the cabal-devel mailing list