Browse Source

hurd-boot: Use 'setxattr' instead of invoking settrans.

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-embedding of translators.
wip-haskell-updates-2
Jan (janneke) Nieuwenhuizen 2 years ago
committed by Jan Nieuwenhuizen
parent
commit
f25e8f76fe
No known key found for this signature in database GPG Key ID: F3C1A0D9C1D65273
  1. 2
      gnu/build/hurd-boot.scm
  2. 1
      gnu/system.scm

2
gnu/build/hurd-boot.scm

@ -144,7 +144,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"

1
gnu/system.scm

@ -1191,6 +1191,7 @@ a list of <menu-entry>, 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

Loading…
Cancel
Save