Skip to content

Commit 2b6a7e1

Browse files
committed
haproxy: update to v3.4.1
- New major LTS version. See https://www.haproxy.com/blog/announcing-haproxy-3-4 - Updated haproxy PKG_VERSION and PKG_HASH - Added patch to insert version information into halog. This is to make the ci/cd happy. - See changes: http://git.haproxy.org/?p=haproxy-3.4.git;a=shortlog Signed-off-by: Christian Lachner <gladiac@gmail.com>
1 parent eb21982 commit 2b6a7e1

2 files changed

Lines changed: 43 additions & 5 deletions

File tree

net/haproxy/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
include $(TOPDIR)/rules.mk
1111

1212
PKG_NAME:=haproxy
13-
PKG_VERSION:=3.2.15
13+
PKG_VERSION:=3.4.1
1414
PKG_RELEASE:=1
1515

1616
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17-
PKG_SOURCE_URL:=https://www.haproxy.org/download/3.2/src
18-
PKG_HASH:=117e408aff544c9ad758c2fb3fd8cf791a72609d3ae319b2cf9f2a0b035393c2
17+
PKG_SOURCE_URL:=https://www.haproxy.org/download/3.4/src
18+
PKG_HASH:=2e62c4ce4fd77d3bc7cf17e586431663454456a078b7c8465b8f0125b5bc22f8
1919

2020
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>, \
2121
Christian Lachner <gladiac@gmail.com>
@@ -91,7 +91,7 @@ define Build/Compile
9191
VERSION="$(PKG_VERSION)" SUBVERS="-$(PKG_RELEASE)" \
9292
VERDATE="$(shell date -d @$(SOURCE_DATE_EPOCH) '+%Y/%m/%d')" IGNOREGIT=1 \
9393
$(ADDON) \
94-
CFLAGS="$(TARGET_CFLAGS) -fno-strict-aliasing -Wdeclaration-after-statement -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-clobbered -Wno-missing-field-initializers -Wno-cast-function-type -Wno-address-of-packed-member -Wtype-limits -Wshift-negative-value -Wshift-overflow=2 -Wduplicated-cond -Wnull-dereference -fwrapv -fasynchronous-unwind-tables -Wno-null-dereference" \
94+
CFLAGS="$(filter-out -ffile-prefix-map=% -fmacro-prefix-map=%,$(TARGET_CFLAGS)) -fno-strict-aliasing -Wdeclaration-after-statement -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-clobbered -Wno-missing-field-initializers -Wno-cast-function-type -Wno-address-of-packed-member -Wtype-limits -Wshift-negative-value -Wshift-overflow=2 -Wduplicated-cond -Wnull-dereference -fwrapv -fasynchronous-unwind-tables -Wno-null-dereference" \
9595
LD="$(TARGET_CC)" \
9696
LDFLAGS="$(TARGET_LDFLAGS)"
9797

@@ -105,7 +105,7 @@ define Build/Compile
105105
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
106106
DESTDIR="$(PKG_INSTALL_DIR)" \
107107
CC="$(TARGET_CC)" \
108-
CFLAGS="$(TARGET_CFLAGS) -Wno-address-of-packed-member" \
108+
CFLAGS="$(TARGET_CFLAGS) -Wno-address-of-packed-member -DHALOG_VERSION='$(PKG_VERSION)-$(PKG_RELEASE)'" \
109109
LDFLAGS="$(TARGET_LDFLAGS)" \
110110
admin/halog/halog
111111
endef
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff --git a/admin/halog/halog.c b/admin/halog/halog.c
2+
index 5298684..a264c5f 100644
3+
--- a/admin/halog/halog.c
4+
+++ b/admin/halog/halog.c
5+
@@ -44,6 +44,15 @@
6+
#define SEP(c) ((unsigned char)(c) <= ' ')
7+
#define SKIP_CHAR(p,c) do { while (1) { int __c = (unsigned char)*p++; if (__c == c) break; if (__c <= ' ') { p--; break; } } } while (0)
8+
9+
+#define STR2(x) #x
10+
+#define STR(x) STR2(x)
11+
+
12+
+#ifdef HALOG_VERSION
13+
+#define HALOG_BUILD_INFO "halog - HAProxy log statistics reporter (" STR(HALOG_VERSION) ")\n"
14+
+#else
15+
+#define HALOG_BUILD_INFO "halog - HAProxy log statistics reporter\n"
16+
+#endif
17+
+
18+
/* [0] = err/date, [1] = req, [2] = conn, [3] = resp, [4] = data */
19+
static struct eb_root timers[5] = {
20+
EB_ROOT_UNIQUE, EB_ROOT_UNIQUE, EB_ROOT_UNIQUE,
21+
@@ -164,6 +173,7 @@ void filter_accept_holes(const char *accept_field, const char *time_field, struc
22+
void usage(FILE *output, const char *msg)
23+
{
24+
fprintf(output,
25+
+ "%s"
26+
"%s"
27+
"Usage:\n"
28+
" halog [-h|--help] for long help\n"
29+
@@ -174,7 +184,8 @@ void usage(FILE *output, const char *msg)
30+
" out = {-c|-u|-uc|-ue|-ua|-ut|-uao|-uto|-uba|-ubt|-hdr <block>:<field>|\n"
31+
" -cc|-gt|-pct|-st|-tc|-srv|-ic}\n"
32+
"\n",
33+
- msg ? msg : ""
34+
+ msg ? msg : "",
35+
+ HALOG_BUILD_INFO
36+
);
37+
}
38+

0 commit comments

Comments
 (0)