From unknown Sun Jun 22 04:02:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39975: Shepherd 0.7.0 [PATCH] services: Support compilation on the Hurd. Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 Mar 2020 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39975 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: 39975@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158359375620465 (code B ref -1); Sat, 07 Mar 2020 15:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2020 15:09:16 +0000 Received: from localhost ([127.0.0.1]:47320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAb4g-0005Jp-DA for submit@debbugs.gnu.org; Sat, 07 Mar 2020 10:09:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:57141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAb4e-0005Jh-Fa for submit@debbugs.gnu.org; Sat, 07 Mar 2020 10:09:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58059) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb4c-0008IA-UH for bug-guix@gnu.org; Sat, 07 Mar 2020 10:09:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_20, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAb4c-0007gw-Oy; Sat, 07 Mar 2020 10:09:06 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=53772 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAb4c-0005GK-BJ; Sat, 07 Mar 2020 10:09:06 -0500 From: Jan Nieuwenhuizen Date: Sat, 07 Mar 2020 16:09:03 +0100 Message-ID: <87y2sc6w34.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, Compilation on the Hurd fails with --8<---------------cut here---------------start------------->8--- GUILEC modules/shepherd.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild ;;; WARNING: compilation of /gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild failed: ;;; failed to create path for auto-compiled file "/gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild" Backtrace: In ice-9/boot-9.scm: 222:29 19 (map1 _) 222:29 18 (map1 _) 222:29 17 (map1 _) 222:29 16 (map1 _) 222:29 15 (map1 _) 222:29 14 (map1 (((shepherd comm)) ((shepherd config)) ((# #)))) 222:29 13 (map1 (((shepherd config)) ((shepherd system)))) 222:17 12 (map1 (((shepherd system)))) 2800:17 11 (resolve-interface (shepherd system) #:select _ #:hide _ ?) In ice-9/threads.scm: 390:8 10 (_ _) In ice-9/boot-9.scm: 2726:13 9 (_) In ice-9/threads.scm: 390:8 8 (_ _) In ice-9/boot-9.scm: 2994:20 7 (_) 2312:4 6 (save-module-excursion #) 3014:26 5 (_) In unknown file: 4 (primitive-load-path "shepherd/system" #) In ice-9/eval.scm: 626:19 3 (_ #) 245:16 2 (_ #) In unknown file: 1 (dynamic-func "prctl" #) In ice-9/boot-9.scm: 752:25 0 (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure dispatch-exception: In procedure dynamic-pointer: Symbol not found: prctl Makefile:2070: recipe for target 'modules/shepherd.go' failed --8<---------------cut here---------------end--------------->8--- Find patch attached. Greetings, janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-services-Support-compilation-on-the-Hurd.patch Content-Transfer-Encoding: quoted-printable >From ac06193300aea17d6e6d1ad784585542815af94b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 7 Mar 2020 16:04:27 +0100 Subject: [PATCH] services: Support compilation on the Hurd. * modules/shepherd/system.scm.in (prctl): Catch compile-time error. --- modules/shepherd/system.scm.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/shepherd/system.scm.in b/modules/shepherd/system.scm.in index 769404a..7def22d 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=C3=A8s ;; Copyright (C) 2018 Carlo Zancanaro +;; Copyright (C) 2020 Jan (janneke) Nieuwenhuizen ;; ;; This file is part of the GNU Shepherd. ;; @@ -145,7 +146,9 @@ ctrlaltdel(8) and see kernel/reboot.c in Linux." (define PR_SET_CHILD_SUBREAPER @PR_SET_CHILD_SUBREAPER@) =20 (define prctl - (if (dynamic-func "prctl" (dynamic-link)) + (if (catch #t + (lambda _ (dynamic-func "prctl" (dynamic-link))) + (const #f)) (let ((proc (syscall->procedure long "prctl" (list int int)))) (lambda (process operation) "Perform an operation on the given process" --=20 2.24.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- From unknown Sun Jun 22 04:02:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jan Nieuwenhuizen Subject: bug#39975: closed (Re: bug#39975: Shepherd 0.7.0 [PATCH] services: Support compilation on the Hurd.) Message-ID: References: <87a74rg9l7.fsf@gnu.org> <87y2sc6w34.fsf@gnu.org> X-Gnu-PR-Message: they-closed 39975 X-Gnu-PR-Package: guix X-Gnu-PR-Keywords: patch Reply-To: 39975@debbugs.gnu.org Date: Sat, 07 Mar 2020 21:06:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1583615162-3714-1" This is a multi-part message in MIME format... ------------=_1583615162-3714-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39975: Shepherd 0.7.0 [PATCH] services: Support compilation on the Hurd. which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 39975@debbugs.gnu.org. --=20 39975: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39975 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1583615162-3714-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39975-done) by debbugs.gnu.org; 7 Mar 2020 21:05:03 +0000 Received: from localhost ([127.0.0.1]:47639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAgd5-0000wd-2J for submit@debbugs.gnu.org; Sat, 07 Mar 2020 16:05:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAgd3-0000w7-Hw for 39975-done@debbugs.gnu.org; Sat, 07 Mar 2020 16:05:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAgcx-0003Mf-Ed; Sat, 07 Mar 2020 16:04:55 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34288 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAgcw-0002py-Kp; Sat, 07 Mar 2020 16:04:55 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: bug#39975: Shepherd 0.7.0 [PATCH] services: Support compilation on the Hurd. References: <87y2sc6w34.fsf@gnu.org> Date: Sat, 07 Mar 2020 22:04:52 +0100 In-Reply-To: <87y2sc6w34.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 07 Mar 2020 16:09:03 +0100") Message-ID: <87a74rg9l7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39975-done Cc: 39975-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello! Jan Nieuwenhuizen skribis: > (define prctl > - (if (dynamic-func "prctl" (dynamic-link)) > + (if (catch #t > + (lambda _ (dynamic-func "prctl" (dynamic-link))) > + (const #f)) I changed it to =E2=80=98false-if-exception=E2=80=99 and pushed, thanks! There are exciting things going on here it seems. :-) Ludo=E2=80=99. ------------=_1583615162-3714-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Mar 2020 15:09:16 +0000 Received: from localhost ([127.0.0.1]:47320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAb4g-0005Jp-DA for submit@debbugs.gnu.org; Sat, 07 Mar 2020 10:09:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:57141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAb4e-0005Jh-Fa for submit@debbugs.gnu.org; Sat, 07 Mar 2020 10:09:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58059) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb4c-0008IA-UH for bug-guix@gnu.org; Sat, 07 Mar 2020 10:09:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_20, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAb4c-0007gw-Oy; Sat, 07 Mar 2020 10:09:06 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=53772 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAb4c-0005GK-BJ; Sat, 07 Mar 2020 10:09:06 -0500 From: Jan Nieuwenhuizen To: bug-guix@gnu.org Subject: Shepherd 0.7.0 [PATCH] services: Support compilation on the Hurd. Date: Sat, 07 Mar 2020 16:09:03 +0100 Message-ID: <87y2sc6w34.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, Compilation on the Hurd fails with --8<---------------cut here---------------start------------->8--- GUILEC modules/shepherd.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild ;;; WARNING: compilation of /gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild failed: ;;; failed to create path for auto-compiled file "/gnu/store/wq6m0l53hffnf9qa9hwdjqskcw54amf6-guile-2.2.6/bin/guild" Backtrace: In ice-9/boot-9.scm: 222:29 19 (map1 _) 222:29 18 (map1 _) 222:29 17 (map1 _) 222:29 16 (map1 _) 222:29 15 (map1 _) 222:29 14 (map1 (((shepherd comm)) ((shepherd config)) ((# #)))) 222:29 13 (map1 (((shepherd config)) ((shepherd system)))) 222:17 12 (map1 (((shepherd system)))) 2800:17 11 (resolve-interface (shepherd system) #:select _ #:hide _ ?) In ice-9/threads.scm: 390:8 10 (_ _) In ice-9/boot-9.scm: 2726:13 9 (_) In ice-9/threads.scm: 390:8 8 (_ _) In ice-9/boot-9.scm: 2994:20 7 (_) 2312:4 6 (save-module-excursion #) 3014:26 5 (_) In unknown file: 4 (primitive-load-path "shepherd/system" #) In ice-9/eval.scm: 626:19 3 (_ #) 245:16 2 (_ #) In unknown file: 1 (dynamic-func "prctl" #) In ice-9/boot-9.scm: 752:25 0 (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure dispatch-exception: In procedure dynamic-pointer: Symbol not found: prctl Makefile:2070: recipe for target 'modules/shepherd.go' failed --8<---------------cut here---------------end--------------->8--- Find patch attached. Greetings, janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-services-Support-compilation-on-the-Hurd.patch Content-Transfer-Encoding: quoted-printable >From ac06193300aea17d6e6d1ad784585542815af94b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 7 Mar 2020 16:04:27 +0100 Subject: [PATCH] services: Support compilation on the Hurd. * modules/shepherd/system.scm.in (prctl): Catch compile-time error. --- modules/shepherd/system.scm.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/shepherd/system.scm.in b/modules/shepherd/system.scm.in index 769404a..7def22d 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=C3=A8s ;; Copyright (C) 2018 Carlo Zancanaro +;; Copyright (C) 2020 Jan (janneke) Nieuwenhuizen ;; ;; This file is part of the GNU Shepherd. ;; @@ -145,7 +146,9 @@ ctrlaltdel(8) and see kernel/reboot.c in Linux." (define PR_SET_CHILD_SUBREAPER @PR_SET_CHILD_SUBREAPER@) =20 (define prctl - (if (dynamic-func "prctl" (dynamic-link)) + (if (catch #t + (lambda _ (dynamic-func "prctl" (dynamic-link))) + (const #f)) (let ((proc (syscall->procedure long "prctl" (list int int)))) (lambda (process operation) "Perform an operation on the given process" --=20 2.24.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- ------------=_1583615162-3714-1--