When building haproxy v1.3.6 from the examples/haproxy.spec file it fails because of a bad date in the changelog, and it gives a warning about using REGEX=pcre is deprecated.
Fixed these in the attached patch, and also changed to build for v2.6 kernel. -jf
From e26b5d930781b78ed9aa7524498536007f89e720 Mon Sep 17 00:00:00 2001 From: Jan-Frode Myklebust <[email protected]> Date: Thu, 26 Mar 2009 12:54:53 +0100 Subject: [PATCH] - Update specfile to build for v2.6 kernel. - Fix date in changelog. - Stop using deprecated "REGEX=pcre", and start using "USE_PCRE=1" instead. --- examples/haproxy.spec | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/haproxy.spec b/examples/haproxy.spec index 85d7b9a..8c93869 100644 --- a/examples/haproxy.spec +++ b/examples/haproxy.spec @@ -30,7 +30,7 @@ risking the system's stability. %setup -q %build -%{__make} REGEX="pcre" "COPTS.pcre=-DUSE_PCRE $(pcre-config --cflags)" DEBUG="" TARGET=linux24e +%{__make} USE_PCRE=1 "COPTS.pcre=-DUSE_PCRE $(pcre-config --cflags)" DEBUG="" TARGET=linux26 #%{__make} REGEX=pcre DEBUG="" LIBS.pcre="-L\$(PCREDIR)/lib -Wl,-Bstatic -lpcreposix -lpcre -Wl,-Bdynamic" @@ -71,7 +71,7 @@ fi %attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/%{name} %changelog -* Sun Mar 22 2008 Willy Tarreau <[email protected]> +* Sun Mar 22 2009 Willy Tarreau <[email protected]> - updated to 1.3.16 * Sat Apr 19 2008 Willy Tarreau <[email protected]> -- 1.5.5.6
pgp9k6fuvqWfv.pgp
Description: PGP signature

