GNU bug report logs - #46305
[PATCH] gnu: miredo: Fix creation of .pid file.

Previous Next

Package: guix-patches;

Reported by: Léo Le Bouter <lle-bout <at> zaclys.net>

Date: Thu, 4 Feb 2021 22:35:01 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> outlook.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: 宋文武 <iyzsong <at> outlook.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#46305: closed ([PATCH] gnu: miredo: Fix creation of .pid file.)
Date: Thu, 11 Feb 2021 09:20:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 11 Feb 2021 17:20:58 +0800
with message-id <OSZP286MB0664D4510E68C7C091F80A67A38C9 <at> OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM>
and subject line Re: [bug#46305] [PATCH] gnu: miredo: Fix creation of .pid file.
has caused the debbugs.gnu.org bug report #46305,
regarding [PATCH] gnu: miredo: Fix creation of .pid file.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
46305: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46305
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Léo Le Bouter <lle-bout <at> zaclys.net>
To: guix-patches <at> gnu.org
Cc: Léo Le Bouter <lle-bout <at> zaclys.net>
Subject: [PATCH] gnu: miredo: Fix creation of .pid file.
Date: Thu,  4 Feb 2021 23:33:53 +0100
* gnu/packages/networking.scm (miredo)[arguments]: Add "--localstatedir=/var"
to #:configure-flags and add 'do-not-create-/run phase to #:phases to remove
code that tries to create a directory inside "@localstatedir@" during install.
---
 gnu/packages/networking.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index abaab60f31..5e0022ac76 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -700,8 +700,16 @@ or, more generally, MAC addresses of the same category of hardware.")
                 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     '(#:configure-flags
+       (list "--localstatedir=/var")
+       #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'do-not-create-/run
+           (lambda _
+             (substitute* (find-files "src" "Makefile.*")
+               (("^.+install_sh.+/run.+$")
+                "\ttrue"))
+             #t))
          (add-after 'unpack 'patch-iproute2
            (lambda* (#:key inputs #:allow-other-keys)
              (let* ((iproute (assoc-ref inputs "iproute"))
-- 
2.30.0



[Message part 3 (message/rfc822, inline)]
From: 宋文武 <iyzsong <at> outlook.com>
To: Léo Le Bouter <lle-bout <at> zaclys.net>
Cc: 46305-done <at> debbugs.gnu.org
Subject: Re: [bug#46305] [PATCH] gnu: miredo: Fix creation of .pid file.
Date: Thu, 11 Feb 2021 17:20:58 +0800
Léo Le Bouter <lle-bout <at> zaclys.net> writes:

> * gnu/packages/networking.scm (miredo)[arguments]: Add "--localstatedir=/var"
> to #:configure-flags and add 'do-not-create-/run phase to #:phases to remove
> code that tries to create a directory inside "@localstatedir@" during install.

Pushed, thank you!


This bug report was last modified 4 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.