From: lotheac <lotheac@users.noreply.github.com> To: ml@inbox.vuxu.org Subject: Re: [PR PATCH] [Updated] grafana: update to 8.3.3 Date: Wed, 12 Jan 2022 07:01:58 +0100 [thread overview] Message-ID: <20220112060158.2U2BDNjeVERACjFXCzPeAmdvl7e09iwyjRHva1lX55U@z> (raw) In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34705@inbox.vuxu.org> [-- Attachment #1: Type: text/plain, Size: 618 bytes --] There is an updated pull request by lotheac against master on the void-packages repository https://github.com/lotheac/void-packages grafana-7.3.8 https://github.com/void-linux/void-packages/pull/34705 grafana: update to 8.3.3 switch to using prebuilt js files, dropping the node build requirement. also fix the baked-in version numbers in the binaries. #### Testing the changes - I tested the changes in this PR: **YES** #### Local build testing - I built this PR locally for my native architecture, x86_64 (musl) A patch file from https://github.com/void-linux/void-packages/pull/34705.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-grafana-7.3.8-34705.patch --] [-- Type: text/x-diff, Size: 2420 bytes --] From ffcb0247027d9d292e3e085494a999fd5d6ced18 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen <lauri@hacktheplanet.fi> Date: Sun, 26 Dec 2021 15:08:01 +0200 Subject: [PATCH] grafana: update to 8.3.3 switch to using prebuilt js files, dropping the node build requirement. also fix the baked-in version numbers in the binaries. --- srcpkgs/grafana/template | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/srcpkgs/grafana/template b/srcpkgs/grafana/template index ce65acaf7850..2636bceb76a9 100644 --- a/srcpkgs/grafana/template +++ b/srcpkgs/grafana/template @@ -1,17 +1,19 @@ # Template file for 'grafana' pkgname=grafana -version=7.1.5 -revision=2 +version=8.3.3 +revision=1 build_style=go go_import_path=github.com/grafana/grafana go_package="${go_import_path}/pkg/cmd/grafana-cli ${go_import_path}/pkg/cmd/grafana-server" -hostmakedepends="nodejs-lts tar yarn" +hostmakedepends="tar make" short_desc="Open platform for beautiful analytics and monitoring" maintainer="Michael Aldridge <maldridge@voidlinux.org>" license="Apache-2.0" homepage="https://grafana.com" -distfiles="https://github.com/grafana/grafana/archive/v${version}.tar.gz" -checksum=7ae69011674a5b6a792e8ec84c93e8be9d50ad2e995cc63f3508d0b2e7acb754 +distfiles="https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz +https://github.com/grafana/grafana/archive/v${version}.tar.gz" +checksum="89428c520e004bcb9faf7618dd4c81ff62496064cbf2ead3e1b9dbcf476c6f18 +c79e19f056b9c2fc6d29c622edfaf8aff4985cec28ea6a9e74dce5eac077e735" system_accounts="_grafana" _grafana_homedir="/var/lib/grafana" @@ -19,17 +21,25 @@ make_dirs="/var/log/grafana 0755 _grafana _grafana" conf_files="/etc/grafana/grafana.ini" -case "$XBPS_TARGET_MACHINE" in - i686*) broken="yarn can't be built for i686" ;; - ppc*) broken="fails to build v8 in a dependency" ;; -esac +go_ldflags="-w -X main.version=${version}" + +post_extract() { + # remove prebuilt binaries + rm bin/* +} pre_build() { - yarn install --pure-lockfile + CGO_ENABLED=0 GOARCH= make gen-go } -post_build() { - yarn run build +do_install() { + # only install grafana binaries - GOPATH/bin contains eg. wire used at + # buildtime, which we don't want in the package + for f in ${GOPATH}/bin/grafana-* ${GOPATH}/bin/*/grafana-*; do + if [ -f "$f" ] && [ -x "$f" ]; then + vbin "$f" + fi + done } post_install() {
next prev parent reply other threads:[~2022-01-12 6:01 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-26 14:10 [PR PATCH] grafana: update to 7.3.8 & fix baked-in version lotheac 2022-01-11 7:18 ` lotheac 2022-01-11 7:20 ` the-maldridge 2022-01-11 7:22 ` lotheac 2022-01-11 7:24 ` the-maldridge 2022-01-11 7:40 ` lotheac 2022-01-11 7:41 ` the-maldridge 2022-01-11 9:35 ` [PR PATCH] [Updated] " lotheac 2022-01-11 9:37 ` grafana: update to 8.3.3 lotheac 2022-01-11 10:00 ` lotheac 2022-01-11 16:00 ` [PR PATCH] [Updated] " lotheac 2022-01-11 16:02 ` lotheac 2022-01-11 16:16 ` the-maldridge 2022-01-11 16:58 ` [PR PATCH] [Updated] " lotheac 2022-01-11 17:00 ` lotheac 2022-01-11 17:04 ` lotheac 2022-01-11 17:24 ` [PR PATCH] [Updated] " lotheac 2022-01-11 17:25 ` lotheac 2022-01-12 2:06 ` the-maldridge 2022-01-12 6:01 ` lotheac [this message] 2022-01-12 6:02 ` lotheac 2022-01-13 5:09 ` [PR PATCH] [Closed]: " the-maldridge
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=20220112060158.2U2BDNjeVERACjFXCzPeAmdvl7e09iwyjRHva1lX55U@z \ --to=lotheac@users.noreply.github.com \ --cc=ml@inbox.vuxu.org \ --subject='Re: [PR PATCH] [Updated] grafana: update to 8.3.3' \ /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
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).