Working on the Go package, I found that the grafting procedure fails in a way that I don't understand:
------ $ ./pre-inst-env guix build go@1.9 The following derivation will be built: /gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv @ build-started /gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv - x86_64-linux /var/log/guix/drvs/bv//30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv.bz2 grafting '/gnu/store/8zbi5rr5q2pxksfgpxq37m60nsa21d3v-go-1.9rc1-doc' -> '/gnu/store/6v24sf0b3hgyc80b4w2yvx1aw03zinw6-go-1.9rc1-doc'... grafting '/gnu/store/73fvsx0qizcrbajgjwn8mkzkpxa6abx4-go-1.9rc1' -> '/gnu/store/ghg75mjw3csiv9hf7q0cxrm1g0fx5d0k-go-1.9rc1'... ERROR: In procedure put-bytevector: Value out of range: 0 builder for `/gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv' failed with exit code 1 @ build-failed /gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv - 1 builder for `/gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/bv30jxzjl7c5z3hk6pmywpzwwrn1hq5m-go-1.9rc1.drv' failed ------ This doesn't happen with the previous release, go1.9beta2. For both releases, the ungrafted Go seems to work. I'll keep digging...
From 1bb9f5846bc530c210ed62e5578559578b939eed Mon Sep 17 00:00:00 2001 From: Leo Famulari <l...@famulari.name> Date: Fri, 14 Jul 2017 14:15:54 -0400 Subject: [PATCH 1/2] WIP: go: Update to 1.9beta2. * gnu/packages/golang.scm (go-1.8): Replace with ... (go-1.9): ... new variable. [arguments]: Adjust the pre-build phase accordingly. --- gnu/packages/golang.scm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 70cae6d87..a7facf4ed 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -199,11 +199,11 @@ garbage collection, various safety features and in the style of communicating sequential processes (CSP) concurrent programming features added.") (license license:bsd-3))) -(define-public go-1.8 +(define-public go-1.9 (package (inherit go-1.4) (name "go") - (version "1.8.3") + (version "1.9beta2") (source (origin (method url-fetch) @@ -211,7 +211,7 @@ sequential processes (CSP) concurrent programming features added.") name version ".src.tar.gz")) (sha256 (base32 - "19lzv4lqixj3v2gjaff0fdbbmgsq5r8lrfd61z2zvp778wjflpaz")))) + "1hx8vab9qbwpk75lfx1zvj9a6ssalp1hpa1pp0fyzcn3x4lip8ac")))) (arguments (substitute-keyword-arguments (package-arguments go-1.4) ((#:phases phases) @@ -242,7 +242,7 @@ sequential processes (CSP) concurrent programming features added.") ;; Add libgcc to runpath (substitute* "cmd/link/internal/ld/lib.go" (("!rpath.set") "true")) - (substitute* "cmd/go/build.go" + (substitute* "cmd/go/internal/work/build.go" (("cgoldflags := \\[\\]string\\{\\}") (string-append "cgoldflags := []string{" "\"-rpath=" gcclib "\"" @@ -265,7 +265,9 @@ sequential processes (CSP) concurrent programming features added.") (substitute* file ((regex all before test_name) (string-append before "Disabled" test_name))))) - '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") + '(;; See https://github.com/golang/go/commit/81ed9ca1d411f0bd8738ea60b3a8045446ad85fc + ("cmd/go/go_test.go" "(.+)(TestExecutableGOROOT.+)") + ("net/net_test.go" "(.+)(TestShutdownUnix.+)") ("net/dial_test.go" "(.+)(TestDialTimeout.+)") ("os/os_test.go" "(.+)(TestHostname.+)") ("time/format_test.go" "(.+)(TestParseInSydney.+)") @@ -366,4 +368,4 @@ sequential processes (CSP) concurrent programming features added.") `(("go" ,go-1.4) ,@(package-native-inputs go-1.4))))) -(define-public go go-1.8) +(define-public go go-1.9) -- 2.13.3
From ecff7bddcb63f0d03f0d319a2eddf5ab6db65198 Mon Sep 17 00:00:00 2001 From: Leo Famulari <l...@famulari.name> Date: Fri, 14 Jul 2017 14:15:54 -0400 Subject: [PATCH 2/2] WIP: go: Update to 1.9rc1. * gnu/packages/golang.scm (go-1.8): Replace with ... (go-1.9): ... new variable. [arguments]: Adjust the pre-build phase accordingly. --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a7facf4ed..7ed9cc750 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -203,7 +203,7 @@ sequential processes (CSP) concurrent programming features added.") (package (inherit go-1.4) (name "go") - (version "1.9beta2") + (version "1.9rc1") (source (origin (method url-fetch) @@ -211,7 +211,7 @@ sequential processes (CSP) concurrent programming features added.") name version ".src.tar.gz")) (sha256 (base32 - "1hx8vab9qbwpk75lfx1zvj9a6ssalp1hpa1pp0fyzcn3x4lip8ac")))) + "0bj5dcvhz48bf6704qhqnybf220kgqgi93x4mx1n3k30xac7awc7")))) (arguments (substitute-keyword-arguments (package-arguments go-1.4) ((#:phases phases) -- 2.13.3
signature.asc
Description: PGP signature