diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:20:02 +0000 |
commit | 58daab21cd043e1dc37024a7f99b396788372918 (patch) | |
tree | 96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /fluent-bit/lib/update_msgpack.sh | |
parent | Releasing debian version 1.43.2-1. (diff) | |
download | netdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz netdata-58daab21cd043e1dc37024a7f99b396788372918.zip |
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/update_msgpack.sh')
-rwxr-xr-x | fluent-bit/lib/update_msgpack.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/fluent-bit/lib/update_msgpack.sh b/fluent-bit/lib/update_msgpack.sh new file mode 100755 index 000000000..fe9b0444c --- /dev/null +++ b/fluent-bit/lib/update_msgpack.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +# backup old repo +mv msgpack-c msgpack-c.old +mkdir msgpack-c + +rm -rf /tmp/flb-msgpack-c +git clone --branch=c_master https://github.com/msgpack/msgpack-c /tmp/flb-msgpack-c + +cp -r /tmp/flb-msgpack-c/include msgpack-c/ +cp -r /tmp/flb-msgpack-c/src msgpack-c/ +cp -r /tmp/flb-msgpack-c/cmake msgpack-c/ + +# Register CMakeLists.txt +rm msgpack-c/CMakeLists.txt +cat << EOF > msgpack-c/CMakeLists.txt +cmake_minimum_required(VERSION 2.8) +project(msgpack-c) + +set(src + src/objectc.c + src/unpack.c + src/version.c + src/vrefbuffer.c + src/zone.c +) + +INCLUDE(TestBigEndian) +TEST_BIG_ENDIAN(BIGENDIAN) +IF (BIGENDIAN) + SET(MSGPACK_ENDIAN_BIG_BYTE 1) + SET(MSGPACK_ENDIAN_LITTLE_BYTE 0) +ELSE () + SET(MSGPACK_ENDIAN_BIG_BYTE 0) + SET(MSGPACK_ENDIAN_LITTLE_BYTE 1) +ENDIF () + +configure_file( + "cmake/sysdep.h.in" + "\${PROJECT_SOURCE_DIR}/include/msgpack/sysdep.h" +) + +configure_file( + "cmake/pack_template.h.in" + "\${PROJECT_SOURCE_DIR}/include/msgpack/pack_template.h" +) + +include_directories(include) +add_library(msgpack-c-static STATIC \${src}) +EOF |