From ecc24395b9b68849c765d676671f76008ce84d3bf9e0809f7e5bf61a2ea54b0e Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Fri, 14 May 2021 10:30:30 +0000 Subject: [PATCH] - Update to version 2.4.0+git0.6cbbecf09: https://www.haproxy.com/blog/announcing-haproxy-2-4/ for all the details see /usr/share/doc/packages/haproxy/CHANGELOG - refreshed patches to apply cleanly again haproxy-1.6.0-makefile_lib.patch haproxy-1.6.0-sec-options.patch lua54.patch OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=244 --- _service | 4 ++-- _servicedata | 10 +++------- haproxy-1.6.0-makefile_lib.patch | 10 +++++----- haproxy-1.6.0-sec-options.patch | 10 +++++----- haproxy-2.3.10+git0.4764f0e4e.tar.gz | 3 --- haproxy-2.4.0+git0.6cbbecf09.tar.gz | 3 +++ haproxy.changes | 12 ++++++++++++ haproxy.spec | 23 ++++++++++++++--------- lua54.patch | 28 ++++++++++++++++------------ series | 1 + 10 files changed, 61 insertions(+), 43 deletions(-) delete mode 100644 haproxy-2.3.10+git0.4764f0e4e.tar.gz create mode 100644 haproxy-2.4.0+git0.6cbbecf09.tar.gz diff --git a/_service b/_service index 490ee52..6aabf2c 100644 --- a/_service +++ b/_service @@ -1,12 +1,12 @@ - http://git.haproxy.org/git/haproxy-2.3.git + http://git.haproxy.org/git/haproxy-2.4.git git haproxy @PARENT_TAG@+git@TAG_OFFSET@.%h v(.*) \1 - v2.3.10 + v2.4.0 enable diff --git a/_servicedata b/_servicedata index 9a85d5a..2e5748f 100644 --- a/_servicedata +++ b/_servicedata @@ -1,10 +1,6 @@ - http://git.haproxy.org/git/haproxy-2.1.git - v2.2.0 + http://git.haproxy.org/git/haproxy-2.4.git + 6cbbecf09734aeb5fa8bb88f36f06a6f6d35e813 - - http://git.haproxy.org/git/haproxy-2.2.git - 34b2b106689c8a017eb5726193b199ea96f2c9f7 - http://git.haproxy.org/git/haproxy-2.3.git - 4764f0e4eac1a823331f59e2a2c68e96e303a112 \ No newline at end of file + diff --git a/haproxy-1.6.0-makefile_lib.patch b/haproxy-1.6.0-makefile_lib.patch index af36ebf..555e2b1 100644 --- a/haproxy-1.6.0-makefile_lib.patch +++ b/haproxy-1.6.0-makefile_lib.patch @@ -1,8 +1,8 @@ -Index: haproxy-2.2/Makefile +Index: haproxy-2.4/Makefile =================================================================== ---- haproxy-2.2.orig/Makefile -+++ haproxy-2.2/Makefile -@@ -660,7 +660,7 @@ PCRE_CONFIG := pcre-config +--- haproxy-2.4.orig/Makefile ++++ haproxy-2.4/Makefile +@@ -716,7 +716,7 @@ PCRE_CONFIG := pcre-config PCREDIR := $(shell $(PCRE_CONFIG) --prefix 2>/dev/null || echo /usr/local) ifneq ($(PCREDIR),) PCRE_INC := $(PCREDIR)/include @@ -11,7 +11,7 @@ Index: haproxy-2.2/Makefile endif ifeq ($(USE_STATIC_PCRE),) -@@ -679,7 +679,7 @@ PCRE2_CONFIG := pcre2-config +@@ -735,7 +735,7 @@ PCRE2_CONFIG := pcre2-config PCRE2DIR := $(shell $(PCRE2_CONFIG) --prefix 2>/dev/null || echo /usr/local) ifneq ($(PCRE2DIR),) PCRE2_INC := $(PCRE2DIR)/include diff --git a/haproxy-1.6.0-sec-options.patch b/haproxy-1.6.0-sec-options.patch index e7a0aec..0a5d4a6 100644 --- a/haproxy-1.6.0-sec-options.patch +++ b/haproxy-1.6.0-sec-options.patch @@ -4,12 +4,12 @@ Date: Mon Jun 17 13:00:08 2019 +0000 SUSE: Makefile sec options -Index: haproxy-2.2/Makefile +Index: haproxy-2.4/Makefile =================================================================== ---- haproxy-2.2.orig/Makefile -+++ haproxy-2.2/Makefile -@@ -741,6 +741,35 @@ ifneq ($(USE_NS),) - OPTIONS_OBJS += src/namespace.o +--- haproxy-2.4.orig/Makefile ++++ haproxy-2.4/Makefile +@@ -801,6 +801,35 @@ ifneq ($(USE_OT),) + include addons/ot/Makefile endif +# PIE diff --git a/haproxy-2.3.10+git0.4764f0e4e.tar.gz b/haproxy-2.3.10+git0.4764f0e4e.tar.gz deleted file mode 100644 index 541537b..0000000 --- a/haproxy-2.3.10+git0.4764f0e4e.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e25dd670c6c700e0363b869fc1b5d50a07648743dbb0c4b968e432d2311bc905 -size 3029769 diff --git a/haproxy-2.4.0+git0.6cbbecf09.tar.gz b/haproxy-2.4.0+git0.6cbbecf09.tar.gz new file mode 100644 index 0000000..67d5f78 --- /dev/null +++ b/haproxy-2.4.0+git0.6cbbecf09.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b68fa1b9418c6d8de16dd7d7687f8bf46dc5e980201deefb24f7b213eae3a07 +size 3668230 diff --git a/haproxy.changes b/haproxy.changes index 89c8e92..828ed0c 100644 --- a/haproxy.changes +++ b/haproxy.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri May 14 08:31:04 UTC 2021 - mrueckert@suse.de + +- Update to version 2.4.0+git0.6cbbecf09: + https://www.haproxy.com/blog/announcing-haproxy-2-4/ + + for all the details see /usr/share/doc/packages/haproxy/CHANGELOG +- refreshed patches to apply cleanly again + haproxy-1.6.0-makefile_lib.patch + haproxy-1.6.0-sec-options.patch + lua54.patch + ------------------------------------------------------------------- Fri Apr 23 20:35:49 UTC 2021 - mrueckert@suse.de diff --git a/haproxy.spec b/haproxy.spec index 0ce9c85..b8d7727 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -53,7 +53,7 @@ %endif Name: haproxy -Version: 2.3.10+git0.4764f0e4e +Version: 2.4.0+git0.6cbbecf09 Release: 0 # # @@ -171,26 +171,31 @@ make %{?_smp_mflags} \ USE_RELRO_NOW=1 \ LIB="%{_lib}" \ PREFIX="%{_prefix}" \ - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" \ + USE_PROMEX=1 \ + %if %{with opentracing} + USE_OT=1 \ + %endif + %if %{with memory_profiling} + USE_MEMORY_PROFILING=1 \ + %endif DEBUG_CFLAGS="%{optflags}" V=1 %if %{with systemd} -make -C contrib/systemd PREFIX="%{_prefix}" +make -C admin/systemd PREFIX="%{_prefix}" %if %{with sysusers} %sysusers_generate_pre %{SOURCE5} haproxy %endif %endif -make -C contrib/halog PREFIX="%{_prefix}" \ - DEFINE="%{optflags} -pie -fpie -fstack-protector -Wl,-z,relro,-z,now" +make admin/halog/halog DEBUG_CFLAGS="%{optflags}" V=1 %install install -D -m 0755 %{pkg_name} %{buildroot}%{_sbindir}/%{pkg_name} install -d -m 0750 %{buildroot}%{_sysconfdir}/%{pkg_name}/ install -m 0640 %{S:4} %{buildroot}%{_sysconfdir}/%{pkg_name}/%{pkg_name}.cfg -install -D -m 0755 contrib/halog/halog %{buildroot}%{_sbindir}/haproxy-halog +install -D -m 0755 admin/halog/halog %{buildroot}%{_sbindir}/haproxy-halog %if %{with systemd} -install -D -m 0644 contrib/systemd/%{pkg_name}.service %{buildroot}%{_unitdir}/%{pkg_name}.service +install -D -m 0644 admin/systemd/%{pkg_name}.service %{buildroot}%{_unitdir}/%{pkg_name}.service ln -sf /sbin/service %{buildroot}%{_sbindir}/rc%{pkg_name} %if %{with sysusers} install -D -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/haproxy-user.conf @@ -201,7 +206,7 @@ ln -fs %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} %endif install -d -m 0750 %{buildroot}%{pkg_home} -install -D -m 0644 contrib/syntax-highlight/haproxy.vim %{buildroot}%{vim_data_dir}/syntax/%{pkg_name}.vim +install -D -m 0644 admin/syntax-highlight/haproxy.vim %{buildroot}%{vim_data_dir}/syntax/%{pkg_name}.vim install -D -m 0644 doc/%{pkg_name}.1 %{buildroot}%{_mandir}/man1/%{pkg_name}.1 %if %{with apparmor} install -D -m 0644 %{S:2} %{buildroot}/etc/apparmor.d/usr.sbin.haproxy @@ -260,7 +265,7 @@ getent passwd %{pkg_name} >/dev/null || \ %license LICENSE %doc CHANGELOG README %doc ROADMAP doc/* examples/ -%doc contrib/netsnmp-perl/ contrib/selinux/ +%doc admin/netsnmp-perl/ admin/selinux/ %dir %attr(-,root,haproxy) %{_sysconfdir}/%{pkg_name} %config(noreplace) %attr(-,root,haproxy) %{_sysconfdir}/%{pkg_name}/* %if %{with systemd} diff --git a/lua54.patch b/lua54.patch index c872da4..32c05f8 100644 --- a/lua54.patch +++ b/lua54.patch @@ -1,15 +1,17 @@ ---- a/Makefile -+++ b/Makefile -@@ -101,7 +101,7 @@ +Index: haproxy-2.4/Makefile +=================================================================== +--- haproxy-2.4.orig/Makefile ++++ haproxy-2.4/Makefile +@@ -104,7 +104,7 @@ # LUA_LIB : force the lib path to lua # LUA_INC : force the include path to lua # LUA_LIB_NAME : force the lib name (or automatically evaluated, by order of -# priority : lua5.3, lua53, lua). -+# priority : lua5.4, lua54, lua5.3, lua53, lua). - # IGNOREGIT : ignore GIT commit versions if set. - # VERSION : force haproxy version reporting. - # SUBVERS : add a sub-version (eg: platform, model, ...). -@@ -579,11 +579,11 @@ ++# priority : lua5.4, lua5.3, lua53, lua). + # OT_DEBUG : compile the OpenTracing filter in debug mode + # OT_INC : force the include path to libopentracing-c-wrapper + # OT_LIB : force the lib path to libopentracing-c-wrapper +@@ -608,11 +608,11 @@ OPTIONS_CFLAGS += $(if $(LUA_INC),-I$(L LUA_LD_FLAGS := -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic) $(if $(LUA_LIB),-L$(LUA_LIB)) ifeq ($(LUA_LIB_NAME),) # Try to automatically detect the Lua library @@ -24,9 +26,11 @@ ifneq ($(LUA_INC),) OPTIONS_CFLAGS += -I$(LUA_INC) endif ---- a/INSTALL -+++ b/INSTALL -@@ -295,9 +295,9 @@ +Index: haproxy-2.4/INSTALL +=================================================================== +--- haproxy-2.4.orig/INSTALL ++++ haproxy-2.4/INSTALL +@@ -318,9 +318,9 @@ Lua is an embedded programming language advanced scripting capabilities. Only versions 5.3 and above are supported. In order to enable Lua support, please specify "USE_LUA=1" on the command line. Some systems provide this library under various names to avoid conflicts with @@ -36,6 +40,6 @@ +previous versions. By default, HAProxy looks for "lua5.4", "lua54","lua5.3", +"lua53","lua". If your system uses a different naming, you may need to set +the library name in the "LUA_LIB_NAME" variable. - + If Lua is not provided on your system, it can be very simply built locally. It can be downloaded from https://www.lua.org/, extracted and built, for example : diff --git a/series b/series index 1f82b55..1473afb 100644 --- a/series +++ b/series @@ -1,3 +1,4 @@ haproxy-1.6.0_config_haproxy_user.patch -p1 haproxy-1.6.0-makefile_lib.patch haproxy-1.6.0-sec-options.patch +lua54.patch