From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cEnCAUP6ImQrTAEASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 16:31:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uGimAUP6ImSRKgAA9RJhRA (envelope-from ) for ; Tue, 28 Mar 2023 16:31:31 +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 CAE9C3670 for ; Tue, 28 Mar 2023 16:31:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=NQWhqBd+; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680013890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=mBlehwAXl7XcZJ5cG63Fq0Fn0DEK8x3GesycWZlBhcU=; b=cZl991/0oqf8D/v45mdiiJ8BSoIFcaTsqmEvzxGmchw91ZaRc5ywUwuREq4xTcoMDCrqnz XjXl2wctzEETkwI/+gsF7M1NH6OSGSOT2OmZSArEShbCsy91m+uXbXqb3UXFQuiE7xy9Le pPg/W0VOCOTyav7apLZAtM0ASz7If9QBRTw3K+LSw1cccJMANfvK1XGPqQFcmXhHK3ogUd D0jXuWCkU/W0QKe7fRVvrj4u+n0LXjkA0Kh4jEiYaBCIwcgCY59xXfRUk67EpckXjbXVIR e/MOoAFqGet5k/2UVyrslZEmltxw+9721QrxQG2oOqBNuBp2hNprf8hNzYuTdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680013890; a=rsa-sha256; cv=none; b=HFcQCbNQnNYB1qUbV2gaaUINOo2P/et5s/M5dnq0OVmArFMOSJBZDFEqWIBCea+5kaZYGI IjtDMbvTRCnscTRQx7efVLqMqbndVm+TUHw91dNwgpz7/c7HFUezRnH9BRjUogaymhRegw o5EAF4xfhF9xFEfmCmVXkwNoFVleILe577MjvIThy3+zr5eji1PXXA7nCe11v7cVFf8dDK gqmUtQN0rrX1Qj73i9Cm7yIpd1jFMN4H4SC9nZYRw3pdomGbsw2Fi9pr9Jazbx/9DlXAGP +dQAhAS1679WQnkcV1HWcLf/eUbDChCeL27sL9F2aOKzn7/LHjNRYvV9FRslqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=NQWhqBd+; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phAKu-0004eh-1c; Tue, 28 Mar 2023 10:30:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phAKq-0004d0-Un for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phAKq-0006pV-8G for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phAKp-0002aJ-TR for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62307] [PATCH core-updates v2 01/20] gnu: glibc: Work around broken GNU Mach header detection. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Mar 2023 14:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62307@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Josselin Poiret Received: via spool by 62307-submit@debbugs.gnu.org id=B62307.16800137629639 (code B ref 62307); Tue, 28 Mar 2023 14:30:03 +0000 Received: (at 62307) by debbugs.gnu.org; 28 Mar 2023 14:29:22 +0000 Received: from localhost ([127.0.0.1]:50376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phAK9-0002VD-Ts for submit@debbugs.gnu.org; Tue, 28 Mar 2023 10:29:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phAK6-0002UL-Ps for 62307@debbugs.gnu.org; Tue, 28 Mar 2023 10:29:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phAK1-0006ND-28; Tue, 28 Mar 2023 10:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=mBlehwAXl7XcZJ5cG63Fq0Fn0DEK8x3GesycWZlBhcU=; b=NQWhqBd+SdrOMZq8CyKz Wf5fDNwLAxDfegn0oSlpFdoWnIbCmtF9hmPXL6Mtjz+/JmLij/blcrX/0FqqH8T8s9sy30ON7cOqs 2ifyLsjaasCu90K0EOhPxEq8mQu74Yl/G4NFSMgfL9nJV2EHDMznY+EcElSooc1+NKr16mvAcbql6 ifsNMtxTzH6+sqxuKZCkWTNkqj5vs6fZNtfDszUS2mTkxApkDlc69YHWgjyY9TW4AtsZcjJFFC5gf NuEeoJH8pjiBuaonpfwa4/xEwpOYWd9vTU6Gc7t88j/QgGsNBnjpAFA2ApBqFjgMKKd0wlv21Uajd hk/lyutLngXruA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phAK0-00026Y-Kj; Tue, 28 Mar 2023 10:29:12 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 28 Mar 2023 16:28:33 +0200 Message-Id: <20230328142852.26635-2-ludo@gnu.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230328142852.26635-1-ludo@gnu.org> References: <87pm90bzva.fsf_-_@gnu.org> <20230328142852.26635-1-ludo@gnu.org> MIME-Version: 1.0 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: X-Migadu-Queue-Id: CAE9C3670 X-Spam-Score: -2.03 X-Migadu-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: JQ7+abrxZqEH * gnu/packages/base.scm (%glibc/hurd-configure-flags): New variable. (glibc)[arguments]: Use it. (glibc/hurd-headers)[arguments]: likewise. * gnu/packages/cross-base.scm (cross-libc*): Likewise. Co-authored-by: Josselin Poiret --- gnu/packages/base.scm | 19 ++++++++++++++++--- gnu/packages/cross-base.scm | 4 +++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 041f16b4fc..520c2093f3 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -755,6 +755,17 @@ (define* (make-ld-wrapper name #:key (home-page "https://www.gnu.org/software/guix//") (license gpl3+))) +(define-public %glibc/hurd-configure-flags + ;; 'configure' in glibc 2.35 omits to pass '-ffreestanding' when detecting + ;; Mach headers. This is fixed in glibc commits + ;; 8b8c768e3c701ed1993789bb46acb8a12c7a93df and + ;; 7685630b98ca2a3f5de86eadf130993e6cf998a0; as a workaround, bypass those + ;; tests. + '("ac_cv_header_mach_mach_types_defs=yes" + "ac_cv_header_mach_mach_types_h=yes" + "ac_cv_header_mach_machine_ndr_def_h=no" + "libc_cv_mach_task_creation_time=yes")) + (define-public glibc ;; This is the GNU C Library, used on GNU/Linux and GNU/Hurd. Prior to ;; version 2.28, GNU/Hurd used a different glibc branch. @@ -854,7 +865,8 @@ (define-public glibc ;; On GNU/Hurd we get discarded-qualifiers warnings for ;; 'device_write_inband' among other things. Ignore them. ,@(if (hurd-target?) - '("--disable-werror") + `("--disable-werror" + ,@%glibc/hurd-configure-flags) '())) #:tests? #f ; XXX @@ -1392,9 +1404,10 @@ (define-public glibc/hurd-headers (arguments (substitute-keyword-arguments (package-arguments glibc) ;; We just pass the flags really needed to build the headers. - ((#:configure-flags _) + ((#:configure-flags flags) `(list "--enable-add-ons" - "--host=i586-pc-gnu")) + "--host=i586-pc-gnu" + ,@%glibc/hurd-configure-flags)) ((#:phases _) '(modify-phases %standard-phases (replace 'install diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 2959616af6..f86e8005c4 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -577,7 +577,9 @@ (define* (cross-libc* target ((#:configure-flags flags) `(cons ,(string-append "--host=" target) ,(if (target-hurd? target) - `(cons "--disable-werror" ,flags) + `(append (list "--disable-werror" + ,@%glibc/hurd-configure-flags) + ,flags) flags))) ((#:phases phases) `(modify-phases ,phases -- 2.39.2