netdata compiles its own copy of SQLite 3.36.0 from June 2021 into the
daemon. Link the daemon against libsqlite3 instead, so that SQLite gets
its updates from the sqlite3 package.
On aarch64_generic the daemon shrinks from 2386355 to 1365700 bytes.
libsqlite3 has 1110402 bytes there, so an installation without it grows
by about 90 kB in total and one that already has it saves 1 MB.
The OpenWrt library is built without UPDATE and DELETE with LIMIT. The
only statement that needs it is in the cloud code, which the package
does not build, and the unit test skips its two LIMIT statements when
the library lacks the option.
Tested on aarch64 with libsqlite3 3.54.1: upgrade from the previous
release over an existing database, health log written and read back
after a restart, a streaming parent with one child and the built-in
unit tests.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
libmnl was added to DEPENDS with the update to 1.9.0. Its only user in
netdata is the nfacct plugin, which the package turns off with
--disable-plugin-nfacct since the update to 1.11.0.
None of the installed binaries link against libmnl. A build with libmnl
removed from the staging directory produces the same 445 files as
before, byte for byte.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The dashboard comes with 14 source map files that take 13.4 MB, which
is half of the installed size of the package. Only the developer tools
of a browser read them, the dashboard works without them.
On aarch64_generic the package shrinks from 8.0 MB to 4.5 MB and its
installed size from 26.9 MB to 13.4 MB.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Both issues are in the streaming receiver, which is disabled by default,
and both were fixed upstream in 1.37.0.
CVE-2023-22497 [1]: a parent accepted the MACHINE GUID of a child that
had connected before as an API key. Backport the upstream fix [2],
which gives every section of stream.conf a type. The GUID of a
connected child is now refused as an API key without any change to the
configuration. Sections that stream.conf holds for single machines
should get the new "type = machine" line. Without it such a section
still works as an API key as long as its machine has not connected.
CVE-2023-22496 [3]: the arguments of the alert notification command
were not sanitized, so a streaming child was able to change the command
that the parent runs. It also needs health to be enabled, which this
package turns off by default. Backport the upstream fix [4]. health.c
is ported by hand to the argument list of 1.33.1, and the sanitizing
function is taken from upstream master, where it was hardened later [5].
As in upstream, a leading dash is removed from every argument, '$' is
replaced by '_', and the script named by "exec" is quoted, so it can no
longer carry arguments of its own. An argument that contains an
apostrophe now reaches the notification script in one piece.
[1] https://nvd.nist.gov/vuln/detail/CVE-2023-22497
[2] https://github.com/netdata/netdata/commit/811028aea2
[3] https://nvd.nist.gov/vuln/detail/CVE-2023-22496
[4] https://github.com/netdata/netdata/commit/4de2ce54d5
[5] https://github.com/netdata/netdata/commit/3e508c8f95
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Generic version checks were introduced in actions-shared-workflows,
making these individual test.sh files obsolete.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.
Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.
Signed-off-by: Andre Heider <a.heider@gmail.com>
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.
Signed-off-by: Andre Heider <a.heider@gmail.com>
To avoid unnecessary dependency, let's disable it for now.
LZ4 can be also used for DB engine and HTTPS
Fixes:
Package netdata is missing dependencies for the following libraries:
liblz4.so.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
- Switch to upstream's release tarball
Requires to add PKG_BUILD_DIR since netdata is extracted to the folder
netdata-v1.33.1 instead of the previous solution where there was
missing v
- Disable anomaly detection by default
This avoids adding a new dependencies to netdata
Fixes:
Package netdata is missing dependencies for the following libraries:
libatomic.so.1
libstdc++.so.6
- Add FreeBSD patch to have smaller package and to avoid clutter in
WebUI
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
[add commit message, add FreeBSD patch]
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Fix log spam:
daemon.err netdata[2090]: PROCFILE: Cannot open file '/proc/sysvipc/shm'
This is caused by a non existant /proc/sysvipc/shm because of the
CONFIG_PROC_STRIPPED option that is enabled by default in the kernel
generic target config
Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
Disable ebpf plugin as in OpenWrt there is no package libbpf.
- With that, I need to introduce patch, which is not merged into netdata,
yet. Without it, I still got during cross-compilation this error:
checking for externaldeps/libbpf/libbpf.a... configure: error: cannot check for file existence when cross compiling
- And yes, the flag was there.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Update netdata to 1.22.1
Disable cloud functionality
Shoehorn patches from FreeBSD's ports repo
Remove cloud notifications and netdata's self-update feature
json-c is no longer optional
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
- Add libuv dependency which is now required. Otherwise during
compiling, I have received this error:
configure: error: libuv required but not found. Try installing 'libuv1-dev' or 'libuv-devel'.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Patch 002 - Force Python3 is no longer applying, let's try to throw it
away to see if it is still necessary
Patch 003 - Was backported from the master branch and it was included in
Netdata version 1.17.0
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Netdata adds optional libraries if found, add patch (PR#6658) to avoid pulling in unnecessary libraries.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Changes:
- added folder /etc/netdata/customs-plugins.d
which is set in netdata.conf as 2nd plugin directory
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Update netdata to 1.9.0
O3 optimization which is set as default by upstream
Remove myself as maintainer
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Update netdata to 1.8.0
Add back python modules, these are tweaked (modified) for netdata
Add additional flags to slim down the binary size
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Update netdata to 1.7.0
Update URL
Clean up some more stray image files (smaller package)
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* Update to 1.5.0
* Refresh patches
* Make config file more usable out of the box
* Adjust a few default settings
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* Change maintainer to myself, asked by current maintainer
* Remove atomic workaround, it's been fixed upstream in 1.4.0
* Install all plugins, disable those that depends on external applications
* Remove bundled pyYAML library, use package if you want to use python plugins
* Remove "unused" files in webdata directory, saves about 900k
Downside is that some _very_ old browsers might break however since netdata
is very heavy on javscript you still need a somewhat recent one anyway to get
a decent experience.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
The auto detection is a bit dodgy and sometimes fails to identify support, disable atomic instruction for now.
Fixes#3251 and bumps PKG_RELEASE
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>