From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yEqQEeUG5GDa0wAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 09:31:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2KA4DeUG5GBRcAAA1q6Kng (envelope-from ) for ; Tue, 06 Jul 2021 07:31:49 +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 D84E125565 for ; Tue, 6 Jul 2021 09:31:48 +0200 (CEST) Received: from localhost ([::1]:42454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0fYZ-0008Fq-3T for larch@yhetil.org; Tue, 06 Jul 2021 03:31:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0fXq-0008AS-T2 for guix-patches@gnu.org; Tue, 06 Jul 2021 03:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0fXq-0002yq-Hy for guix-patches@gnu.org; Tue, 06 Jul 2021 03:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0fXq-0005Wu-9K for guix-patches@gnu.org; Tue, 06 Jul 2021 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49432] [PATCH] gnu: gccgo: Override empty GOROOT/GCCGOTOOLDIR Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Jul 2021 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49432 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49432@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162555665021235 (code B ref -1); Tue, 06 Jul 2021 07:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jul 2021 07:30:50 +0000 Received: from localhost ([127.0.0.1]:47166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0fXe-0005WR-GX for submit@debbugs.gnu.org; Tue, 06 Jul 2021 03:30:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:57614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0fXc-0005WH-3r for submit@debbugs.gnu.org; Tue, 06 Jul 2021 03:30:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0fXb-0007kJ-HG for guix-patches@gnu.org; Tue, 06 Jul 2021 03:30:47 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:35699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0fXX-0002he-KY for guix-patches@gnu.org; Tue, 06 Jul 2021 03:30:47 -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=1625556635; 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=JduiJjlWJSIjCwYQpJm+qgUnEDByvnWrEHncDF4czms=; b=eCNVPS4TFkpvZyjMUIbzvsP6aPFPDO/mUQS1JBPSeaFUeelltFSammUY2KQC8ecwX6qOqE A/CFAXALJyJCn5DKg8KG8cKASJuDAGyk0xhc0cgeJjkm3JRPxfFj6F7NXtrxGmGEs872xl y9I/YVSe6njxflG8EU6elb7M2trd87o= Date: Tue, 6 Jul 2021 00:30:32 -0700 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: iskarian@mgsn.dev Received-SPF: pass client-ip=2001:41d0:2:267::; 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, 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=1625556708; 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=JduiJjlWJSIjCwYQpJm+qgUnEDByvnWrEHncDF4czms=; b=krgZG+c7gKVfzjfhWM5wjblWoobn3bAQN9Kn3uZ+XeoiLNjiMYKgG8u862u3s7D/CaHbB9 Q+8w8RGZvhbxZ/myC+Y5DvAoovNb1Srv4WoYdyXnOHUtlsPVHV4SOuf3FTK6qzrA+ehfcJ ZbKetDYJQGDdPJcrEOoiYrOwjjllFXzyHmoMqWVnNkwY44gVtjGQpF1zkq+Rh3UL3bVajg 8woRVZh53FHCDg6uINiU9plRE+riPweqK8hK2CUHBl7minWAyfDV+jU78hMHYSwY3AXJDG YjW8PhpRV/o87oOQjMuAN8pKRCqhyN2xnqmSDIJ/bc7UZsXtAtQl6h3ShJfaLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625556708; a=rsa-sha256; cv=none; b=YobYd1dWuAWob/OfYuHnc14W9uARYs3lnIgn/tqq/vZbLTjkLNNHJ9jF+7DZYMHGObCLu1 AOi18jRgZkETqYamdYVJgdGU4NihFbhXNOoZlL3siv1eIxx3jBCoOXE4UfQRm2/ow684y/ MRHRRJT+1E1jjeWnScc6QO4IClLZ/zHQ59sNpon6k6cGZAv8xDFeNfhVZtxankKBSZD4oU nbrKSFHmCGKy0MIGSPk8b1i/4DrjZwBqYf4YHJT0rBOJsQGJYy310mlaCS/ah19vDz4gOo Dk9BJnwb+UZ4+SrmxhS0uuVkp8YRkEzE3aCG6gPRG1Wur/LpABMasM/bYk8RHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=eCNVPS4T; 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: 1.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=eCNVPS4T; 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: D84E125565 X-Spam-Score: 1.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5eChczT8Mk1g gnu/packages/gcc.scm (make-gccgo)[arguments]: Set tool paths (GOROOT and GCCGOTOOLDIR) even if they are already set to "". --- Hello all, It turns out some tools use GOROOT='' go env GOROOT to find Go, which was breaking with Gccgo. This little patch fixes that. As for the commit title, I wasn't sure if "gnu: gccgo" or "gnu: make-gccgo" was more appropriate here... there aren't a lot of examples in the commit log! Thanks, Sarah gnu/packages/gcc.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 2fe30b1321..02d6824a99 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -871,9 +871,9 @@ provides the GNU compiler for the Go programming language.") (tooldir (dirname (car (find-files exedir "^cgo$"))))) (wrap-program (string-append out "/bin/go") `("GCCGOTOOLDIR" = - (,(string-append "${GCCGOTOOLDIR-" tooldir "}"))) + (,(string-append "${GCCGOTOOLDIR:-" tooldir "}"))) `("GOROOT" = - (,(string-append "${GOROOT-" out "}"))))))) + (,(string-append "${GOROOT:-" out "}"))))))) (add-before 'configure 'fix-gotools-runpath (lambda _ (substitute* "gotools/Makefile.in" base-commit: aa6e6fb2e9ea231d12d49a8925fddd8d2686ea94 -- 2.31.1