Package Details: nomad 0.9.3-1

Git Clone URL: https://aur.archlinux.org/nomad.git (read-only)
Package Base: nomad
Description: A Distributed, Highly Available, Datacenter-Aware Scheduler
Upstream URL: https://www.nomadproject.io/
Licenses: MPL
Submitter: mtorromeo
Maintainer: mtorromeo
Last Packager: mtorromeo
Votes: 16
Popularity: 0.695051
First Submitted: 2016-02-25 21:45
Last Updated: 2019-07-03 09:20

Latest Comments

1 2 Next › Last »

leothrix commented on 2019-07-02 04:51

The recent hook-related build failures are likely due to the fact that this package fetches a release tarball and not the complete repository and related files. I'm currently using the following patch, which permits this to build.

diff --git a/PKGBUILD b/PKGBUILD
index [`e13984b`](https://aur.archlinux.org/cgit/aur.git/commit/?h=nomad&id=e13984b)..f61d309 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -41,7 +41,7 @@ prepare() {

        go get golang.org/x/sys/cpu

-       make bootstrap
+       make deps lint-deps
        mkdir -p bin
 }

xuanwo commented on 2019-06-12 06:51

nomad built failed in recent update:

==> Updating build dependencies...
go get -u github.com/kardianos/govendor
go get -u github.com/hashicorp/go-bindata/go-bindata
go get -u github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
go get -u github.com/a8m/tree/cmd/tree
go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
go get -u gotest.tools/gotestsum
Installing codec/codecgen@0053ebfd9d0ee06ccefbfe17072021e1d4acebee ...
fatal: cannot change to '/build/nomad/src/src/github.com/ugorji/go/codec': No such file or directory
Installing protobuf/protoc-gen-go@v1.2.0 ...
fatal: cannot change to '/build/nomad/src/src/github.com/golang/protobuf': No such file or directory
==> Updating linter dependencies...
go get -u github.com/alecthomas/gometalinter
gometalinter --install
Installing:
  deadcode
  dupl
  errcheck
  gochecknoglobals
  gochecknoinits
  goconst
  gocyclo
  goimports
  golint
  gosec
  gotype
  gotypex
  ineffassign
  interfacer
  lll
  maligned
  misspell
  nakedret
  safesql
  staticcheck
  structcheck
  unconvert
  unparam
  varcheck
cp dev/hooks/pre-push /hooks/pre-push
cp: cannot create regular file '/hooks/pre-push': No such file or directory
make: *** [GNUmakefile:160: /hooks/pre-push] Error 1
 [1m [31m==> ERROR: (B [m [1m A failure occurred in prepare(). (B [m
 [1m    Aborting... (B [m
 [1m [31m==> ERROR: (B [m [1m Build failed, check /var/lib/archbuild/extra-x86_64/lilydjwg/build (B [m

bruno.unna commented on 2019-03-15 11:25

I have created a patch that seems to fix the issue I reported yesterday:

diff --git a/PKGBUILD b/PKGBUILD
index 1ef58da..fa12719 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=nomad
 pkgver=0.8.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler"
 arch=('i686' 'x86_64')
 url="https://www.nomadproject.io/"
@@ -18,14 +18,16 @@ backup=(etc/nomad/{server,client}.conf)
 source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz
         nomad-{server,client}.{service,conf}
         lxc-version-check.patch
-               golang-crypto.patch)
+               golang-crypto.patch
+               container.patch)
 sha256sums=('f74eac627de69190e586358b1956573a0ae1a40d0755ecdee163016949f9c7fe'
             '52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206'
             'da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714'
             '4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb'
             'ba80943ac42e617627c7e14be402078199ddba8d7e4276d67f0c9f6e6842d4a8'
             '740cf838f4489b00fab8329c81ba21b1fae02e584d8fac2b5f88eeec76e4e62f'
-            '75583a195b43d7345449bbac60359bf54661ccbd699386a6e59bb483c6054338')
+            '75583a195b43d7345449bbac60359bf54661ccbd699386a6e59bb483c6054338'
+           'd7f483250456cb7b92a437661999786b7295628fc09e1a3b0769606902d82ef0')

 prepare() {
        mkdir -p src/github.com/hashicorp
@@ -54,6 +56,10 @@ prepare() {

        pushd vendor/golang.org/x/crypto
        patch -p1 -i "$srcdir"/golang-crypto.patch
+       popd
+
+       pushd vendor/gopkg.in/lxc/go-lxc.v2
+       patch -p0 -i "$srcdir"/container.patch
 }

 build() {
diff --git a/container.patch b/container.patch
new file mode 100644
index 0000000..228f3d1
--- /dev/null
+++ b/container.patch
@@ -0,0 +1,11 @@
+--- ../../../../../nomad-0.8.7.orig/vendor/gopkg.in/lxc/go-lxc.v2/container.go 2019-03-15 09:59:16.230241650 +0000
++++ container.go       2019-03-15 10:00:22.343574744 +0000
+@@ -767,7 +767,7 @@
+       c.mu.RLock()
+       defer c.mu.RUnlock()
+ 
+-      var keys *_Ctype_char
++      var keys *C.char
+ 
+       if key != nil && len(key) == 1 {
+               ckey := C.CString(key[0])

Please validate and if it seems correct, feel free to use it.

bruno.unna commented on 2019-03-14 15:44

Hi all. I've built this package in the past (weeks ago, very same version). I'm doing it again, but now it's failing with:

...
patching file blake2b/blake2b_amd64.go
patching file blake2b/blake2b_amd64.s
==> Starting build()...
# github.com/hashicorp/nomad/vendor/gopkg.in/lxc/go-lxc.v2
vendor/gopkg.in/lxc/go-lxc.v2/container.go:770:12: identifier "_Ctype_char" may conflict with identifiers generated by cgo
==> ERROR: A failure occurred in build().
    Aborting...

The machine is newly installed. go was installed as a dependency of this build process. Any logs/versions/output of commands is available on request.

I'm a bit lost, really. Ideas and pointers will be greatly appreciated. Thanks in advance.

leothrix commented on 2019-02-12 04:48

I've been using nomad with success on a few ARM architectures - could we get the following architectures added to arch=() and the $CARCH conditionals updated in the PKGBUILD?

  • armv7h
  • aarch64

leothrix commented on 2018-07-29 17:11

The bump to 0.8.4 seems to have changed something with the build process, because now the binary doesn't show the UI anymore when trying to view :4646/ui:

Nomad UI is not available in this binary.

You can check the complete output by running the binary and browsing :4646, but it suggests either using make release, an official binary release, or make dev-ui. Not sure what the best approach to fixing it may be (either tweaking the go compilation command or using make release and grabbing the compilation artifact instead).

mtorromeo commented on 2018-07-11 11:25

Applied patch to fix the build

Svenstaro commented on 2018-07-09 18:30

Seems to be broken right now:

In file included from vendor/gopkg.in/lxc/go-lxc.v2/container.go:11: ./lxc-binding.h:76:8: error: redefinition of 'struct migrate_opts' struct migrate_opts { ^~~~~~~~~~~~

jshuping commented on 2017-09-11 15:40

They've changed the build logic in 0.6.2, there is no longer a build.sh.

==> Extracting sources...
-> Extracting nomad-0.6.2.tar.gz with bsdtar
==> Starting prepare()...
sed: can't read scripts/build.sh: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...

thaewrapt commented on 2017-07-03 14:59

Works like charm w/o 'tree' now, thanks!