[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/27: gnu: hurd: Update to upstream Hurd-reserved xattr index.
From: |
guix-commits |
Subject: |
08/27: gnu: hurd: Update to upstream Hurd-reserved xattr index. |
Date: |
Fri, 29 May 2020 04:43:32 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 29441c7f93ce00c5b9d5a877187435bda6fa9adb
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue May 12 07:56:46 2020 +0200
gnu: hurd: Update to upstream Hurd-reserved xattr index.
This enables setting (and reading) passive translators when preparing a Hurd
file system from GNU/Linux.
* gnu/packages/patches/hurd-xattr.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/hurd.scm (hurd): Use it.
---
gnu/local.mk | 1 +
gnu/packages/hurd.scm | 3 +-
gnu/packages/patches/hurd-xattr.patch | 53 +++++++++++++++++++++++++++++++++++
3 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index de51c21..6f8dba5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1084,6 +1084,7 @@ dist_patch_DATA =
\
%D%/packages/patches/http-parser-fix-assertion-on-armhf.patch \
%D%/packages/patches/hubbub-sort-entities.patch \
%D%/packages/patches/hurd-cross.patch \
+ %D%/packages/patches/hurd-xattr.patch \
%D%/packages/patches/hplip-remove-imageprocessor.patch \
%D%/packages/patches/hydra-disable-darcs-test.patch \
%D%/packages/patches/icecat-makeicecat.patch \
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 55c4071..278568b 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -377,7 +377,8 @@ boot, since this cannot be done from GNU/Linux."
(name "hurd")
(version (package-version hurd-headers))
(source (origin (inherit (package-source hurd-headers))
- (patches (search-patches "hurd-cross.patch"))))
+ (patches (search-patches "hurd-cross.patch"
+ "hurd-xattr.patch"))))
(arguments
`(#:phases
(modify-phases %standard-phases
diff --git a/gnu/packages/patches/hurd-xattr.patch
b/gnu/packages/patches/hurd-xattr.patch
new file mode 100644
index 0000000..0a922c9
--- /dev/null
+++ b/gnu/packages/patches/hurd-xattr.patch
@@ -0,0 +1,53 @@
+From 75cb948c575fca3962c4cce115d31dd178bc389f Mon Sep 17 00:00:00 2001
+From: "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org>
+Date: Tue, 12 May 2020 07:39:59 +0200
+Subject: [PATCH] ext2fs: Update to upstream Hurd-reserved xattr index for
+ "gnu.*".
+
+See
+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3980bd3b406addb327d858aebd19e229ea340b9a
+
+This supports setting (and reading) of passive trasnlators from
+GNU/Linux, e.g.
+
+ dd if=/dev/zero of=file bs=1k count=1000
+ losetup /dev/loop0 file
+ mke2fs -t ext2 -o hurd -O ext_attr /dev/loop0
+ mount -t ext2 -o x-xattr-translator-records /dev/loop0 /mnt
+ mkdir -p /mnt/servers/socket
+ touch /mnt/servers/socket/1
+ setfattr --name=gnu.translator --value='/hurd/pflocal\0'
/mnt/servers/socket/1
+ getfattr --name=gnu.translator /mnt/servers/socket/1
+ # file: 1
+ gnu.translator="/hurd/pflocal"
+
+* ext2fs/xattr.c (struct _xattr_prefix): For "gnu.*", use index for
+the Hurd (10).
+---
+ ext2fs/xattr.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c
+index f6ea0f39..78458214 100644
+--- a/ext2fs/xattr.c
++++ b/ext2fs/xattr.c
+@@ -1,6 +1,6 @@
+ /* Ext2 support for extended attributes
+
+- Copyright (C) 2006, 2016 Free Software Foundation, Inc.
++ Copyright (C) 2006, 2016, 2020 Free Software Foundation, Inc.
+
+ Written by Thadeu Lima de Souza Cascardo <cascardo@dcc.ufmg.br>
+ and Shengyu Zhang <lastavengers@outlook.com>
+@@ -39,7 +39,7 @@ xattr_prefixes[] =
+ {
+ 1, "user.", sizeof "user." - 1},
+ {
+- 7, "gnu.", sizeof "gnu." - 1},
++ 10, "gnu.", sizeof "gnu." - 1},
+ {
+ 0, NULL, 0}
+ };
+--
+2.26.0
+
- 02/27: vm: 'expression->derivation-in-linux-vm' always returns a native build., (continued)
- 02/27: vm: 'expression->derivation-in-linux-vm' always returns a native build., guix-commits, 2020/05/29
- 03/27: vm: 'qemu-image' uses the native partitioning tools and bootloader., guix-commits, 2020/05/29
- 09/27: image: Add Hurd support., guix-commits, 2020/05/29
- 12/27: system: hurd: Add hurd-default-essential-services., guix-commits, 2020/05/29
- 10/27: linux-boot: Update 'make-hurd-device-nodes'., guix-commits, 2020/05/29
- 13/27: system: Add 'hurd' field to <operating-system>., guix-commits, 2020/05/29
- 14/27: bootloader: Extend `<menu-entry>' for multiboot., guix-commits, 2020/05/29
- 05/27: vm: <virtual-machine> compiler honors system and target., guix-commits, 2020/05/29
- 06/27: vm: Shared-store script runs that native QEMU and Bash., guix-commits, 2020/05/29
- 07/27: gnu: guile-static: Disable JIT on ARMv7., guix-commits, 2020/05/29
- 08/27: gnu: hurd: Update to upstream Hurd-reserved xattr index.,
guix-commits <=
- 15/27: system: Add 'multiboot-modules' field to <boot-parameters>., guix-commits, 2020/05/29
- 19/27: services: hurd: Add `hurd-etc-service'., guix-commits, 2020/05/29
- 11/27: image: Support extra-directives, add hurd-directives., guix-commits, 2020/05/29
- 16/27: bootloader: grub: Add support for multiboot., guix-commits, 2020/05/29
- 17/27: system: Use 'hurd' package in label., guix-commits, 2020/05/29
- 20/27: system: Add `hurd-activation'., guix-commits, 2020/05/29
- 22/27: gnu: hurd: Create minimal "runsystem" script to invoke "rc"., guix-commits, 2020/05/29
- 24/27: services: Add `hurd-getty-service-type'., guix-commits, 2020/05/29
- 27/27: system: bare-hurd.tmpl: Add openssh client and service., guix-commits, 2020/05/29
- 21/27: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/29