From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oEJBE2D6ImQrTAEASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 16:32:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eEQmE2D6ImS+LwAA9RJhRA (envelope-from ) for ; Tue, 28 Mar 2023 16:32:00 +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 13ACA96BF for ; Tue, 28 Mar 2023 16:32:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phAKx-0004hD-8z; Tue, 28 Mar 2023 10:30:11 -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 1phAKv-0004gD-LM for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:09 -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 1phAKv-0006sK-DC for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phAKv-0002bc-8S for guix-patches@gnu.org; Tue, 28 Mar 2023 10:30:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62307] [PATCH core-updates v2 12/20] gnu: hurd: Update DDE and use libdde_linux26. 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:09 +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: Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 62307-submit@debbugs.gnu.org id=B62307.16800137849813 (code B ref 62307); Tue, 28 Mar 2023 14:30:09 +0000 Received: (at 62307) by debbugs.gnu.org; 28 Mar 2023 14:29:44 +0000 Received: from localhost ([127.0.0.1]:50424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phAKV-0002Y5-A0 for submit@debbugs.gnu.org; Tue, 28 Mar 2023 10:29:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phAKE-0002V9-Cu for 62307@debbugs.gnu.org; Tue, 28 Mar 2023 10:29:27 -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 1phAK9-0006RR-1u; Tue, 28 Mar 2023 10:29:21 -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=DCxTwjcwE9JK8Ke/3qrncVpJHJaZibMo89HBjcJEDtk=; b=CZY/x3sXKMSQ9pKqgMTO KesCaNnhVfE+YKcLWrUHmTvIf+D06errvuXD9w8sP1n1aHh0PNBrzZ5WkhmswB9TXnSrOJGyXtHwK ZsgzPBn/WGEMPdr48xkJCyNIeayRPz88u8vWK+EZZB8t9yALURjCtNQMh1lfPfR6fyZtvGimQUI7Q 4pDQ9DhUBGO4XPn9GL1RpD7IExSO7GZE/JZ38N5JH8RZFCKniQmKScpysZf8I2zcL6r9MNfeBQO+b fZjT2/OInMJTjDmbVTutsvAS86myrbLWhfCrFbRwpc/yECfS+1UNxIZus4z9dNKw+NnBnIrHejAee Qwhaf96+Ju2mBg==; 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 1phAK8-00026Y-LI; Tue, 28 Mar 2023 10:29:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 28 Mar 2023 16:28:44 +0200 Message-Id: <20230328142852.26635-13-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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680013920; a=rsa-sha256; cv=none; b=sSNNAfj1se1iOyMRMmUrKiVqXL7m66eORUxUYtIC0Yw2zAj5bBLMm6Vb/WwKYoR4Ma0VWg 9XRr/4x6QwcYvNeKlvNMy926So3/VwZOt7zOz7BwoDNg8PsvmppSk60X/mVUelMgLZR4I7 ppJO6AoXmtT5zwMNxacy/xmyQgnAabs8mtadVDxkaGQvGWmuedlgRtRk9NhfDe2fATHHxu hzN1VNwZdZ37CLJSSKwzbcdmEU7MwveTwp7CXERwZtyc9Raa5LRI4v4bs+ED7XRT+JEsDJ OJ2DvnN5fzJXB7ThcFz7cjCHTA8MjzATXf6+UVQKPDITfj0yRo14CCZdc7sSqw== 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="CZY/x3sX"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680013920; 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: 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=DCxTwjcwE9JK8Ke/3qrncVpJHJaZibMo89HBjcJEDtk=; b=O3TWIjo/cL5rZqymcZxLR+M1TcCwNGJDeBCWCQY/2z/12cKl0g6vQORk7VDsQAVInKf0za Md+p9UQMF+Kx31ASbin9zv2f9htQtovXptDUGf7WO1mhhKAhmI+94aSAh80uHuLINobTFN KDARra1yd6/73G6uI/pW7ob4tjO5GtZ1kOmu3UNWR1Lb9N3cctY3vkx96CKMT1mRYS5gaN gpnIdTHp+jdl1x4PSgl3s+hg55fPjd2Dn5996SXrYUe47LytN3VGF4JVb++69OSXLELM3S V2iOZgJb8FdewTDVijVvtM/5nQH6Qvw9PajeDz/j3XfnQSdcmvqHCkA+W9xYhw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="CZY/x3sX"; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.63 X-Spam-Score: -1.63 X-Migadu-Queue-Id: 13ACA96BF X-TUID: VFLWPXn9KvH+ From: Josselin Poiret * gnu/packages/hurd.scm (dde-sources): Update. (hurd): Build libdde_linux26 and install it. Signed-off-by: Ludovic Courtès --- gnu/packages/hurd.scm | 46 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm index 7ad893380c..be9e7a9071 100644 --- a/gnu/packages/hurd.scm +++ b/gnu/packages/hurd.scm @@ -345,7 +345,7 @@ (define unifont (define dde-sources ;; This is the current tip of the dde branch - (let ((commit "ac1c7eb7a8b24b7469bed5365be38a968d59a136")) + (let ((commit "ce8810277fa3584eb36ecb23da58394153fabe6f")) (origin (method git-fetch) (uri (git-reference @@ -353,9 +353,15 @@ (define dde-sources (commit commit))) (sha256 (base32 - "1vryinbg75xpydfrv9dbgfnds6knlh8l8bk2rxp32y9dc58z0692")) + "0ygk7jm4jmhpvh0zzi5bk638242z7sbcab2i57fkb4y2mmdkjjbw")) (file-name (git-file-name "dde" commit))))) +(define %import-from-dde + (list "libmachdevdde" "libddekit" "libdde_linux26")) + +(define %add-to-hurd-subdirs + (list "libmachdevdde" "libddekit")) + (define-public hurd (package (name "hurd") @@ -366,17 +372,19 @@ (define-public hurd (modify-phases %standard-phases (add-after 'unpack 'prepare-dde (lambda* (#:key native-inputs inputs #:allow-other-keys) - (substitute* "Makefile" - (("libbpf ") - "libbpf libmachdev libmachdevdde libddekit")) + ;; First we import the things we want from dde. (for-each make-file-writable (find-files ".")) (let ((dde (or (assoc-ref inputs "dde-sources") (assoc-ref native-inputs "dde-sources")))) (for-each (lambda (dir) (copy-recursively (string-append dde "/" dir ) dir)) - '("libmachdev" "libmachdevdde" "libddekit"))) - #t)) + '("libmachdevdde" "libddekit" "libdde_linux26"))) + ;; And we add some as subdirs so that they're built by the main + ;; Makefile. libdde_linux26 is built later in its own phase. + (substitute* "Makefile" + (("libbpf ") + "libbpf libmachdevdde libddekit")))) (add-after 'unpack 'find-tirpc (lambda* (#:key inputs #:allow-other-keys) (for-each (lambda (var) @@ -495,12 +503,34 @@ (define-public hurd (patch-shebang file path)) (find-files (string-append out "/libexec"))) #t))) + (add-after 'build 'build-libdde-linux + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (invoke (string-append (assoc-ref native-inputs "make") + "/bin/make") + ;; XXX There can be a race condition because subdirs + ;; aren't interdependent targets in the Makefile. + "-j1" "-C" "libdde_linux26" + (string-append "SHELL=" + (assoc-ref native-inputs "bash") + "/bin/bash") + (string-append "CC=" + ,(cc-for-target))))) (add-after 'install 'install-goodies - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) ;; Install additional goodies. ;; TODO: Build & install *.msgids for rpctrace. (let* ((out (assoc-ref outputs "out")) (datadir (string-append out "/share/hurd"))) + ;; Install libdde_linux26. + (invoke (string-append (assoc-ref native-inputs "make") + "/bin/make") + "-C" "libdde_linux26" "install" + (string-append "SHELL=" + (assoc-ref native-inputs "bash") + "/bin/bash") + (string-append "INSTALLDIR=" + out + "/share/libdde_linux26/build/include")) ;; Install the fancy UTF-8 motd. (mkdir-p (string-append out "/etc")) (copy-file "console/motd.UTF8" -- 2.39.2