From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oHbTFYYGmGGNdAEAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 21:18:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uPKyEIYGmGGceQAAB5/wlQ (envelope-from ) for ; Fri, 19 Nov 2021 20:18:14 +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 69387170FF for ; Fri, 19 Nov 2021 21:18:13 +0100 (CET) Received: from localhost ([::1]:59586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moAKp-0003ur-Bj for larch@yhetil.org; Fri, 19 Nov 2021 15:18:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moAKg-0003ue-AF for guix-patches@gnu.org; Fri, 19 Nov 2021 15:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moAKg-0003zK-2F for guix-patches@gnu.org; Fri, 19 Nov 2021 15:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moAKf-00064I-Ld for guix-patches@gnu.org; Fri, 19 Nov 2021 15:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51981] (no subject) Resent-From: "Collin J. Doering" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Nov 2021 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51981@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163735306123288 (code B ref -1); Fri, 19 Nov 2021 20:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2021 20:17:41 +0000 Received: from localhost ([127.0.0.1]:40611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moAKL-00063Y-G1 for submit@debbugs.gnu.org; Fri, 19 Nov 2021 15:17:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:33006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moAKK-00063R-91 for submit@debbugs.gnu.org; Fri, 19 Nov 2021 15:17:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moAKK-0003sl-4I for guix-patches@gnu.org; Fri, 19 Nov 2021 15:17:40 -0500 Received: from [2607:f8b0:4864:20::f2a] (port=42498 helo=mail-qv1-xf2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moAKF-0003AL-LB for guix-patches@gnu.org; Fri, 19 Nov 2021 15:17:39 -0500 Received: by mail-qv1-xf2a.google.com with SMTP id b17so7891334qvl.9 for ; Fri, 19 Nov 2021 12:17:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rekahsoft.ca; s=google; h=user-agent:from:to:date:message-id:mime-version; bh=4icf3bRtgKiz0LAERPlb7jTDwea+iTFNnZ+q8n9+RFo=; b=Pm2d0ESrJg0nvDeL7+IZSen0mVn8hkPqJAHD/yYTFH7uanJA9K3WJ2NnqTs6/tbnKH DTZDSH0kpHedc3oPQV47U/1jMOi1RWU43XzlZTCVBPJwQMxTrel67Nc3toysPnrHmSiw q9RQVnpyIai/Hy/8lN2srzZXqvnWARHHC5w8nSBwu2Kg41DOGh5XGdPaNpSt3DilYIUb aUN4nswaxgyO7GsX23WII2hv8xPktPwfXBGpD9Ev6rv3pR0A8t1vVoiWD4iD7ml9e0fR Wa2avrt1jiTcp7gjS73ddcnA8RfmKd+igd0dc1hox8ejVqjz+ZXtB/F3ES+8BQIFHIs8 OdCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:date:message-id:mime-version; bh=4icf3bRtgKiz0LAERPlb7jTDwea+iTFNnZ+q8n9+RFo=; b=Gq/hNAC4kPJnelsPXpe1DlFOCfpF+wQFOuQTlwFyq2ABLbRTtWN10EK3zO9rhxqIbT +8eu371pp7bVDcJF8Af7K82MUTqUzxCNo3Um9ku4bLw8LgCqp7Xq5WoUh5KLmRiKNk0I RUs2ytZUdSNpTupVXz93z+zpv+S221gb2xzzElNyfouXD79TYKG64j36lZHptHHD25z3 EzDcvPoKnQjIqpX198b6vjxG2woSen/PdAd0RI74AxwG7QU9oqNA3h6URNgN+FkM3DYn BE8g8fy1JUhuTdVebPBu91Ao9f6Q+nd4F0onCL21Musd4C4QKrG1/sH2xVhal5kRxwoH ODEQ== X-Gm-Message-State: AOAM531noCp+pDw5rjgGM9UcGpSIl2trfW2sA7p4LrJQImf+btfSkdSm agY1uRgIx6C1l4XUxIDpleGu0egv7qb2QA== X-Google-Smtp-Source: ABdhPJyWj4o8rTjRpxmp2LOB4OTU8LwpBaRIpwTJLjOf6oCv/YhHm38GnBD4h4ZE0QsA3WBdKsobpw== X-Received: by 2002:a0c:f8cc:: with SMTP id h12mr75910808qvo.6.1637353052269; Fri, 19 Nov 2021 12:17:32 -0800 (PST) Received: from rekahsoft-work (cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com. [99.255.210.233]) by smtp.gmail.com with ESMTPSA id bk18sm407329qkb.35.2021.11.19.12.17.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 12:17:31 -0800 (PST) User-agent: mu4e 1.6.10; emacs 27.2 From: "Collin J. Doering" Date: Fri, 19 Nov 2021 14:59:07 -0500 Message-ID: <87bl2f6gti.fsf@rekahsoft.ca> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=collin@rekahsoft.ca; helo=mail-qv1-xf2a.google.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 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, MISSING_SUBJECT=1.799, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637353094; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=4icf3bRtgKiz0LAERPlb7jTDwea+iTFNnZ+q8n9+RFo=; b=rEda9DzRSuNh6MezjTnj8uV3p4S1GUnDSldV/049otORBEaTmQykwU9fZ6yHTMimTHV8uB fev3vUit5+pPGBW9qAX3mw4NZwc5euQsWOdc7NV7gLddmofswsYxtL4WjbHSeojlGHsRDo GUSgpOW/W+lj4O72Dy2UYKqKgqk9DlVeqlqNUUw/6fWCrHjBhHopYbmk/M5OomgtVBl+yK lEBbx/l2RyQhxP4pIcvjgcbSIYkh+vKCVK4pegKWfseZJb6TCvIeC+acNhbs20Aiymwthu QXHOWiobMQuQ8zuEepXIs7i2rRqin7AiU89EFcMxNohiOqnceKpkyFWsmMqbqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637353094; a=rsa-sha256; cv=none; b=kDYZHELWs6Qu1HA7ir3F42eq2lLaCMKgK73qS5mdQF3ArCRUZihoYmPePVUmZX6g59Ur7L z5FEOldXniiqqe4trjVZnEnlyfJJUNWMoyiIvGJlHELn+DXpupmybwaR/1tzfY8WQ3+ZSy msAVATPWQAt8lRCRyn2Zs3VWGSk8G8Yil7G773sTc5B6c/CUWjJqq70gqoCOrW54/TMKnE 0G2LHHPNcm50zhBXqfaLsC1YxkpD106GhpyZVaGO9QK9cuVc7NFyD6Y3m0BcpfUEY4KsGg 2EtjtlhDORexEVDXzrd8U5ri6rh5zZQ+5C/KVHLjILEtqCisXMmUECdbs9JjAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rekahsoft.ca header.s=google header.b=Pm2d0ESr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=rekahsoft.ca (policy=none); 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.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rekahsoft.ca header.s=google header.b=Pm2d0ESr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=rekahsoft.ca (policy=none); 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: 69387170FF X-Spam-Score: -1.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ztj6LGXTcX2P Hi all, This patch resolves an issue I discovered when attempting to cross-compile packages that use the go-build-system. Namely, prior to this patch, running 'guix build --target=arm-unknown-linux-gnueabihf ' where '' is some package that uses to go-build-system (for example, 'fzf'), would result in the following error in the build log: --8<---------------cut here---------------start------------->8--- go install: cannot install cross-compiled binaries when GOBIN is set Building 'github.com/junegunn/fzf' failed. Here are the results of `go env`: GO111MODULE="off" GOARCH="arm" GOBIN="/gnu/store/8xcs9vna6zyl814j78raynccm7mqqk0h-fzf-0.25.0/bin" GOCACHE="/tmp/go-cache" GOENV="/homeless-shelter/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/tmp/guix-build-fzf-0.25.0.drv-0" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/gnu/store/y5rwacd5l4q26pxis28wsmswj2603hkw-go-1.14.15" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/gnu/store/y5rwacd5l4q26pxis28wsmswj2603hkw-go-1.14.15/pkg/tool/linux_amd64" GCCGO="gccgo" GOARM="7" AR="ar" CC="/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/gcc" CXX="g++" CGO_ENABLED="0" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -marm -fmessage-length=0 -fdebug-prefix-map=/tmp/guix-build-fzf-0.25.0.drv-0/go-build219362912=/tmp/go-build -gno-record-gcc-switches" command "go" "install" "-v" "-x" "-ldflags=-s -w" "github.com/junegunn/fzf" failed with status 1 --8<---------------cut here---------------end--------------->8--- The important bit is the first line, which indicates that 'GOBIN' cannot be set when cross-compiling. This has been the case in go from what I can tell for numerous years (atleast 2019). This patch removes the setting of 'GOBIN' and adjusts the go-build-systems build function to us 'go build' instead of 'go install'. Collin J. Doering (1): build: Fix cross compilation for go-build-system guix/build/go-build-system.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.33.1 -- Collin J. Doering http://rekahsoft.ca http://blog.rekahsoft.ca http://git.rekahsoft.ca