Date: Sat, 25 Nov 2017 20:50:05 +0200 From: Stefan Lambrev <cheffo@freebsd-bg.org> To: freebsd-ports@freebsd.org Subject: Re: Porting Chronograf to FreeBSD Message-ID: <CAHtsMQ1P9ZYTWtbSGXPsXSZWb76OZfbxB7KBB0uN8kzjK4%2B3Fg@mail.gmail.com> In-Reply-To: <CAHtsMQ14h4ZV1m6cNJhh7OBKE6X3YHtz90vDYgxKSbff9yGgUg@mail.gmail.com> References: <CAHtsMQ14h4ZV1m6cNJhh7OBKE6X3YHtz90vDYgxKSbff9yGgUg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I've got the port to a working state ( https://github.com/cheffo/FreeBSD-Ports/tree/master/net-mgmt/chronograf) make install/make package works but the issue with "yarm" is still there - this package manager download extra files during the build process. Funny it downloads and install node-sass as dev dependency inside the port dir, while npm from ports core dump and fails. The port is still not polished - the rc.d script for example and you cannot build package using poudriere, but it works ok with make and pkg. I have no idea how to make it work under poudriere at this moment, so if someone can help it will be great. On Fri, Nov 24, 2017 at 1:45 PM, Stefan Lambrev <cheffo@freebsd-bg.org> wrote: > Hi all, > > I'm trying to port Chronograf to FreeBSD (part of influxdb project). > > My current work is available here - https://github.com/cheffo/ > FreeBSD-Ports/tree/master/net-mgmt/chronograf (port is not polished - I > know) > > But I'm facing few issues which I do not know how to address. > > First issue is the building process which is not very tipical for Go > projects. > Before building it needs "yarn" to fetch additional packages - if someone > can help me get this done on the "fetch" phase of the port build I'll be > very greatful as I'm note very familiar with yarn. > > Basically this is how vendor's build process looks (short version): > > 1) cd ui && yarn --no-progress --no-emoji (fetches external archives - > does not work with poudriere) > 2) yar run build - no idea what this is doing :) > 3) go generate -x `find all .go files` - crazy > 3) go get -u go-bindata - I've put this currently as external build > dependency as it's already ported to FreeBSD, patched Makefile and just > skip this step so it's poudriere compatible > 4) go-bindata .. `find all gen.go files` > 5) go build > > I'm miserably failing on step 1 - tried --offline but no luck, also no > idea how to provide access for yarn to the archive fiels that are download > in dist (they got extracted from by the ports system) > > If there is a port that already solves those issues please point me to it > and I'll find out how to do it, otherwise I'm open to ideas :) > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHtsMQ1P9ZYTWtbSGXPsXSZWb76OZfbxB7KBB0uN8kzjK4%2B3Fg>