summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2026-06-08 06:45:36 +0000
committerAndreas Enge <andreas@enge.fr>2026-08-23 16:37:52 +0200
commitf3b08ab74494be89bab6cdc3894e420fc06cea97 (patch)
tree32c643dfbe3f199bad4f4ad0b731832667a156fc
parente6450e430f4d111f0fa30ccfa1a004fdc52da0b4 (diff)
gnu: glibc: Enable pt_chown on the Hurd.
Fixes https://issues.guix.gnu.org/59616. * gnu/packages/base.scm (glibc)[#:configure-flags]: Enable pt_chown. [#:phases]: Add phase to patch path to suid pt_chown. Change-Id: Iaf6b851874cd94ffd6df269fc56c97910a5dee0d
-rw-r--r--gnu/packages/base.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 905af86a6b8..97086f227f9 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1031,11 +1031,23 @@ the store.")
1031 ;; 'device_write_inband' among other things. Ignore them. 1031 ;; 'device_write_inband' among other things. Ignore them.
1032 #$@(if (target-hurd?) 1032 #$@(if (target-hurd?)
1033 #~("--disable-werror") 1033 #~("--disable-werror")
1034 #~())
1035 #$@(if (target-hurd?)
1036 #~("--enable-pt_chown") ; build pt_chown for openpty/grantpt
1034 #~())) 1037 #~()))
1035 1038
1036 #:tests? #f ; XXX 1039 #:tests? #f ; XXX
1037 #:phases 1040 #:phases
1038 #~(modify-phases %standard-phases 1041 #~(modify-phases %standard-phases
1042 #$@(if (target-hurd?)
1043 #~((add-before 'configure 'pt-chown
1044 (lambda _
1045 (substitute* "login/Makefile"
1046 (("-o root") ""))
1047 ;; Adjust the file name to the 'pt_chown' setuid program.
1048 (substitute* "sysdeps/generic/pty-private.h"
1049 (("LIBEXECDIR") "\"/run/privileged/bin\"")))))
1050 #~())
1039 (add-before 'configure 'pre-configure 1051 (add-before 'configure 'pre-configure
1040 (lambda* (#:key inputs native-inputs #:allow-other-keys) 1052 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1041 (let* ((bin (string-append #$output "/bin")) 1053 (let* ((bin (string-append #$output "/bin"))