From patchwork Sun Mar 27 21:40:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 683 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E440727BBE9; Sun, 27 Mar 2022 22:41:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5E3B927BBEB for ; Sun, 27 Mar 2022 22:41:12 +0100 (BST) Received: from localhost ([::1]:35568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYadL-0006MF-Ey for patchwork@mira.cbaines.net; Sun, 27 Mar 2022 17:41:11 -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) Authentication-Results: ext-mx-out001.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com 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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches X-Patchwork-Original-From: Thiago Jung Bauermann via Guix-patches via From: Thiago Jung Bauermann X-getmail-retrieved-from-mailbox: Patches 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