From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mPscMfbZQGIGbgAAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 23:41:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UHjMKfbZQGJkaQEAG6o9tA (envelope-from ) for ; Sun, 27 Mar 2022 23:41:10 +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 195DD2A3D1 for ; Sun, 27 Mar 2022 23:41:10 +0200 (CEST) Received: from localhost ([::1]:35568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYadI-0006MF-Fo for larch@yhetil.org; Sun, 27 Mar 2022 17:41:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYadC-0006Lp-Jx for guix-patches@gnu.org; Sun, 27 Mar 2022 17:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYadC-0005O5-Bh for guix-patches@gnu.org; Sun, 27 Mar 2022 17:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYadC-0004V7-3y for guix-patches@gnu.org; Sun, 27 Mar 2022 17:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49672] [PATCH v2 0/6] Target check fixes for cross compilation References: <20210721004615.631777-1-bauermann@kolabnow.com> In-Reply-To: <20210721004615.631777-1-bauermann@kolabnow.com> Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49672 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49672@debbugs.gnu.org Cc: Maxime Devos , Thiago Jung Bauermann Received: via spool by 49672-submit@debbugs.gnu.org id=B49672.164841724617247 (code B ref 49672); Sun, 27 Mar 2022 21:41:02 +0000 Received: (at 49672) by debbugs.gnu.org; 27 Mar 2022 21:40:46 +0000 Received: from localhost ([127.0.0.1]:56673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYacw-0004U7-GC for submit@debbugs.gnu.org; Sun, 27 Mar 2022 17:40:46 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:3282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYacq-0004To-Pc for 49672@debbugs.gnu.org; Sun, 27 Mar 2022 17:40:45 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 5BF221A0D; Sun, 27 Mar 2022 23:40:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1648417233; x=1650231634; bh=/vQje9faqL1nFkWb0NayOjOCGmsBlKE6aD87W0Rq0Cs=; b=v8FiRKQY3ThX mZFxjX4FUmuH941dQO2WPFKktyGG8e+jFKuhdi6p9QmXVRxa3okV50gh1OeMED05 Nctg0uJbR7je9JpAxJeVm7d+dq0CPkZ6xpVC57Or8VJchcKmi1rKN3nQi+zfuKbN LuIoPgnrJxzYDIp4MTNtHsoRWoI91S/1+FhwLEBsOyJcOMOPFtj3sl07kheVjV63 hkhrPw76Z76kf90uW1VDcl1RYMD5J2StS2xT6LvNyQ3tQcZnhZcKSY464VVZy+El Jw/YgrnQyCnDI5EtcoDDkuyjB9WW8ZPfeslPR5ihUKdrHPRaLjCxMVZHhesM/+hC 5Md1pAD9wR09xRuO3eceIFK4KhDDz6L2LJ0vzd1prl0nDQ+ZOIa1xVdbYoh84gcg R6rkVXWiM7yfG/juILKeukgf1QxpixhZmLFLfVz36d5rVP5KvPtcOBYAR/Ibfox7 g0+bTLVD4KTXXeOE2AQl55pObCd0F2edZlwYYOR/z+8EeV+4Qkhy9DkFI5Fu2z8/ xdCoZL8JlCwkTWXAFSuX84eKXClkANUOxg88EHtOEQTxdZir0Y+Rmv13JVWQiYuO oftXBSdxS8SwyFy4Otr/pjC2Oh77y+R0Y3w1n5yy4XeYQpL41xJ1hqXIZxxB55l0 EPMbp1klGLf6rmeEYZePUjQhE138xr8= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jiod7CfuC8aT; Sun, 27 Mar 2022 23:40:33 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 332DC14D8; Sun, 27 Mar 2022 23:40:33 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 85EC523D4; Sun, 27 Mar 2022 23:40:32 +0200 (CEST) Date: Sun, 27 Mar 2022 18:40:20 -0300 Message-Id: <20220327214026.102723-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via 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=1648417270; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=/vQje9faqL1nFkWb0NayOjOCGmsBlKE6aD87W0Rq0Cs=; b=KvQM/7Ce56t9Nc6svSbXjfWsfukk155L1QRfZLBrOYS1vaIQgpX8e6PoS3F1r7gGfk9eIz TZy+CqT5IYQS34q4G9svDdd8BLzWF5Foo1rVl6pdWUAEiT8yBmMFHJbT4uFLVXQwqt+Gjk HI+KdxffnOoGzenw3ZDt/8XlZksm0Y1m8mleHkF2QfAKs2UUgDGqb3vx6OTpRAf0EpVd0v ANw3FxYqUc17YDxRxIkbmXuIQknX5pCUNa5l6cOeo4AjWyYuR5Gat3SfWuXiIGHfueJVwp ZL8pT7bU5BhT2Ya6oOpG1i1atqo/MLEv1g7fslpbhg9doZgaoFmXLGj2543zAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648417270; a=rsa-sha256; cv=none; b=p36QJL+2n/+ljOh89jo7p0Ndp03aX4dFHDGvXgCdzBf0+KxW+6E7IzJRJsyJT/zzvRDMWe rQPeGoUZ1tfGtMp+bYO/I3blDAI9DY+6llahxrnTrIo7ttsHQqMAHxzqDv/WOMwPix0JjJ FFtowORVdYdbGTH6B6JWEQlTDdhFBGSLmxOFPkE8R9lDt7gcq57keX7QihevrNJzB2RX/Q 6HqTZb+CwuMMGcrMRZa7CN9FmpKdN5QEebSw5c5PcNOTDcn+h5S/WMiWrG9zM0bn++ORms +Ji7m5vtdTh8DR9vRJvkWaxemq3KMeGIih6a/IZbhuSs7Wj1k9TfWYnPxdi+ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=v8FiRKQY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=v8FiRKQY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 195DD2A3D1 X-Spam-Score: -4.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: W8B88crQB/Us Hello, I've been working on and off on this fixes and cleanups series for a long time now, but it became a bit unwieldy and overwhelming so in the interest of shipping something I decided to split the fixes from the cleanups. This way I can at least submit the former, and leave the latter for an unspecified, uncertain future. I tested that on x86_64-linux the build derivations of all packages modified by these packages are unchanged. They only affect (for the better!) cross builds. This means that this patch series can go to master. I don't mind rebasing it if by the time the series is approved, it doesn't cleanly apply anymore. Changes since v1: - Patch “gnu: Fix GNU/Linux system detection” - Use ‘target-linux?’ helper rather than ‘string-contains’. - Patch “gnu: libgc: Use default argument in ‘target-hurd?’ call” - New patch. - Patch “utils: Introduce the ‘current-target-nix-system’ procedure” - Reworded commit message. - Patch “gnu: Use ‘current-target-nix-system’ for matches” - Reworded commit message. - Squashed with patch “gnu: Use ‘current-target-nix-system’ in prefix checks” - Found more packages where these changes were needed. - Patch “bootloader: grub: Fix mix of GNU triplet and Nix system identifier” - Patch dropped. It was a cleanup, not a bug fix. - Patch “gnu: ustr: Don’t pass default argument” - Patch dropped. It was a cleanup, not a bug fix. - Patch “gnu: Use existing target helpers from ‘(guix utils)’” - Patch dropped. It was a cleanup, not a bug fix. Thiago Jung Bauermann (6): gnu: Fix GNU/Linux system detection gnu: libgc: Use default argument in ‘target-hurd?’ call utils: Introduce the ‘current-target-nix-system’ procedure gnu: Use ‘current-target-nix-system’ for matches gnu: Query membership in ‘supported-systems’ list with Nix identifier gnu: Fix check of ‘%current-system’ and ‘%current-target-system’ gnu/packages/astronomy.scm | 4 ++-- gnu/packages/bdw-gc.scm | 3 +-- gnu/packages/bootloaders.scm | 13 ++++--------- gnu/packages/bootstrap.scm | 4 +--- gnu/packages/c.scm | 3 +-- gnu/packages/compression.scm | 6 ++---- gnu/packages/crypto.scm | 4 ++-- gnu/packages/debug.scm | 6 ++---- gnu/packages/digest.scm | 3 +-- gnu/packages/golang.scm | 6 ++---- gnu/packages/java.scm | 20 ++++++++++---------- gnu/packages/julia.scm | 3 +-- gnu/packages/lisp.scm | 3 +-- gnu/packages/llvm.scm | 4 +--- gnu/packages/make-bootstrap.scm | 2 +- gnu/packages/mes.scm | 3 +-- gnu/packages/messaging.scm | 8 ++------ gnu/packages/ntp.scm | 3 +-- gnu/packages/pascal.scm | 6 ++---- gnu/packages/photo.scm | 4 ++-- gnu/packages/php.scm | 4 ++-- gnu/packages/sdl.scm | 4 ++-- gnu/packages/telephony.scm | 4 ++-- gnu/packages/video.scm | 3 +-- gnu/packages/web.scm | 6 ++---- guix/utils.scm | 7 +++++++ 26 files changed, 56 insertions(+), 80 deletions(-) base-commit: ff4585d147ef3bb55c6cbbd86ca8fc582ad6b561