[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/30: gnu: shepherd: Build fix for the Hurd.
From: |
guix-commits |
Subject: |
26/30: gnu: shepherd: Build fix for the Hurd. |
Date: |
Sat, 21 Mar 2020 19:36:31 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit ec88c415fb2b8c00dd4bdbfbb5b34424590ae031
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sat Mar 7 16:11:48 2020 +0100
gnu: shepherd: Build fix for the Hurd.
* gnu/packages/patches/shepherd-hurd.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/admin.scm (shepherd): Use it.
---
gnu/local.mk | 1 +
gnu/packages/admin.scm | 2 ++
gnu/packages/patches/shepherd-hurd.patch | 44 ++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 43212d5..243c605 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1427,6 +1427,7 @@ dist_patch_DATA =
\
%D%/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch \
%D%/packages/patches/seq24-rename-mutex.patch \
%D%/packages/patches/sharutils-CVE-2018-1000097.patch \
+ %D%/packages/patches/shepherd-hurd.patch \
%D%/packages/patches/shishi-fix-libgcrypt-detection.patch \
%D%/packages/patches/slim-session.patch \
%D%/packages/patches/slim-config.patch \
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index a296d6c..4958d67 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -74,6 +74,7 @@
#:use-module (gnu packages file)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages hurd)
#:use-module (gnu packages libbsd)
#:use-module (gnu packages linux)
#:use-module (gnu packages lua)
@@ -202,6 +203,7 @@ and provides a \"top-like\" mode (monitoring).")
(method url-fetch)
(uri (string-append "mirror://gnu/shepherd/shepherd-"
version ".tar.gz"))
+ (patches (search-patches "shepherd-hurd.patch"))
(sha256
(base32
"07j3vd0y8zab2nwbrwj0ahrfif1ldm5sjssn7m3dw4s307fsrfzx"))))
diff --git a/gnu/packages/patches/shepherd-hurd.patch
b/gnu/packages/patches/shepherd-hurd.patch
new file mode 100644
index 0000000..5043e83
--- /dev/null
+++ b/gnu/packages/patches/shepherd-hurd.patch
@@ -0,0 +1,44 @@
+Fixes compilation on the Hurd.
+
+Taken from upstream:
http://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=232331369fe2a0495c7c777e11eecabee6257b3f
+
+From 232331369fe2a0495c7c777e11eecabee6257b3f Mon Sep 17 00:00:00 2001
+From: Jan Nieuwenhuizen <address@hidden>
+Date: Sat, 7 Mar 2020 22:01:23 +0100
+Subject: [PATCH] system: Support compilation on the Hurd.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+* modules/shepherd/system.scm.in (prctl): Wrap 'dynamic-func' call in
+'false-if-exception'.
+
+Co-authored-by: Ludovic Courtès <address@hidden>
+---
+ modules/shepherd/system.scm.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/modules/shepherd/system.scm.in b/modules/shepherd/system.scm.in
+index 769404a..0b2cc9d 100644
+--- a/modules/shepherd/system.scm.in
++++ b/modules/shepherd/system.scm.in
+@@ -1,6 +1,7 @@
+ ;; system.scm -- Low-level operating system interface.
+ ;; Copyright (C) 2013, 2014, 2016, 2018 Ludovic Courtès <address@hidden>
+ ;; Copyright (C) 2018 Carlo Zancanaro <address@hidden>
++;; Copyright (C) 2020 Jan (janneke) Nieuwenhuizen <address@hidden>
+ ;;
+ ;; This file is part of the GNU Shepherd.
+ ;;
+@@ -145,7 +146,7 @@ ctrlaltdel(8) and see kernel/reboot.c in Linux."
+ (define PR_SET_CHILD_SUBREAPER @PR_SET_CHILD_SUBREAPER@)
+
+ (define prctl
+- (if (dynamic-func "prctl" (dynamic-link))
++ (if (false-if-exception (dynamic-func "prctl" (dynamic-link)))
+ (let ((proc (syscall->procedure long "prctl" (list int int))))
+ (lambda (process operation)
+ "Perform an operation on the given process"
+--
+2.24.0
+
- 12/30: gnu: commencement: gnumach-headers-boot0: Build from tarball., (continued)
- 12/30: gnu: commencement: gnumach-headers-boot0: Build from tarball., guix-commits, 2020/03/21
- 06/30: Revert "gnu: guile-static-stripped: Update to 2.2.", guix-commits, 2020/03/21
- 14/30: gnu: commencement: hurd-minimal-boot0: Build from tarball., guix-commits, 2020/03/21
- 13/30: gnu: commencement: hurd-headers-boot0: Build from tarball., guix-commits, 2020/03/21
- 16/30: gnu: commencement: hurd-source: Update to latest git., guix-commits, 2020/03/21
- 17/30: gnu: commencement: gnumach-headers-boot0: Update to 1.8-116-g28b53508., guix-commits, 2020/03/21
- 18/30: gnu: commencement: glibc-final: Allow gnumach-headers references., guix-commits, 2020/03/21
- 20/30: daemon: Do not use clone on the Hurd., guix-commits, 2020/03/21
- 22/30: gnu: less: Build fix for the Hurd., guix-commits, 2020/03/21
- 24/30: gnu: shadow: Add linux-pam dependency for the Hurd., guix-commits, 2020/03/21
- 26/30: gnu: shepherd: Build fix for the Hurd.,
guix-commits <=
- 09/30: gnu: bootstrap: Add support for the Hurd., guix-commits, 2020/03/21
- 19/30: gnu: hurd: Update to hurd-headers version: 0.9-91a51672., guix-commits, 2020/03/21
- 21/30: daemon: Avoid kill -1 bug on the Hurd., guix-commits, 2020/03/21
- 23/30: gnu: fontconfig: Build fix for the Hurd., guix-commits, 2020/03/21
- 25/30: gnu: pciutils: Build fixes for the Hurd., guix-commits, 2020/03/21
- 28/30: gnu: screen: Build fix for the Hurd., guix-commits, 2020/03/21
- 29/30: gnu: shadow: Build fix for the Hurd., guix-commits, 2020/03/21
- 27/30: gnu: inetutils: Support for the Hurd., guix-commits, 2020/03/21
- 30/30: gnu: mit-krb5: Supprt for the Hurd., guix-commits, 2020/03/21