Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] netdata v1.37.1
@ 2022-12-14  6:36 realsn0w
  2022-12-14 13:40 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: realsn0w @ 2022-12-14  6:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

There is a new pull request by realsn0w against master on the void-packages repository

https://github.com/realsn0w/void-packages netdata-v1.37.1
https://github.com/void-linux/void-packages/pull/41076

netdata v1.37.1
#### Testing the changes
- I tested the changes in this PR: **YES** (on `x86_64` and `x86_64-musl`)

#### Local build testing
- I built this PR locally for my native architecture
  -  `x86_64{,-musl}`
- I built this PR locally for these architectures (all cross):
  - `i686`
  - `armv6l{,-musl}`
  - `armv7l{,-musl}`
  - `aarch64{,-musl}`

#### Notes

Nodejs subpackage got removed because upstream dropped `node.d` in 1.35 (following deprecation in 1.34).
Could be packaged separately using netdata's community repo but most likely not necessary anymore due to `go.d`.

`go.d` is packaged separately here because it looks to be an entirely separate project with it's own release cycle, only linked to the main netdata project through [this file](https://github.com/netdata/netdata/blob/v1.37/packaging/go.d.version). Assigned myself as the maintainer of `go.d` for now, though since it's somewhat tightly linked to netdata I'd be willing to either maintain netdata as well (i'm actively using it anyway) or hand go.d over to maldridge.
Also do let me know if this should be two PRs instead, wasn't really sure since the two templates are so close.

A patch file from https://github.com/void-linux/void-packages/pull/41076.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-netdata-v1.37.1-41076.patch --]
[-- Type: text/x-diff, Size: 4986 bytes --]

From 1c1136a48083fda319a3e11e739254a184f998a6 Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 02:17:12 +0100
Subject: [PATCH 1/2] netdata: update to 1.37.1

---
 srcpkgs/netdata-plugins-nodejs |  1 -
 srcpkgs/netdata/template       | 44 ++++++++++++++++++++--------------
 2 files changed, 26 insertions(+), 19 deletions(-)
 delete mode 120000 srcpkgs/netdata-plugins-nodejs

diff --git a/srcpkgs/netdata-plugins-nodejs b/srcpkgs/netdata-plugins-nodejs
deleted file mode 120000
index f0168c8f858a..000000000000
--- a/srcpkgs/netdata-plugins-nodejs
+++ /dev/null
@@ -1 +0,0 @@
-netdata
\ No newline at end of file
diff --git a/srcpkgs/netdata/template b/srcpkgs/netdata/template
index 06cab2f8c6a4..16e22b1c8e86 100644
--- a/srcpkgs/netdata/template
+++ b/srcpkgs/netdata/template
@@ -1,19 +1,24 @@
 # Template file for 'netdata'
 pkgname=netdata
-version=1.33.0
+version=1.37.1
 revision=1
 build_style=gnu-configure
-configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no"
-hostmakedepends="pkg-config autoconf automake"
+build_helper=qemu
+configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no
+ $(vopt_if cloud --enable-cloud --disable-cloud) $(vopt_if ipmi --enable-plugin-freeipmi)
+ $(vopt_if xen --enable-plugin-xenstat) $(vopt_if cups --enable-plugin-cups)"
+hostmakedepends="pkg-config autoconf automake $(vopt_if cloud "protobuf protobuf-devel")"
 makedepends="json-c-devel judy-devel libcap-devel liblz4-devel libmnl-devel
- libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel"
+ libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel
+ snappy-devel $(vopt_if cloud protobuf-devel) $(vopt_if ipmi freeipmi-devel)
+ $(vopt_if xen "xen-devel yajl-devel") $(vopt_if cups cups-devel)"
 depends="libcap-progs"
 short_desc="Real-time performance monitoring, done right"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.netdata.cloud/"
 distfiles="https://github.com/netdata/netdata/releases/download/v${version}/netdata-v${version}.tar.gz"
-checksum=d167d4b2d8529119fa4047ae40d22833dac9d360a6ed07c314ba313807c027eb
+checksum=2caa042d43ca61007a61294a5ececa037d83a1973bd38032233760341eb1706b
 python_version=3
 make_dirs="
  /var/lib/netdata          0755 _netdata _netdata
@@ -22,29 +27,32 @@ make_dirs="
  /var/log/netdata          0755 _netdata _netdata
 "
 
+build_options="cloud ipmi cups xen"
+desc_option_cloud="Enable support for netdata cloud"
+desc_option_ipmi="Enable IPMI plugin"
+desc_option_xen="Enable xenstat plugin"
+build_options_default="cloud"
+
 system_accounts="_netdata"
 conf_files="/etc/${pkgname}/*.conf"
 
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	CFLAGS+=" -DLINK_ATOMIC"
+	export LIBS="-latomic"
+fi
+
 pre_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		sed -i "s|	\$(builddir)/judyltablesgen\$(EXEEXT)|	qemu-${XBPS_TARGET_QEMU_MACHINE}-static \$(builddir)/judyltablesgen\$(EXEEXT)|g" Makefile.am
+	fi
+
 	autoreconf -ivf
 }
 
 post_install() {
 	vsv netdata
 	vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
-	if [ -n "$_without_node" ]; then
-		rm -rf ${DESTDIR}/usr/libexec/netdata/node.d
-		rm -rf ${DESTDIR}/usr/libexec/netdata/plugins.d/node.d.plugin
-	fi
-}
-
-netdata-plugins-nodejs_package() {
-	short_desc+=" - NodeJS Plugins"
-	depends="${sourcepkg}>=${version}_${revision} virtual?nodejs-runtime"
-	pkg_install() {
-		vmove usr/libexec/netdata/plugins.d/node.d.plugin
-		vmove usr/libexec/netdata/node.d
-	}
 }
 
 netdata-plugins-python_package() {

From f466835e13fd087e4b9142aff6298cf3ad5c7c5f Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 05:54:31 +0100
Subject: [PATCH 2/2] New package: netdata-plugins-go-0.45.0

---
 srcpkgs/netdata-plugins-go/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/netdata-plugins-go/template

diff --git a/srcpkgs/netdata-plugins-go/template b/srcpkgs/netdata-plugins-go/template
new file mode 100644
index 000000000000..cf0de06b10cf
--- /dev/null
+++ b/srcpkgs/netdata-plugins-go/template
@@ -0,0 +1,26 @@
+# Template file for 'netdata-plugins-go'
+pkgname=netdata-plugins-go
+version=0.45.0
+revision=1
+build_style=go
+go_import_path="github.com/netdata/go.d.plugin/cmd/godplugin"
+depends="netdata"
+short_desc="Netdata - Go Plugins"
+maintainer="sn0w <me@sn0w.cx>"
+license="GPL-3.0-or-later"
+homepage="https://www.netdata.cloud/"
+distfiles="https://github.com/netdata/go.d.plugin/archive/refs/tags/v${version}.tar.gz"
+checksum=7062325e73520c501cc8aac4b298dec2471109120b8bb92e442e9394b4365c3b
+
+do_install() {
+	vmkdir usr/lib/netdata/conf.d
+	vcopy config/go.d usr/lib/netdata/conf.d
+	vcopy config/go.d.conf usr/lib/netdata/conf.d
+
+	for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
+		if [ -f "$f" ] && [ -x "$f" ]; then
+			vinstall "$f" 755 usr/lib/netdata/plugins.d go.d.plugin
+			break
+		fi
+	done
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: netdata v1.37.1
  2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
@ 2022-12-14 13:40 ` leahneukirchen
  2022-12-14 13:42 ` leahneukirchen
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2022-12-14 13:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/41076#issuecomment-1351369697

Comment:
This doesn't use judy anymore?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: netdata v1.37.1
  2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
  2022-12-14 13:40 ` leahneukirchen
@ 2022-12-14 13:42 ` leahneukirchen
  2022-12-14 16:41 ` realsn0w
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2022-12-14 13:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/41076#issuecomment-1351369697

Comment:
This doesn't use judy anymore?

Looks like they vendored it (fine by me, they also maintain their own fork). Please remove `libjudy-devel` then.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: netdata v1.37.1
  2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
  2022-12-14 13:40 ` leahneukirchen
  2022-12-14 13:42 ` leahneukirchen
@ 2022-12-14 16:41 ` realsn0w
  2022-12-14 16:43 ` [PR PATCH] [Updated] " realsn0w
  2022-12-18 19:16 ` [PR PATCH] [Merged]: " leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: realsn0w @ 2022-12-14 16:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

New comment by realsn0w on void-packages repository

https://github.com/void-linux/void-packages/pull/41076#issuecomment-1351747809

Comment:
Ah right, forgot that one.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Updated] netdata v1.37.1
  2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
                   ` (2 preceding siblings ...)
  2022-12-14 16:41 ` realsn0w
@ 2022-12-14 16:43 ` realsn0w
  2022-12-18 19:16 ` [PR PATCH] [Merged]: " leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: realsn0w @ 2022-12-14 16:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

There is an updated pull request by realsn0w against master on the void-packages repository

https://github.com/realsn0w/void-packages netdata-v1.37.1
https://github.com/void-linux/void-packages/pull/41076

netdata v1.37.1
#### Testing the changes
- I tested the changes in this PR: **YES** (on `x86_64` and `x86_64-musl`)

#### Local build testing
- I built this PR locally for my native architecture
  -  `x86_64{,-musl}`
- I built this PR locally for these architectures (all cross):
  - `i686`
  - `armv6l{,-musl}`
  - `armv7l{,-musl}`
  - `aarch64{,-musl}`

#### Notes

Nodejs subpackage got removed because upstream dropped `node.d` in 1.35 (following deprecation in 1.34).
Could be packaged separately using netdata's community repo but most likely not necessary anymore due to `go.d`.

`go.d` is packaged separately here because it looks to be an entirely separate project with it's own release cycle, only linked to the main netdata project through [this file](https://github.com/netdata/netdata/blob/v1.37/packaging/go.d.version). Assigned myself as the maintainer of `go.d` for now, though since it's somewhat tightly linked to netdata I'd be willing to either maintain netdata as well (i'm actively using it anyway) or of course hand `go.d` over to maldridge.
Also do let me know if this should be two PRs instead, wasn't really sure since the two templates are so close.

A patch file from https://github.com/void-linux/void-packages/pull/41076.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-netdata-v1.37.1-41076.patch --]
[-- Type: text/x-diff, Size: 5052 bytes --]

From 8d5e27dfe7fccb4b70b804c6d431af8fe89378e8 Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 02:17:12 +0100
Subject: [PATCH 1/2] netdata: update to 1.37.1

---
 srcpkgs/netdata-plugins-nodejs |  1 -
 srcpkgs/netdata/template       | 46 ++++++++++++++++++++--------------
 2 files changed, 27 insertions(+), 20 deletions(-)
 delete mode 120000 srcpkgs/netdata-plugins-nodejs

diff --git a/srcpkgs/netdata-plugins-nodejs b/srcpkgs/netdata-plugins-nodejs
deleted file mode 120000
index f0168c8f858a..000000000000
--- a/srcpkgs/netdata-plugins-nodejs
+++ /dev/null
@@ -1 +0,0 @@
-netdata
\ No newline at end of file
diff --git a/srcpkgs/netdata/template b/srcpkgs/netdata/template
index 06cab2f8c6a4..18dbe4394a4e 100644
--- a/srcpkgs/netdata/template
+++ b/srcpkgs/netdata/template
@@ -1,19 +1,24 @@
 # Template file for 'netdata'
 pkgname=netdata
-version=1.33.0
+version=1.37.1
 revision=1
 build_style=gnu-configure
-configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no"
-hostmakedepends="pkg-config autoconf automake"
-makedepends="json-c-devel judy-devel libcap-devel liblz4-devel libmnl-devel
- libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel"
+build_helper=qemu
+configure_args="--with-user=_netdata ac_cv_file_externaldeps_libbpf_libbpf_a=no
+ $(vopt_if cloud --enable-cloud --disable-cloud) $(vopt_if ipmi --enable-plugin-freeipmi)
+ $(vopt_if xen --enable-plugin-xenstat) $(vopt_if cups --enable-plugin-cups)"
+hostmakedepends="pkg-config autoconf automake $(vopt_if cloud "protobuf protobuf-devel")"
+makedepends="json-c-devel libcap-devel liblz4-devel libmnl-devel
+ libnetfilter_acct-devel openssl-devel libuuid-devel libuv-devel zlib-devel
+ snappy-devel $(vopt_if cloud protobuf-devel) $(vopt_if ipmi freeipmi-devel)
+ $(vopt_if xen "xen-devel yajl-devel") $(vopt_if cups cups-devel)"
 depends="libcap-progs"
 short_desc="Real-time performance monitoring, done right"
 maintainer="Michael Aldridge <maldridge@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.netdata.cloud/"
 distfiles="https://github.com/netdata/netdata/releases/download/v${version}/netdata-v${version}.tar.gz"
-checksum=d167d4b2d8529119fa4047ae40d22833dac9d360a6ed07c314ba313807c027eb
+checksum=2caa042d43ca61007a61294a5ececa037d83a1973bd38032233760341eb1706b
 python_version=3
 make_dirs="
  /var/lib/netdata          0755 _netdata _netdata
@@ -22,29 +27,32 @@ make_dirs="
  /var/log/netdata          0755 _netdata _netdata
 "
 
+build_options="cloud ipmi cups xen"
+desc_option_cloud="Enable support for netdata cloud"
+desc_option_ipmi="Enable IPMI plugin"
+desc_option_xen="Enable xenstat plugin"
+build_options_default="cloud"
+
 system_accounts="_netdata"
 conf_files="/etc/${pkgname}/*.conf"
 
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	CFLAGS+=" -DLINK_ATOMIC"
+	export LIBS="-latomic"
+fi
+
 pre_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		sed -i "s|	\$(builddir)/judyltablesgen\$(EXEEXT)|	qemu-${XBPS_TARGET_QEMU_MACHINE}-static \$(builddir)/judyltablesgen\$(EXEEXT)|g" Makefile.am
+	fi
+
 	autoreconf -ivf
 }
 
 post_install() {
 	vsv netdata
 	vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
-	if [ -n "$_without_node" ]; then
-		rm -rf ${DESTDIR}/usr/libexec/netdata/node.d
-		rm -rf ${DESTDIR}/usr/libexec/netdata/plugins.d/node.d.plugin
-	fi
-}
-
-netdata-plugins-nodejs_package() {
-	short_desc+=" - NodeJS Plugins"
-	depends="${sourcepkg}>=${version}_${revision} virtual?nodejs-runtime"
-	pkg_install() {
-		vmove usr/libexec/netdata/plugins.d/node.d.plugin
-		vmove usr/libexec/netdata/node.d
-	}
 }
 
 netdata-plugins-python_package() {

From 9f06154e5b06f837fe6529a9b10e8929c411c611 Mon Sep 17 00:00:00 2001
From: sn0w <me@sn0w.cx>
Date: Wed, 14 Dec 2022 05:54:31 +0100
Subject: [PATCH 2/2] New package: netdata-plugins-go-0.45.0

---
 srcpkgs/netdata-plugins-go/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/netdata-plugins-go/template

diff --git a/srcpkgs/netdata-plugins-go/template b/srcpkgs/netdata-plugins-go/template
new file mode 100644
index 000000000000..cf0de06b10cf
--- /dev/null
+++ b/srcpkgs/netdata-plugins-go/template
@@ -0,0 +1,26 @@
+# Template file for 'netdata-plugins-go'
+pkgname=netdata-plugins-go
+version=0.45.0
+revision=1
+build_style=go
+go_import_path="github.com/netdata/go.d.plugin/cmd/godplugin"
+depends="netdata"
+short_desc="Netdata - Go Plugins"
+maintainer="sn0w <me@sn0w.cx>"
+license="GPL-3.0-or-later"
+homepage="https://www.netdata.cloud/"
+distfiles="https://github.com/netdata/go.d.plugin/archive/refs/tags/v${version}.tar.gz"
+checksum=7062325e73520c501cc8aac4b298dec2471109120b8bb92e442e9394b4365c3b
+
+do_install() {
+	vmkdir usr/lib/netdata/conf.d
+	vcopy config/go.d usr/lib/netdata/conf.d
+	vcopy config/go.d.conf usr/lib/netdata/conf.d
+
+	for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
+		if [ -f "$f" ] && [ -x "$f" ]; then
+			vinstall "$f" 755 usr/lib/netdata/plugins.d go.d.plugin
+			break
+		fi
+	done
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Merged]: netdata v1.37.1
  2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
                   ` (3 preceding siblings ...)
  2022-12-14 16:43 ` [PR PATCH] [Updated] " realsn0w
@ 2022-12-18 19:16 ` leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2022-12-18 19:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]

There's a merged pull request on the void-packages repository

netdata v1.37.1
https://github.com/void-linux/void-packages/pull/41076

Description:
#### Testing the changes
- I tested the changes in this PR: **YES** (on `x86_64` and `x86_64-musl`)

#### Local build testing
- I built this PR locally for my native architecture
  -  `x86_64{,-musl}`
- I built this PR locally for these architectures (all cross):
  - `i686`
  - `armv6l{,-musl}`
  - `armv7l{,-musl}`
  - `aarch64{,-musl}`

#### Notes

Nodejs subpackage got removed because upstream dropped `node.d` in 1.35 (following deprecation in 1.34).
Could be packaged separately using netdata's community repo but most likely not necessary anymore due to `go.d`.

`go.d` is packaged separately here because it looks to be an entirely separate project with it's own release cycle, only linked to the main netdata project through [this file](https://github.com/netdata/netdata/blob/v1.37/packaging/go.d.version). Assigned myself as the maintainer of `go.d` for now, though since it's somewhat tightly linked to netdata I'd be willing to either maintain netdata as well (i'm actively using it anyway) or of course hand `go.d` over to maldridge.
Also do let me know if this should be two PRs instead, wasn't really sure since the two templates are so close.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-18 19:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14  6:36 [PR PATCH] netdata v1.37.1 realsn0w
2022-12-14 13:40 ` leahneukirchen
2022-12-14 13:42 ` leahneukirchen
2022-12-14 16:41 ` realsn0w
2022-12-14 16:43 ` [PR PATCH] [Updated] " realsn0w
2022-12-18 19:16 ` [PR PATCH] [Merged]: " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).