Github messages for voidlinux
 help / color / mirror / Atom feed
From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: nodejs: merge with nodejs-lts
Date: Tue, 07 Mar 2023 01:16:06 +0100	[thread overview]
Message-ID: <20230307001606.LE-ADIt3mxQwcOYlprTOillYMBxqw5GUnon-ur9rxFY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40106@inbox.vuxu.org>

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

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/40106#issuecomment-1457255826

Comment:
@paper42 I was able to build it with
```
diff --git a/srcpkgs/chronograf/template b/srcpkgs/chronograf/template
index 5dfcc1c3ef..087208b040 100644
--- a/srcpkgs/chronograf/template
+++ b/srcpkgs/chronograf/template
@@ -1,18 +1,18 @@
 # Template file for 'chronograf'
 pkgname=chronograf
-version=1.9.4
+version=1.10.0
 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
+checksum=4c9ec541a77314b11f23f2eff1394568ea9180f1f3cc3f098cb3e7977dbfd7a5
 
 system_accounts="_chronograf"
 _chronograf_homedir="/var/lib/${pkgname}"
@@ -23,13 +23,13 @@ case "$XBPS_TARGET_MACHINE" in
        ppc*) broken="ftbfs in some js module" ;;
 esac
 
-pre_build() {
-       cd $wrksrc/ui
-       yarn install
-       export PATH=$PATH:${wrksrc}/ui/node_modules/.bin
+do_build() {
+       go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" github.com/influxdata/chronograf
+       CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make 
+}
 
-       cd $wrksrc
-       make assets
+do_install() {
+       go install github.com/influxdata/chronograf/cmd/chronograf
 }
 
 post_install() {
```
cc mantainer @the-maldridge 
it may even build with nodejs 18 from #41239 , but I have not checked.

  parent reply	other threads:[~2023-03-07  0:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22 13:46 [PR PATCH] nodejs: update to 16.18.0, " paper42
2022-11-20 18:48 ` [PR PATCH] [Updated] " paper42
2022-11-25 20:21 ` nodejs: " leahneukirchen
2022-12-07  8:02 ` [PR PATCH] [Updated] " paper42
2022-12-15 17:12 ` akierig
2022-12-15 17:14 ` akierig
2022-12-15 19:11 ` [PR PATCH] [Updated] " paper42
2022-12-18 11:08 ` paper42
2023-02-04 16:36 ` dkwo
2023-02-04 17:07 ` paper42
2023-02-04 17:08 ` paper42
2023-02-04 17:43 ` dkwo
2023-03-01 20:22 ` paper42
2023-03-07  0:16 ` dkwo [this message]
2023-03-07  6:40 ` paper42
2023-03-07 16:50 ` dkwo
2023-05-16 14:41 ` dkwo
2023-06-02 19:18 ` [PR PATCH] [Updated] " paper42
2023-06-02 19:20 ` paper42
2023-06-03 19:47 ` paper42
2023-06-03 19:47 ` [PR PATCH] [Closed]: " 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=20230307001606.LE-ADIt3mxQwcOYlprTOillYMBxqw5GUnon-ur9rxFY@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).