Package Details: nomad 0.9.1-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: 15
Popularity: 0.523899
First Submitted: 2016-02-25 21:45
Last Updated: 2019-04-30 07:32

Latest Comments

1 2 Next › Last »

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!

grossws commented on 2017-06-22 14:20

It seems that `tree` should be added to build deps.

mtorromeo commented on 2017-01-07 09:54

What I was explaining in previous comments is that the version was never updated from rc1 to stable in the git repo.

Here you can see that it was only bumped less than 24h ago from 0.5.2-rc1 to 0.5.3-dev, with no stable version in between the two: https://github.com/hashicorp/nomad/commit/786a824b88188f2d1c98bc5c1365890929445259

Anyway, this is only cosmetic.