Package Details: chronograf 1.10.0-1

Git Clone URL: https://aur.archlinux.org/chronograf.git (read-only, click to copy)
Package Base: chronograf
Description: Time-series data visualization tool for InfluxDB
Upstream URL: https://www.influxdata.com/time-series-platform/chronograf/
Licenses: AGPL
Submitter: justin8
Maintainer: alaskanarcher
Last Packager: gin078
Votes: 9
Popularity: 0.000000
First Submitted: 2015-11-24 20:57 (UTC)
Last Updated: 2022-08-25 13:48 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

alaskanarcher commented on 2017-12-01 02:54 (UTC) (edited on 2017-12-09 22:31 (UTC) by alaskanarcher)

@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 (UTC)

@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 (UTC) (edited on 2017-11-22 09:23 (UTC) by alaskanarcher)

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 (UTC)

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 ...`.

alaskanarcher commented on 2017-08-04 20:01 (UTC)

Not only is this out of date, but it breaks the convention for AUR packages to install from source. This should be named chronograf-bin.

butler360 commented on 2017-03-15 01:55 (UTC)

This is super out of date now, has the package been abandoned?

visibilityspots commented on 2016-08-31 19:09 (UTC)

just installed the package on a armv7h architecture, any possibility to add this to architecture to the pkgbuild file?

ogarcia commented on 2016-06-02 14:49 (UTC)

@cacack, you can use `systemd-sysusers` to create user, is more "elegant" than adduser/addgroup. This automagically checks for user and, if not exists, do create. In my repo https://git.connectical.com/aur/chronograf/src/master I have the line in post-install, but can be in post-upgrade.

cacack commented on 2016-06-02 13:52 (UTC)

Updated to 0.13. Refactored PKGBUILD based on few of @ogarcia's suggestions. The user/group creation only happens if they don't exist so no harm in running it after install or upgrade.

ogarcia commented on 2016-05-27 13:56 (UTC)

You must modify several things in you package. 1. The license not is MIT is an unknown closed license. (See https://influxdb.com/blog/2015/07/07/Announcing-Chronograf-a-data-visualization-tool-for-InfluxDB.html in "How will Chronograf be licensed?" section). 2. You not need define empty variables as depends or conflicts, you can delete these lines. 3. In the install scrip, not is necessary create group before create user. The adduser command make the work for you. And not is necessary do work in post_upgrade. Why try create user account after every upgrade? This not make sense. If you want you can use this: The PKGBUILD: https://git.connectical.com/aur/chronograf/src/master/PKGBUILD The install: https://git.connectical.com/aur/chronograf/src/master/chronograf.install Greetings :)