From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IIqVJIDW9GIyjwAAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 12:14:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mG1YJIDW9GIdgQAAauVa8A (envelope-from ) for ; Thu, 11 Aug 2022 12:14:24 +0200 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 6CD213C7A8 for ; Thu, 11 Aug 2022 12:14:24 +0200 (CEST) Received: from localhost ([::1]:37060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM5Cp-00005Y-Kr for larch@yhetil.org; Thu, 11 Aug 2022 06:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM5CV-0008W6-95 for bug-guix@gnu.org; Thu, 11 Aug 2022 06:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM5CU-000524-To for bug-guix@gnu.org; Thu, 11 Aug 2022 06:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oM5CU-0004pL-PF for bug-guix@gnu.org; Thu, 11 Aug 2022 06:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57127: unzip fails to cross-compile Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 11 Aug 2022 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57127 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57127@debbugs.gnu.org, andrewpatt7@gmail.com X-Debbugs-Original-To: bug-guix@gnu.org, Andrew Patterson , 57127@debbugs.gnu.org Received: via spool by 57127-submit@debbugs.gnu.org id=B57127.166021279618473 (code B ref 57127); Thu, 11 Aug 2022 10:14:02 +0000 Received: (at 57127) by debbugs.gnu.org; 11 Aug 2022 10:13:16 +0000 Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM5Bk-0004ns-GA for submit@debbugs.gnu.org; Thu, 11 Aug 2022 06:13:16 -0400 Received: from tobias.gr ([80.241.217.52]:50706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM5Bh-0004ni-Rx for 57127@debbugs.gnu.org; Thu, 11 Aug 2022 06:13:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=K09ORQ6w/Wqno eolc7pPah3vmHczluKICkb8OQwM44s=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=SiqwD4J4/EjdbkiCtEqng9VUUW70bTN0L11XObobFsYk +n7zXZFywl5JF7ZmSCL8fAWoSXE7FD/yX6yyUK516ggvfWgT//8LZDv3jSv3ckgiwdr2fI dPBgXBPEo1Mq2SIsBSXGqaFXNGJgRcN9XstFzM2+LZo52nSODem9UdjODz0HQzF+U7bjUd 3gGtaURZHibnBeOnilrvELt+Jnv1I6Ox4ltvV6XWcmBVucOqGSWUpjhm9Zj8c5d8dRRDb1 Vu0iCDU7IAtbLS3DhtBp57VN+8aSYKGO7JZD1fsdmI4RVG5ugCuO4i6ybq6udgt6tx3Iqb Q8ax4qBjYs3bQ0dOwg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 0aff4535 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 11 Aug 2022 10:13:09 +0000 (UTC) Date: Thu, 11 Aug 2022 10:12:47 +0000 In-Reply-To: <87y1vvoecx.fsf@gmail.com> References: <87y1vvoecx.fsf@gmail.com> Message-ID: <0714DAB3-DDD7-47E9-B41E-BE571378F54C@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/n8Eh2Y4TbxJiDo XUT72XY/RfPH1qrMIP3EI/NNL4LQeGG1n+625k3OVWcRVXG2vRrB6qurLmGkLEmjXWCFD9cCRGfH LeajLm9sM+t/nZPZ3btetcmK9tM2EwivyLUNhrTk73UUnI4CSAzdO2cISqo9zSMtFgj2alqd2fOR s7CKfEn+5PquruDbp/Ej7dOOrjgWSCXLDDYXRrtaKrLz/dhqq5ftFYi9tUTTQecFotM08fPtu+Kw JMP2ySHCkUqp0GvrUCeSRPAJZsmJrd535y+LlRhnqb0mbG4dgMa8A6xhkFYugnqldy/q7kX1EmRI 686N7bA6fh1MCQARAQABtCRUb2JpYXMgR2VlcmluY2t4LVJpY2UgPG1lQHRvYmlhcy5ncj6JAlIE EwEKADwCHgECF4ACGQECGwMWIQT1vFU0w28Ah7OdNu8cncT+udt8SwUCXpe0rAYLCQgHCgQFFQoJ CAsFFgMCAQAACgkQHJ3E/rnbfEu5IhAAk+0BW/twLmx1xMmeXn+I7Ne6SG3++0TRBduEaGWV3n59 lX6XPZUQdAPpS4uy0H+c90Owkw+aWUEwfyOWphrxZRtR2cCOP/3Pxj3Vgtz5RkY4u27lMj15jqa/ p7l2l256ZKJOegr9TvOWtkhMp5lxeVHT6f/44Kv/r/8mMCgSnLXYrEWPE462xI+mIJOanHLJb6No f2xLRCvXoLLp7Yejjv1dwOO71R9PMRhtNy46pZM1ylQ++UTkeSocJw4aNtiu0DHOkX9AlNBkutIx x07RpO+MqJKlzzLeQiC/fE5+dR2itRONopwXAqN3MuT7MonQo5XifBn+VK8i9xZWTXZDkWItWtCC 8oIj4zwxwFWiTmMwwSbI3Wdd/11Zw3CLc4Gd0M6NVgvAnuErQXSgr4lrWhZcncvi4L6EJTc9AUSa 8UWPF+S9t+CHTukpJmcYnsccMkOBhT7OZlmWBsylrYK/JTRWqgWSHWdSKmOuLK+MGDneOZEHkEcf jeXRWvmG7MSU5tE/p7NDLIg9vkvhQV9b0q4OtY65uNWbRe2QRJaYMDcYUAeSZzivRa8VaoVen6tb FvH44zpCxubn23ABl9YIzwvJC++r+H2qLdLpy0cfITiZadZ74Ae0aosNw7XARS6OY+A03BfXyPiI 2oW0jf/PdH9sh2mQrQxIQJ5cZz6Z3X0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660212864; 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-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=K09ORQ6w/Wqnoeolc7pPah3vmHczluKICkb8OQwM44s=; b=orJxKQjKRyeG+TdnRkijPx0uv5dCpMHLv+SVmODSXRrB8lr31/vc9U5cufGUbQ6hMwf9H1 J4eN2tpX5WIp9altcSmGPV1O+lt5e4vr0536Kz47QZP5PKH6EU8J/vrpdYDPvpptacW/Pb bB5DnqajyL2RBKZ4QJvAq5zvaox8FyofrMvTzB6H1ghcnjgNkxwdc6HkKQDpMYxvowTgwC 9O/OFaCgcqBVduwEtiOhLA76JOokB17aqfaYN5fxZz/Yw6xmxatduCYQuj76F6r622fAv1 gyvD2Jn5eg4nZC9WL1Zzz1WeY93YrReXPEDTm8mFkNICsBwYeWgT6klz95jifw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660212864; a=rsa-sha256; cv=none; b=rgd8+y1R0CH5YxF4EAPVIj1WMSd8WkuFcm37isxDWf1YD8v7DgBG5vgiCdNsMA764R0zo6 7cPcODid6MxVdq1exp1dlOMpCmgguW5TPINku9HKwXjF1cbqnYZaVofnoz+m8fDiDXrz3t GelbY2RtOJjZZ6V2w1cmJk4+dISYRvKKHml/Vi0qWxUpMdDGyuMsZzC5jDToq3r+xB/GnH 48WM3V/133+806yAW0aYT/LayjaahLlkL6z5qwzVYzVXPusbPJkit+lMcAc1fTHDo2yz4b nEdhNs9m7PL3mJKnBS8GkPhJarZGvYoGTwQJ2HRAuYL8ll4zpULiSm881lOctQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=SiqwD4J4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=SiqwD4J4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6CD213C7A8 X-Spam-Score: -1.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: Kb572+VRoULf Hi Andrew, This is a bug in Guix, not really related to cross-compiling (hence you ca= n stop cross-testing and reporting different architectures, although the ef= fort is appreciated!)=2E %output is practically deprecated, but is still present in a good number o= f packages=2E Sometimes it happens to work, because a specific build syste= m explicitly kept support for it=2E Some build systems don't, making suppo= rt for it feel unreliable=2E It is=2E %output is obsolete for new code=2E What also happens is that build systems still support it in the well-teste= d native build path, but not when cross-compiling=2E That seems to be the = case here=2E > Interestingly, it gives the same errors when explicitly building for x86= _64=20 > on an x86_64 machine, even though I would expect doing so to compile as = normal=2E You don't define what you mean by 'explicitly building'=2E If you mean --target=3Dx86_64-linux-gnu, why would it not fail? You're cr= oss-compiling=2E Guix doesn't silently fall back to a non-cross build when= the architectures match, no should it IMO=2E The fix should be simple: rewrite unzip to use gexps and hence #$output=2E= Why didn't I simply do so yet? Because too many packages depend on unzip= to simply do so on master=2E There's probably a way around that, but I'll= try it when I'm back at a computer=2E Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E