From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] chronograf: update to 1.10.0, makedepends on nodejs, python3
Date: Thu, 11 May 2023 16:35:49 +0200 [thread overview]
Message-ID: <20230511143549.ULugr5ikWNEDi5kpj7gr2Vw6ApAgUgfJDIlvYAISLV0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42644@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages chron
https://github.com/void-linux/void-packages/pull/42644
chronograf: update to 1.10.0, makedepends on nodejs, python3
- I tested the changes in this PR: only with `XBPS_CHECK=yes`
- I built this PR locally for my native architecture, (`x86_64-musl`)
drop `nodejs-lts`, add `python3`, follow upstream's guideline to build
cc mantainer @the-maldridge
A patch file from https://github.com/void-linux/void-packages/pull/42644.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-chron-42644.patch --]
[-- Type: text/x-diff, Size: 6012 bytes --]
From e6eba7f021de471cecb84afe5717a7c8d4a93e0c Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Mon, 24 Apr 2023 11:45:46 -0400
Subject: [PATCH 1/2] chronograf: update to 1.10.1, makedepends on nodejs,
python3
---
srcpkgs/chronograf/template | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/chronograf/template b/srcpkgs/chronograf/template
index 01947c93feb7..8ee50a360b6e 100644
--- a/srcpkgs/chronograf/template
+++ b/srcpkgs/chronograf/template
@@ -1,35 +1,33 @@
# Template file for 'chronograf'
pkgname=chronograf
-version=1.9.4
-revision=2
+version=1.10.1
+revision=1
build_style=go
go_import_path="github.com/influxdata/${pkgname}"
go_package="${go_import_path}/cmd/chronograf"
go_ldflags="-X main.version=${version}"
-hostmakedepends="dep go-bindata nodejs-lts yarn"
+hostmakedepends="dep go-bindata nodejs yarn python3"
short_desc="Open source monitoring and visualization UI for the TICK stack"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="AGPL-3.0-or-later"
homepage="https://www.influxdata.com/time-series-platform/chronograf/"
-distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
-checksum=ff294f25a9de57140024b9953992c1a4d79ec88167ad28435645d888a0096c27
-
+changelog="https://raw.githubusercontent.com/influxdata/chronograf/master/CHANGELOG.md"
+distfiles="https://github.com/influxdata/chronograf/archive/${version}.tar.gz"
+checksum=d2fb4759f4f94d81dcde5c50fece46febd7f610ee7d9373fd000d7a9986a52d8
system_accounts="_chronograf"
_chronograf_homedir="/var/lib/${pkgname}"
make_dirs="${_chronograf_homedir} 0755 _chronograf _chronograf"
+# nocross="see https://github.com/nodejs/node-gyp/issues/2817"
case "$XBPS_TARGET_MACHINE" in
i686*) broken="yarn not available" ;;
ppc*) broken="ftbfs in some js module" ;;
+ aarch64*) export npm_config_arch=arm64 ;;
esac
pre_build() {
- cd $wrksrc/ui
- yarn install
- export PATH=$PATH:${wrksrc}/ui/node_modules/.bin
-
- cd $wrksrc
- make assets
+ CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets
+ # npm_config_target_arch=arm64 npm_config_target_platform=linux npm_config_target_libc=glibc
}
post_install() {
@@ -38,3 +36,4 @@ post_install() {
vmkdir usr/share/chronograf/
vcopy ${wrksrc}/${build_wrksrc}/canned usr/share/chronograf/canned
}
+
From c33953611717911bcdb9affbda3f500aeec0797c Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Tue, 9 May 2023 13:40:08 -0400
Subject: [PATCH 2/2] chronograf: experiment
---
srcpkgs/chronograf/patches/lmdb.patch | 11 +++++++++++
srcpkgs/chronograf/patches/lmdb2.patch | 11 +++++++++++
srcpkgs/chronograf/patches/noscripts.patch | 19 +++++++++++++++++++
srcpkgs/chronograf/template | 11 ++++++-----
4 files changed, 47 insertions(+), 5 deletions(-)
create mode 100644 srcpkgs/chronograf/patches/lmdb.patch
create mode 100644 srcpkgs/chronograf/patches/lmdb2.patch
create mode 100644 srcpkgs/chronograf/patches/noscripts.patch
diff --git a/srcpkgs/chronograf/patches/lmdb.patch b/srcpkgs/chronograf/patches/lmdb.patch
new file mode 100644
index 000000000000..50dad7564246
--- /dev/null
+++ b/srcpkgs/chronograf/patches/lmdb.patch
@@ -0,0 +1,11 @@
+--- a/ui/package.json 2023-05-11 09:48:30.474868174 -0400
++++ b/ui/package.json 2023-05-11 09:54:26.175543653 -0400
+@@ -163,5 +163,8 @@
+ "reselect": "^3.0.1",
+ "rome": "^2.1.22",
+ "uuid": "^3.2.1"
++ },
++ "resolutions": {
++ "lmdb": "^2.8.0"
+ }
+ }
diff --git a/srcpkgs/chronograf/patches/lmdb2.patch b/srcpkgs/chronograf/patches/lmdb2.patch
new file mode 100644
index 000000000000..f79ff3fb11ac
--- /dev/null
+++ b/srcpkgs/chronograf/patches/lmdb2.patch
@@ -0,0 +1,11 @@
+--- a/package.json 2023-05-11 10:30:54.448958871 -0400
++++ b/package.json 2023-05-11 10:31:44.786945716 -0400
+@@ -32,5 +32,8 @@
+ "process": "^0.11.10",
+ "querystring-es3": "^0.2.1",
+ "util": "^0.12.4"
++ },
++ "resolutions": {
++ "lmdb": "^2.8.0"
+ }
+ }
diff --git a/srcpkgs/chronograf/patches/noscripts.patch b/srcpkgs/chronograf/patches/noscripts.patch
new file mode 100644
index 000000000000..cd633de59cd9
--- /dev/null
+++ b/srcpkgs/chronograf/patches/noscripts.patch
@@ -0,0 +1,19 @@
+--- a/Makefile 2023-05-09 14:10:03.975291850 -0400
++++ b/Makefile 2023-05-09 14:13:17.400831107 -0400
+@@ -59,7 +59,7 @@
+ @touch .bindata
+
+ .jssrc: $(UISOURCES)
+- cd ui && yarn run clean && yarn run build
++ cd ui && yarn run clean && yarn --ignore-scripts run build
+ @touch .jssrc
+
+ dep: .jsdep .godep
+@@ -72,7 +72,7 @@
+ ifndef YARN
+ $(error Please install yarn 1.19.1+)
+ else
+- cd ui && yarn --no-progress --no-emoji
++ cd ui && yarn --no-progress --no-emoji --ignore-scripts
+ @touch .jsdep
+ endif
diff --git a/srcpkgs/chronograf/template b/srcpkgs/chronograf/template
index 8ee50a360b6e..3396750a3bd2 100644
--- a/srcpkgs/chronograf/template
+++ b/srcpkgs/chronograf/template
@@ -17,17 +17,19 @@ checksum=d2fb4759f4f94d81dcde5c50fece46febd7f610ee7d9373fd000d7a9986a52d8
system_accounts="_chronograf"
_chronograf_homedir="/var/lib/${pkgname}"
make_dirs="${_chronograf_homedir} 0755 _chronograf _chronograf"
-# nocross="see https://github.com/nodejs/node-gyp/issues/2817"
case "$XBPS_TARGET_MACHINE" in
i686*) broken="yarn not available" ;;
ppc*) broken="ftbfs in some js module" ;;
- aarch64*) export npm_config_arch=arm64 ;;
esac
pre_build() {
- CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets
- # npm_config_target_arch=arm64 npm_config_target_platform=linux npm_config_target_libc=glibc
+ export CFLAGS="$CFLAGS -fPIC"
+ export CXXFLAGS="$CXXFLAGS -fPIC"
+ # npm_config_target_arch=arm64
+ # export npm_config_target_platform=linux
+ # export npm_config_target_libc=musl
+ make .jsdep assets
}
post_install() {
@@ -36,4 +38,3 @@ post_install() {
vmkdir usr/share/chronograf/
vcopy ${wrksrc}/${build_wrksrc}/canned usr/share/chronograf/canned
}
-
next prev parent reply other threads:[~2023-05-11 14:35 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 16:49 [PR PATCH] " dkwo
2023-03-07 16:49 ` dkwo
2023-03-07 17:51 ` dkwo
2023-03-07 18:07 ` [PR PATCH] [Updated] " dkwo
2023-03-07 18:09 ` dkwo
2023-03-08 18:11 ` [PR REVIEW] " paper42
2023-03-08 21:23 ` dkwo
2023-03-08 21:24 ` dkwo
2023-03-09 18:57 ` paper42
2023-03-09 18:59 ` paper42
2023-03-09 18:59 ` paper42
2023-03-09 20:37 ` dkwo
2023-03-09 20:37 ` dkwo
2023-03-09 20:38 ` [PR PATCH] [Updated] " dkwo
2023-03-09 20:47 ` dkwo
2023-03-09 21:15 ` dkwo
2023-03-09 21:33 ` dkwo
2023-03-10 16:36 ` dkwo
2023-03-10 20:17 ` [PR PATCH] [Updated] " dkwo
2023-03-14 23:00 ` dkwo
2023-03-14 23:06 ` dkwo
2023-03-15 18:13 ` [PR PATCH] [Updated] " dkwo
2023-03-15 18:24 ` dkwo
2023-03-15 18:26 ` dkwo
2023-03-15 21:43 ` dkwo
2023-03-15 21:48 ` dkwo
2023-03-16 22:46 ` [PR PATCH] [Updated] " dkwo
2023-04-17 20:04 ` dkwo
2023-04-24 15:46 ` dkwo
2023-04-24 15:48 ` dkwo
2023-04-24 18:14 ` [PR PATCH] [Updated] " dkwo
2023-04-24 21:10 ` dkwo
2023-04-26 14:12 ` dkwo
2023-04-26 15:33 ` dkwo
2023-05-10 14:47 ` dkwo
2023-05-11 14:35 ` dkwo [this message]
2023-05-11 14:41 ` dkwo
2023-05-11 14:58 ` [PR PATCH] [Updated] " dkwo
2023-06-02 19:02 ` [PR PATCH] [Merged]: " paper42
2023-06-02 19:02 ` paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230511143549.ULugr5ikWNEDi5kpj7gr2Vw6ApAgUgfJDIlvYAISLV0@z \
--to=dkwo@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).