Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update pktvisor conan dependencies #717

Merged
merged 8 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ jobs:
runs-on: ubuntu-latest
outputs:
runner_token: ${{ steps.token.outputs.runner }}
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
if: false # This job will never run
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ jobs:
outputs:
runner_token: ${{ steps.token.outputs.runner }}
runner_label: ${{ env.RUNNER_LABEL }}
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
if: false # This job will never run
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
cc: x86_64-linux-musl-gcc
cxx: x86_64-linux-musl-g++
ldflags: "-static"
- arch: armv7lh # ARMv7 little-endian hard-float
conan_arch: armv7hf
toolchain: http://musl.cc/armv7l-linux-musleabihf-cross.tgz
cc: armv7l-linux-musleabihf-gcc
cxx: armv7l-linux-musleabihf-g++
# - arch: armv7lh # ARMv7 little-endian hard-float
# conan_arch: armv7hf
# toolchain: http://musl.cc/armv7l-linux-musleabihf-cross.tgz
# cc: armv7l-linux-musleabihf-gcc
# cxx: armv7l-linux-musleabihf-g++
- arch: aarch64
conan_arch: armv8
toolchain: http://musl.cc/aarch64-linux-musl-cross.tgz
Expand Down
24 changes: 12 additions & 12 deletions conanfile.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[requires]
catch2/3.5.0
catch2/3.6.0
corrade/2020.06
cpp-httplib/0.14.3
cpp-httplib/0.16.0
docopt.cpp/0.6.3
fast-cpp-csv-parser/cci.20211104
fast-cpp-csv-parser/cci.20240102
json-schema-validator/2.3.0
libmaxminddb/1.8.0
libmaxminddb/1.10.0
nlohmann_json/3.11.3
openssl/1.1.1w
opentelemetry-proto/1.0.0
openssl/3.3.1
opentelemetry-proto/1.3.0
pcapplusplus/23.09
protobuf/3.21.12
abseil/20240116.2
protobuf/5.27.0
sigslot/1.2.2
spdlog/1.12.0
uvw/3.2.0
spdlog/1.14.1
uvw/3.4.0
libpcap/1.10.4
yaml-cpp/0.8.0
robin-hood-hashing/3.11.5
libcurl/8.5.0
libcurl/8.9.1
crashpad/cci.20220219
zlib/[>=1.2.10 <1.3]

[tool_requires]
corrade/2020.06
protobuf/3.21.12
protobuf/5.27.0

[options]
pcapplusplus:immediate_mode=True
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ target_link_libraries(visor-core
rng
timer
opentelemetry_proto
${CONAN_LIBS_PROTOBUF}
${CONAN_LIBS_ABSEIL}
${CONAN_LIBS_LIBMAXMINDDB}
${CONAN_LIBS_CORRADE}
${CONAN_LIBS_SPDLOG}
${CONAN_LIBS_FMT}
${CONAN_LIBS_FAST-CPP-CSV-PARSER}
${CONAN_LIBS_YAML-CPP}
${CONAN_LIBS_OPENSSL}
${CONAN_LIBS_ZLIB}
${VISOR_STATIC_PLUGINS}
)

Expand Down
3 changes: 3 additions & 0 deletions src/Metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
#include <timer.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Woverflow"
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wrange-loop-analysis"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#include <cpc_sketch.hpp>
#include <frequent_items_sketch.hpp>
Expand Down
11 changes: 10 additions & 1 deletion src/OpenTelemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@
#pragma once

#include "HttpServer.h"
#include "opentelemetry/proto/collector/metrics/v1/metrics_service.pb.h"
#include <functional>
#include <timer.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Woverflow"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#include "opentelemetry/proto/collector/metrics/v1/metrics_service.pb.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

namespace visor {

Expand Down
1 change: 0 additions & 1 deletion src/handlers/dns/v1/DnsStreamHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "DnsStreamHandler.h"
#include "DnstapInputStream.h"
#include "HandlerModulePlugin.h"
#include "utils.h"
#include <Corrade/Utility/Debug.h>
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/dns/v1/DnsStreamHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#pragma once

#include "AbstractMetricsManager.h"
#include "DnstapInputStream.h"
#include "GeoDB.h"
#include "MockInputStream.h"
#include "PcapInputStream.h"
#include "StreamHandler.h"
#include "TransactionManager.h"
#include "dns.h"
#include "pb/dnstap.pb.h"
#include <Corrade/Utility/Debug.h>
#include <bitset>
#include <limits>
Expand Down
1 change: 0 additions & 1 deletion src/handlers/dns/v2/DnsStreamHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "DnsStreamHandler.h"
#include "DnstapInputStream.h"
#include "HandlerModulePlugin.h"
#include "utils.h"
#include <Corrade/Utility/Debug.h>
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/dns/v2/DnsStreamHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#pragma once

#include "AbstractMetricsManager.h"
#include "DnstapInputStream.h"
#include "GeoDB.h"
#include "MockInputStream.h"
#include "PcapInputStream.h"
#include "StreamHandler.h"
#include "TransactionManager.h"
#include "dns.h"
#include "pb/dnstap.pb.h"
#include <Corrade/Utility/Debug.h>
#include <bitset>
#include <limits>
Expand Down
1 change: 0 additions & 1 deletion src/inputs/dnstap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ target_link_libraries(VisorInputDnstap
${DNSTAP_ADDITIONAL_LIBS}
Visor::Core
Visor::Lib::Utils
${CONAN_LIBS_PROTOBUF}
${CONAN_LIBS_LIBUV}
${CONAN_LIBS_UVW}
)
Expand Down
4 changes: 3 additions & 1 deletion src/inputs/dnstap/DnstapInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
#include "UnixFrameSession.h"
#endif
#include "InputStream.h"
#include "pb/dnstap.pb.h"
#include "utils.h"
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Woverflow"
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#include "pb/dnstap.pb.h"
#include <pcapplusplus/DnsLayer.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop
Expand Down
Loading