From patchwork Mon Jun 8 12:58:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 22613 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 EDEE527BBE3; Mon, 8 Jun 2020 13:59:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 924B127BBE1 for ; Mon, 8 Jun 2020 13:59:19 +0100 (BST) Received: from localhost ([::1]:60714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiHN1-00075Q-4X for patchwork@mira.cbaines.net; Mon, 08 Jun 2020 08:59:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiHMm-0006kZ-Hg for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiHMm-0008F4-5N for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiHMm-0001TD-5G for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41541] [PATCH 4/4] hurd-boot: Use 'setxattr' instead of invoking settrans. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 12:59:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41541@debbugs.gnu.org Cc: Mathieu Othacehe , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 41541-submit@debbugs.gnu.org id=B41541.15916211035575 (code B ref 41541); Mon, 08 Jun 2020 12:59:04 +0000 Received: (at 41541) by debbugs.gnu.org; 8 Jun 2020 12:58:23 +0000 Received: from localhost ([127.0.0.1]:56132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiHM7-0001Rr-44 for submit@debbugs.gnu.org; Mon, 08 Jun 2020 08:58:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiHM5-0001R8-4f for 41541@debbugs.gnu.org; Mon, 08 Jun 2020 08:58:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47716) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiHLz-000819-QN; Mon, 08 Jun 2020 08:58:15 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=34142 helo=dundal.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.82) (envelope-from ) id 1jiHLw-00006C-9q; Mon, 08 Jun 2020 08:58:13 -0400 From: "Jan (janneke) Nieuwenhuizen" Date: Mon, 8 Jun 2020 14:58:02 +0200 Message-Id: <20200608125802.10617-5-janneke@gnu.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608125802.10617-1-janneke@gnu.org> References: <20200608125802.10617-1-janneke@gnu.org> 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" X-getmail-retrieved-from-mailbox: Patches Note: Using `getxattr' on the Hurd instead of running showtrans does not work (yet?). * gnu/build/hurd-boot.scm (setup-translator): Use 'setxattr' instead of invoking settrans. * gnu/system.scm (hurd-multiboot-modules): Add --x-xattr-translator-records to enable xattr-embebbing of translators. --- gnu/build/hurd-boot.scm | 2 +- gnu/system.scm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm index 398cee1395..8150aff972 100644 --- a/gnu/build/hurd-boot.scm +++ b/gnu/build/hurd-boot.scm @@ -140,7 +140,7 @@ set." (chmod port mode))))) (catch 'system-error (lambda _ - (apply invoke "settrans" "--create" file-name command)) + (setxattr file-name "gnu.translator" (string-join command "\0" 'suffix))) (lambda (key . args) (let ((errno (system-error-errno (cons key args)))) (format (current-error-port) "~a: ~a\n" diff --git a/gnu/system.scm b/gnu/system.scm index 21d0fbd190..c6feea08f9 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -1190,6 +1190,7 @@ a list of , to populate the \"old entries\" menu." "--device-master-port='${device-port}'" "--exec-server-task='${exec-task}'" "--store-type=typed" + "--x-xattr-translator-records" "'${root}'" "'$(task-create)'" "'$(task-resume)'")) (target (%current-target-system)) (libc (if target