I used the examples/haproxy.spec to build a RPM of HAProxy 1.2. It was painless. 1.3 was a bit more annoying but I got it working and thought I should share the changes I made to the spec:
Embedded pastie:
This is the reason for Pastie's downtime earlier tonight *grrrr*. When I did get haproxy to build it silently died when run. Turns out /usr/share/haproxy was missing and it was silently trying to chroot there.
Note to developers: Such MAJOR errors should result in output without having to run your program in debug mode! Please!
Update: The author contacted me a few hours later with a patch for the silent error issue. Evidently for some historical reasons daemon mode triggers quiet mode which suppresses a lot of error messages.
Just a quick follow up as I received a few comments in private, the fix for this is already queued in 1.3.14 and 1.3.15.
Posted by: willy tarreau | November 16, 2008 at 01:33 PM
Yeah, kudos to Willy who responded to my [slightly annoyed] e-mail linking to this blog post a few hours later with a patch for HAProxy. :-)
HAProxy rawks! :-)
Posted by: Josh Goebel | November 16, 2008 at 01:35 PM