From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 5BCJOPCo82BgNAAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 06:07:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sNKoM/Co82DFSQAAbx9fmQ (envelope-from ) for ; Sun, 18 Jul 2021 04:07:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 603701CB69 for ; Sun, 18 Jul 2021 06:07:12 +0200 (CEST) Received: from localhost ([::1]:56912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4y59-0008KJ-HR for larch@yhetil.org; Sun, 18 Jul 2021 00:07:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4y51-0008K7-D6 for guix-patches@gnu.org; Sun, 18 Jul 2021 00:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4y50-0006fx-NV for guix-patches@gnu.org; Sun, 18 Jul 2021 00:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4y50-00031Y-4k for guix-patches@gnu.org; Sun, 18 Jul 2021 00:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49616] [PATCH] gnu: go-1.16: Honor #:parallel-build? Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jul 2021 04:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49616 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49616@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162658117511561 (code B ref -1); Sun, 18 Jul 2021 04:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2021 04:06:15 +0000 Received: from localhost ([127.0.0.1]:55001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4y4F-00030P-G7 for submit@debbugs.gnu.org; Sun, 18 Jul 2021 00:06:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:44416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4y4A-00030E-3b for submit@debbugs.gnu.org; Sun, 18 Jul 2021 00:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4y49-0008Hn-OR for guix-patches@gnu.org; Sun, 18 Jul 2021 00:06:09 -0400 Received: from out0.migadu.com ([94.23.1.103]:10614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4y46-00063B-Gt for guix-patches@gnu.org; Sun, 18 Jul 2021 00:06:09 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1626581162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GNUs5ucqQEQcEUKzsRvNpgzsURZjJZpJswV0epxp9lM=; b=VkyT63Ti/MhY7lUocEo+gwLmbHDGFSQwLR2z7ZuZIy+XqLxnbOUNVG3GnPFinJ2eJDcyvC Bb61fgCVnUBl1dSZbGwNxzFjXg+IxmYQ6bgGaPXwVVByQrm9FbwpoynpVQDiAd76nSg40x UcQ0Ji/srgebOkQb0SvwPEtkoFWt860= Date: Sat, 17 Jul 2021 21:05:59 -0700 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: iskarian@mgsn.dev Received-SPF: pass client-ip=94.23.1.103; envelope-from=iskarian@mgsn.dev; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Sarah Morgensen X-ACL-Warn: , Sarah Morgensen via Guix-patches From: Sarah Morgensen via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626581232; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GNUs5ucqQEQcEUKzsRvNpgzsURZjJZpJswV0epxp9lM=; b=Xx8lujGDwghfdwAAL+P0ZlEfAiL5MCtO6CvuEgyT4a4dDRjoFn5e02ZTQ/f8Ua5nYlw1wS PiJXzIvaoHNzQNPZ80LXv1tZRnw2m2I58pGkXYiafacbbyH+7Y63uJzMfDBSGmRJq+1i1e 2tUuTY3t79p2di0r5qrXZkzbECQmNZkkvus9Q7pMzAYNA8cPgqXwhnCVZMM4DqKbsBq7ZM ibG9V5exKgKwVmrDYRN60//5Z0Mw9rC4iSkN0tzMi/dWDYftcrS2LU0h5jDkcVCfizclxC 2RUGsLKO/Zwwhb5ofKWffPDky+l2fiOCKyYELRWVFmDdqBqkxZqiu3M2dNVagA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626581232; a=rsa-sha256; cv=none; b=HRBXi9eE7okZN1nDn6W1IckwB7lLBcsokdMbFOi9AN59byuZrXtjDr+7dY29Y4WBJRqWBn GXbzJlLMbGrIJQt2V0uPtmeF10bleL8+BqCbvHYmoQE4pvZ7YNf6LebO0ZQvXrjgBSr7bj ppb+MH395MI99HFnXMFQROyQtiJ+IOjKTnDChPieaanwp9Dzakc74wgWNDeeJDPBpheElp txvKSNStY5ojr7PA6/zHEKepiNO0t0BpAVp6Wlmiyydw+ZDLbXImS1nBbWFqMVNC5aBf6R 7RJPlBP9OSFfpckL/jkqtn2+zOMO96yJGqK3/z7akaeCMzTRBhvLhTFNMP3eQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=VkyT63Ti; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=VkyT63Ti; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 603701CB69 X-Spam-Score: 2.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: CneN56LUjNne * gnu/packages/golang.scm (go-1.16)[arguments]<#:phases>{build}: Honor parallel-build? --- Does what it says on the tin. (Looks like I missed in the original go-1.16 submission.) gnu/packages/golang.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a830afa022..7bbd62f3cd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1513,10 +1513,12 @@ in the style of communicating sequential processes (@dfn{CSP}).") (substitute* "time/zoneinfo_unix.go" (("/usr/share/zoneinfo/") tzdata-path))))) (replace 'build - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs (parallel-build? #t) + #:allow-other-keys) ;; FIXME: Some of the .a files are not bit-reproducible. ;; (Is this still true?) - (let* ((output (assoc-ref outputs "out")) + (let* ((njobs (if parallel-build? (parallel-job-count) 1)) + (output (assoc-ref outputs "out")) (loader (string-append (assoc-ref inputs "libc") ,(glibc-dynamic-linker)))) (setenv "CC" (which "gcc")) @@ -1525,6 +1527,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (setenv "GOROOT" (dirname (getcwd))) (setenv "GOROOT_FINAL" output) (setenv "GOCACHE" "/tmp/go-cache") + (setenv "GOMAXPROCS" (number->string njobs)) (invoke "sh" "make.bash" "--no-banner")))) (replace 'check (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) base-commit: 9cb35c02164d929fcb8929e7f454df215df8cf25 -- 2.31.1