Skip to contentSkip to conversation

zabbix: upgrade 3.0.9 -> 4.2.6

PATCH New Peiran Hong 1 participant 1 message Oct 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zabbix: upgrade 3.0.9 -> 4.2.6

This update fixes the following CVEs:
- CVE-2016-10742 (ZBX-13133, refer to 'Changes for 3.4.4rc1' in ChangeLog)

and addresses numerous bugs as well as improved frontend messaging usage.

Added libevent, libpcre and zlib to DEPENDS as required dependency to build 4.2.6.

Added --with-libpthread to EXTRA_OECONF as default configure option since it is turned on by default in the new version.

There are also new optional features available in this update that could be but are not yet added as PACKAGECONFIG.

---
 .../zabbix/{zabbix_3.0.9.bb => zabbix_4.2.6.bb}      | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-connectivity/zabbix/{zabbix_3.0.9.bb => zabbix_4.2.6.bb} (88%)
meta-oe/recipes-connectivity/zabbix/zabbix_4.2.6.bb renamed from meta-oe/recipes-connectivity/zabbix/zabbix_3.0.9.bb +8 -4
similarity index 88%
rename from meta-oe/recipes-connectivity/zabbix/zabbix_3.0.9.bb
rename to meta-oe/recipes-connectivity/zabbix/zabbix_4.2.6.bb
index bab5a6ae6..33c0a82b8 100644
@@ -19,7 +19,7 @@ HOMEPAGE = "http://www.zabbix.com/"
 SECTION = "Applications/Internet"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=300e938ad303147fede2294ed78fe02e"
-DEPENDS  = "openldap virtual/libiconv"
+DEPENDS  = "libevent libpcre openldap virtual/libiconv zlib"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -28,8 +28,8 @@ SRC_URI = "http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stab
     file://zabbix-agent.service \
 "
 
-SRC_URI[md5sum] = "489d21b464277c0d412155c7e5611a8f"
-SRC_URI[sha256sum] = "4445f26c025009681c29c9b350aa6c4ee7b124ddcaf1609ae36c55997bcb8cf2"
+SRC_URI[md5sum] = "6cd55cd743d416d9ffbf2e6fdee680ee"
+SRC_URI[sha256sum] = "646b1f29a768e3123a00a9afadf382b4d0dfd54e20fb31023f0d6da066da0864"
 
 inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd
 
@@ -55,8 +55,12 @@ EXTRA_OECONF = " \
     --with-unixodbc \
     --with-ssh2 \
     --with-sqlite3 \
+    --with-zlib \
+    --with-libpthread \
+    --with-libevent \
+    --with-libpcre \
 "
-CFLAGS_append = " -lldap -llber"
+CFLAGS_append = " -lldap -llber -pthread"
 
 do_configure_prepend() {
     export KERNEL_VERSION="${KERNEL_VERSION}"
Signature · 1 line
2.21.0