From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Grafting fails for latest Go release candidate Date: Mon, 31 Jul 2017 10:39:25 -0400 Message-ID: <20170731143925.GA19814@jasmine.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5I6of5zJg18YgZEa" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcBr3-0001FX-QK for guix-devel@gnu.org; Mon, 31 Jul 2017 10:39:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcBqx-0002us-DU for guix-devel@gnu.org; Mon, 31 Jul 2017 10:39:33 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34135) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcBqx-0002uZ-62 for guix-devel@gnu.org; Mon, 31 Jul 2017 10:39:27 -0400 Received: from localhost (c-73-165-108-70.hsd1.pa.comcast.net [73.165.108.70]) by mail.messagingengine.com (Postfix) with ESMTPA id 34EC024969 for ; Mon, 31 Jul 2017 10:39:26 -0400 (EDT) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --5I6of5zJg18YgZEa Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB" Content-Disposition: inline --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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... --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-WIP-go-Update-to-1.9beta2.patch" Content-Transfer-Encoding: quoted-printable =46rom 1bb9f5846bc530c210ed62e5578559578b939eed Mon Sep 17 00:00:00 2001 =46rom: Leo Famulari 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 th= e style of communicating sequential processes (CSP) concurrent programming features added.") (license license:bsd-3))) =20 -(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 featu= res 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 featu= res 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 :=3D \\[\\]string\\{\\}") (string-append "cgoldflags :=3D []string{" "\"-rpath=3D" gcclib "\"" @@ -265,7 +265,9 @@ sequential processes (CSP) concurrent programming featu= res 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/81ed9ca1d41= 1f0bd8738ea60b3a8045446ad85fc + ("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 featu= res added.") `(("go" ,go-1.4) ,@(package-native-inputs go-1.4))))) =20 -(define-public go go-1.8) +(define-public go go-1.9) --=20 2.13.3 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0002-WIP-go-Update-to-1.9rc1.patch" Content-Transfer-Encoding: quoted-printable =46rom ecff7bddcb63f0d03f0d319a2eddf5ab6db65198 Mon Sep 17 00:00:00 2001 =46rom: Leo Famulari 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 featu= res 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 featu= res added.") name version ".src.tar.gz")) (sha256 (base32 - "1hx8vab9qbwpk75lfx1zvj9a6ssalp1hpa1pp0fyzcn3x4lip8ac")))) + "0bj5dcvhz48bf6704qhqnybf220kgqgi93x4mx1n3k30xac7awc7")))) (arguments (substitute-keyword-arguments (package-arguments go-1.4) ((#:phases phases) --=20 2.13.3 --DocE+STaALJfprDB-- --5I6of5zJg18YgZEa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAll/QR0ACgkQJkb6MLrK fwiRGw//eZkQMNSypIxZxwxZSlXnXosA47Uh9NsEAbvpAck1zlU/TI88WIQtnXnr B4P/zocQC/P2g9ilxV5hGgFOMyWJ5HWXMSas/e4ra4e6FBhTTWSNx5OQdnUxVQq9 3jan5SlVNmHlEqIODAALxd8pWnQGc+/iYvwFNVZOAMwBvJLDbgPpwGlVkH+Xp9P7 WlBuqjv4pgW7fCxTylRiD+UgQIkl6xzLAy0Yw2wjUMpObPdaO96nLOprlf173nH0 XJrrZcTrAg8KQwgZvmZH4NDoR0U9bG8/hhvs2QBihyH34157PFjmAS+NrNJ2z7Fy gfTeRDcP/POt0zBxzAfPBlm5rKIcUsJseo8NuN4lRYTmAoVMNpLj+Z5ap0oUwCYB bfCtdppspxZu1EqUetngvc7GUNp07WheIpaWFYLp/O5f1Ta8dO6WSoLzyuHexHPF NJnTYA5nh4hEkaCJY+CVuvUfdS11GCu/oGj6SvqDc0lcKAtK0Uzf/t2JX7frYKeM /USACyxGNVZR6z95wm6kwuE0/lE4UPJ08YzXYLbNE18jeIjKlQAQawVy12UcDA7p 4a22NdHE7O+DVa9FJZEgPW3cmAmyklEWaNaNzM5dw42HoPVhn3Kfy0ICqlI5xKav tG3M4K7ulWHOyBlL+SdCROahfmZk6PywhRCo7IKQ2rhhLMjF1ts= =MVZ5 -----END PGP SIGNATURE----- --5I6of5zJg18YgZEa--