Package Details: chronograf 1.7.10-1

Git Clone URL: https://aur.archlinux.org/chronograf.git (read-only)
Package Base: chronograf
Description: Time-series data visualization tool for InfluxDB
Upstream URL: https://github.com/InfluxData/chronograf
Licenses: AGPL
Submitter: justin8
Maintainer: gin078 (alaskanarcher)
Last Packager: gin078
Votes: 7
Popularity: 1.050734
First Submitted: 2015-11-24 20:57
Last Updated: 2019-04-17 13:44

Latest Comments

1 2 Next › Last »

alaskanarcher commented on 2019-04-25 17:58

Actually the best way to build this is to not export the GOPATH at all as go will default to using modules outside of the GOPATH which will be entirely deprecated in the next few releases.

Ideally we would be using their official Makefile but there are a number of subtle issue with it that I'm working through.

arren commented on 2019-04-25 13:08

@gin078

You need to add GO111MODULE=on in build() function before go install... because chronograf now uses go modules. Have a look at the Makefile.

omgold commented on 2018-05-30 12:04

go-bindata should be added as builddep

alaskanarcher commented on 2018-03-17 01:12

This package now installs the canned dashboards that ship with chronograf. They are installed to /usr/share/chronograf/canned/.

alaskanarcher commented on 2018-02-28 03:37

@gin078

I started building package I maintain in a clean chroot and found that python2 is required in the build process so I added it to the build dependencies. Just a heads up.

alaskanarcher commented on 2017-12-28 03:26

The update to 1.4.0.0 corrects the issues with the PKGBUILD that were described in my previous comment below.

I also removed the unset LDFLAGS line in build() as this was a workaround for a build issue that has now been fixed upstream.

alaskanarcher commented on 2017-12-01 02:54

@gin078

A few issues:

  • This PKGBUILD does not specify a source array and instead uses go get to install the necessary source repo. As a result this doesn't allow makepkg to check out the proper version. So regardless of the pkgver this installs the bleeding edge git version. If that is your intention the pkgname should be chronograf-git. Otherwise you should use a source array like this instead: source=("git+https://github.com/influxdata/chronograf#tag=$pkgver")

  • The systemd service assumes there will be a user named "chronograf". Without this user the service fails to start. The canonical way to create a system user is using systemd-sysusers. See man sysusers.d. Also check out how the other InfluxData AUR packages handle this.

  • It is not necessary to specify dependencies that are in the 'base' group. That dependency is assumed, and the 'base-devel' group is assumed during build. So it is not useful to specify the 'glibc' dependency.

I have published fixes for the above here: https://github.com/AdamSLevy/chronograf-pkgbuild/tree/develop Please feel free to pull these changes.

I'm interested in being a co-maintainer, so if you would like some help with this package, please add me.

alaskanarcher commented on 2017-11-30 23:29

@gin078,

Thank you for the quick fix. InfluxData is now aware of this issue and a fix has been proposed.

https://github.com/influxdata/chronograf/issues/2404

alaskanarcher commented on 2017-11-22 07:05

I get the following error early during build().

error /home/user/influx-pkgs/chronograf/src/src/github.com/influxdata/chronograf/ui/node_modules/node-sass: Command failed.
Exit code: 1

I get a lot more output as well which you can read here:
https://pastebin.com/CKT2eWZ1

I'm investigating the issue and will comment back when I know more.

Update:
I suspected this was due to some environment variables that makepkg was setting. The error occurs when invoking make with the environment that makepkg sets up:

COMMAND_MODE=legacy CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-pl" CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" GOPATH=/home/user/influx-pkgs/chronograf/src TEXTDOMAINDIR=/usr/share/locale TEXTDOMAIN=pacman-scripts CHOST=x86_64-pc-linux-gnu CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/user/influx-pkgs/chronograf/src/bin make

but it builds fine when I just use the correct PATH and GOPATH variables:
GOPATH=/home/user/influx-pkgs/chronograf/src PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/user/influx-pkgs/chronograf/src/bin make

I'm working on narrowing this down to the variable that is the culprit.

Update 2:
I narrowed the culprit down to the LDFLAGS environment variable.

Update 3:
If LDFLAGS is exported at all then the build fails. Please add
unset LDFLAGS
before running make.

petrosagg commented on 2017-08-14 01:11

The PKGBUILD is broken and it only works if GOPATH is already set by the user. In the PKGBUILD you either have to `export GOPATH=${srcdir}` or prefix the Go commands with it `GOPATH=${srcdir} /usr/bin/go get ...`.