From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YP2+BvSG4GDKqQAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 17:49:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sElZAvSG4GB5QQAAbx9fmQ (envelope-from ) for ; Sat, 03 Jul 2021 15:49:08 +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 C5D151CFDA for ; Sat, 3 Jul 2021 17:49:07 +0200 (CEST) Received: from localhost ([::1]:39734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzhtC-00007X-BO for larch@yhetil.org; Sat, 03 Jul 2021 11:49:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzht7-000050-U8 for guix-patches@gnu.org; Sat, 03 Jul 2021 11:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzht7-00086w-MF for guix-patches@gnu.org; Sat, 03 Jul 2021 11:49:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzht7-0002Yx-Ja for guix-patches@gnu.org; Sat, 03 Jul 2021 11:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49025] [PATCH v4 core-updates 22/36] openssl: Extract logic for computing CONFIGURE_TARGET_ARCH. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Jul 2021 15:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49025 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49025@debbugs.gnu.org Cc: othacehe@gnu.org Received: via spool by 49025-submit@debbugs.gnu.org id=B49025.16253273239825 (code B ref 49025); Sat, 03 Jul 2021 15:49:01 +0000 Received: (at 49025) by debbugs.gnu.org; 3 Jul 2021 15:48:43 +0000 Received: from localhost ([127.0.0.1]:39695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzhsd-0002YC-AK for submit@debbugs.gnu.org; Sat, 03 Jul 2021 11:48:43 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:35710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzhsa-0002Y2-E3 for 49025@debbugs.gnu.org; Sat, 03 Jul 2021 11:48:30 -0400 Received: from butterfly.local ([188.189.167.54]) by andre.telenet-ops.be with bizsmtp id QfoS250021AlBsU01foSoz; Sat, 03 Jul 2021 17:48:26 +0200 Message-ID: <74b98d853cc36f38089c59a9591bba9609664d58.camel@telenet.be> From: Maxime Devos Date: Sat, 03 Jul 2021 17:47:43 +0200 In-Reply-To: <20210619150458.12057-23-maximedevos@telenet.be> References: <20210619150458.12057-1-maximedevos@telenet.be> <20210619150458.12057-23-maximedevos@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-hkJRGDqkblotxZ26ZTlY" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1625327306; bh=/GgQSkImIv97m/8qXvp6ukBA3Va7lUnVVRScnPnhMUw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PBG45t+g2OuPHkAIDJhw+lH4tF5G0B78OLnS9SC63iry8ETVGndxalG71o9TLcAxw f/zUnQlSz1tFo9UxdeCFi0Ff9qt+tFjhxDiPAOUPpKqRnSA2ODuwAs1vryiRxMWPpY aNfD3IkXOYXD18iRinRMbKjI9h6OAJrm3ZShbPR1cucmn//lW90pNbiGhgRoPvY1br NvW8bmvute5OLd1vp3bXbG6yH4Lm+169kqpR8BnoXmkfvB7rL70XuBpuuigHdZFZVX 6fOnccMiRtjc3UWhAc+0fuC2e/EQug+1UOBXFraAC99L6ScRNcqkD0I4/8cBGotfjs QOgA9mdrO33KQ== 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=1625327347; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=/GgQSkImIv97m/8qXvp6ukBA3Va7lUnVVRScnPnhMUw=; b=JYGXD5CgjRz0fJhg/cgSTnO+I5sPQZ34Ot3h0yhE3CZpXFeJPQAErDEf3WOsv+cblL1HjZ 0vudiQr2AuxM88Fs8MynjznM8P0p9DZ7k4kDUv4kIogg1tkR/cIOBF7xqP87d8Lezit28q MKDREHsZL2rEOYsmelarPHZRY/asJi0fXUrQkYDDL+R/IchT/TtPArMxoBUMYoMT3KCTzg WtDv9HFeBn/3jOOtbNmsHLFb7jDIp5ak/GQvclQ6rGQOCo/rNWyI59GUnVPt/tdtlrFhK8 rTJWI9XWECJSufaeOoC8mcFYgNK5uN5z5e55k5MzSWcvO4/xTgl2XywJehX5dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625327347; a=rsa-sha256; cv=none; b=DoZMJLK4KKw5LCckh2/i2zMeDDYDZi8FLDLNbSx3q+6mSE3wkLg7ssD/dtdapRJQQhK/Yr rIO26Y42L1YHwHg4br5XfjV7LzUjtBEhSpJy4Kl2bb6XQOTmol4Tm0mRp8pzL6PNnJysCS qIz9KggqOjkHHUXji5IvfxGaDTIMz5CrvQIwBgL6c1t7NgeMwvktc8jsOuV4ll/6tkxQXD faLcXU2VZJqdaeanIWACwosIxHOOwjmbDlWy39BXk8m+MI3oKuAZt4Q6SsJm8hX5F8hZTP 0+ODTBW78EyVX9fqdB2624y/Jn2Nbj+l4X9S8x9f3cNLaciJ5HdN0Lh1t5MhIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=PBG45t+g; 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: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=PBG45t+g; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: C5D151CFDA X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: FWd0r/+MvyLl --=-hkJRGDqkblotxZ26ZTlY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maxime Devos schreef op za 19-06-2021 om 17:04 [+0200]: > By computing this value outside the build code, new targets > can be added without causing rebuilds for other targets. >=20 > [...] > +(define (target->openssl-target target) > + "Return the value to set CONFIGURE_TARGET_ARCH to when cross-compiling > +OpenSSL for TARGET." > + ;; Keep this code outside the build code, > + ;; such that new targets can be added > + ;; without causing rebuilds for other targets. > + (cond ((string-prefix? "i586" target) > + "hurd-x86") For example, this should really be (and (hurd-target? target) (target-x86?)) (or was it x86-32?), such that i686-pc-gnu would be recognised as a hurd-x86 target, aarch64-pc-gnu isn't (ok the Hurd doesn't support aarch64), and i586-linux-gnu would be recognised as GNU/Linux, not GNU/Hurd? > + ((string-prefix? "i686" target) > + "linux-x86") [...] Similar reasoning as above. This can be fixed later though (without going through any rebuilds for supported triplets). Greetings, Maxime. --=-hkJRGDqkblotxZ26ZTlY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYOCGnxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sBSAPsHsCXgKntITO6DaijPqFMqsU4L qvkVjdBr6v3nXmhlTQEA6igJfeNo31fhPCI2kCcBKeowkFmsTUX+E3aq6cGUAws= =9i5s -----END PGP SIGNATURE----- --=-hkJRGDqkblotxZ26ZTlY--