* detect the system ca bundle at runtime
* minor fix
* fix for older libcurl versions
* added X509_get_default_cert_file()
* added validation for the certificates
* moved ssl/curl code to separate file; now it configured both libcurl and openssl; added defaults to libcurl static install
* run the new code only in netdata static builds
* auto to check
* disable runtime ssl checks
(cherry picked from commit 3e15a013d0)
* Switch to tonistiigi/binfmt for cross-build emulation.
It’s actually being actively updated, and it also supports hosts other
than x86-64.
* Auto-detect existing QEMU user emulation in static build.
Instead of relying on the user to explicitly ask for no emulation.
(cherry picked from commit f5da1f0bf3)
* compile time and runtime check of required compiler flags
* added compiler flags in buildinfo
* added basic runtime information in buildinfo
* check for -fexceptions
(cherry picked from commit 1138bde50e)
* Fix up handling of libunwind in CMake.
- Fix the questionable default handling of CMAKE_SYSTEM_PROCESSOR so
that it reliably reflects the target architecture.
- Add a case for handling 32-bit x86 builds with libunwind.
- Tweak the match cases for the various architectures to be more
reliable.
* Fix libbpf usage of CMAKE_SYSTEM_PROCESSOR.
* Revert "Enable libunwind in Docker images. (#19409)"
This reverts commit 361f6d2563.
* Revert "Enable libunwind in DEB native packages. (#19417)"
This reverts commit 3d09660c48.
* hostnames: convert to utf8 and santitize
* add windows version of the hostname
* fix warnings on windows
* fix freebsd
* disable iconv on posix systems
* Query systemd for unit file paths on install/uninstall.
This makes our installation code more portable and more concise, and
should make the uninstallation code significantly more robust.
Also includes a number of other improvements to systemd handling and
updater handling in the uninstaller that should make it much more
thorough and reliable.
* Fix issues brought up in code review, and better support old systemd versions.
* Replace sed with AWK for readability.
* Fix uninstaller loop.
* Fix unit file detection in updater code.
- Account for Debian/Ubuntu still not including sbin directories in user
$PATH.
- Report an inability to detect netdatacli location instead of trying to
invoke an empty string when claiming.
* annotate logs with stack trace when libunwind is available
* Update CMakeLists.txt
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
* fix error when libunwind is not available
---------
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Assorted systemd detection fixes:
- Properly scope `set -e` changes to only affect `systemctl
is-system-running` invocation.
- Skip checking for hard-coded unit file paths. Other paths may
technically be used for unit files instead of what we hard-code, and
the presence or abscence of any specific unit file path _does not_
reliably indicate the presence or abscence of systemd.
* Add option to updater to report status of auto-updates on the system.
* Improve systemd detection.
The _official_ way to check if a system is running systemd is to call
`systemctl is-system-running` and check the output. This adds that
checking to places where we are otherwise looking for systemd.
* Remove pointless subshell.