GNU bug report logs - #47865
Missing dependency for sysv-init

Previous Next

Package: guix;

Reported by: Gabriel Hondet <gabrielhondet <at> gmail.com>

Date: Sun, 18 Apr 2021 07:17:02 UTC

Severity: normal

To reply to this bug, email your comments to 47865 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Sun, 18 Apr 2021 07:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gabriel Hondet <gabrielhondet <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 18 Apr 2021 07:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gabriel Hondet <gabrielhondet <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Missing dependency for sysv-init
Date: Sun, 18 Apr 2021 09:15:09 +0200
Hi,

I installed Guix on Devuan with SysV-init, but the script copied in
/etc/init.d/ uses the command "daemonize" which isn't listed in the
dependencies of "guix-install.sh". Consequently, guix is installed but
cannot be started, the command

    service guix-daemon start

returns

    /etc/init.d/guix-daemon: line 32: daemonize: command not found

Best wishes,
Gabriel




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Sun, 18 Apr 2021 17:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 47865 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Gabriel Hondet <gabrielhondet <at> gmail.com>
Cc: 47865 <at> debbugs.gnu.org
Subject: Re: bug#47865: Missing dependency for sysv-init
Date: Sun, 18 Apr 2021 13:13:04 -0400
On Sun, Apr 18, 2021 at 09:15:09AM +0200, Gabriel Hondet wrote:
> I installed Guix on Devuan with SysV-init, but the script copied in
> /etc/init.d/ uses the command "daemonize" which isn't listed in the
> dependencies of "guix-install.sh". Consequently, guix is installed but
> cannot be started, the command
> 
>     service guix-daemon start
> 
> returns
> 
>     /etc/init.d/guix-daemon: line 32: daemonize: command not found

Do you know where this `daemonize` command is supposed to come from? I
don't see a package with this name in Guix. Is it part of Devuan?




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Sun, 18 Apr 2021 18:01:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: bug-guix <at> gnu.org
Subject: Re: bug#47865: Missing dependency for sysv-init
Date: Sun, 18 Apr 2021 20:00:35 +0200
Le Sun, 18 Apr 2021 13:13:04 -0400,
Leo Famulari <leo <at> famulari.name> a écrit :

> On Sun, Apr 18, 2021 at 09:15:09AM +0200, Gabriel Hondet wrote:
> > I installed Guix on Devuan with SysV-init, but the script copied in
> > /etc/init.d/ uses the command "daemonize" which isn't listed in the
> > dependencies of "guix-install.sh". Consequently, guix is installed
> > but cannot be started, the command
> > 
> >     service guix-daemon start
> > 
> > returns
> > 
> >     /etc/init.d/guix-daemon: line 32: daemonize: command not found  
> 
> Do you know where this `daemonize` command is supposed to come from? I
> don't see a package with this name in Guix. Is it part of Devuan?
> 
> 
> 

Debian has a package called daemonize:
https://packages.debian.org/bullseye/daemonize




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Mon, 19 Apr 2021 12:34:03 GMT) Full text and rfc822 format available.

Message #14 received at 47865 <at> debbugs.gnu.org (full text, mbox):

From: Gabriel Hondet <gabrielhondet <at> gmail.com>
To: Leo Famulari <leo <at> famulari.name>
Cc: 47865 <at> debbugs.gnu.org
Subject: Re: bug#47865: Missing dependency for sysv-init
Date: Mon, 19 Apr 2021 14:33:23 +0200
On Sun, Apr 18, 2021 at 01:13:04PM -0400, Leo Famulari wrote:
> On Sun, Apr 18, 2021 at 09:15:09AM +0200, Gabriel Hondet wrote:
> > I installed Guix on Devuan with SysV-init, but the script copied in
> > /etc/init.d/ uses the command "daemonize" which isn't listed in the
> > dependencies of "guix-install.sh". Consequently, guix is installed but
> > cannot be started, the command
> > 
> >     service guix-daemon start
> > 
> > returns
> > 
> >     /etc/init.d/guix-daemon: line 32: daemonize: command not found
> 
> Do you know where this `daemonize` command is supposed to come from? I
> don't see a package with this name in Guix. Is it part of Devuan?

Devuan has such a package (as well as Debian):

Package: daemonize
Version: 1.7.7-1+b1
Priority: optional
Section: admin
Source: daemonize (1.7.7-1)
Maintainer: Sandro Tosi <morph <at> debian.org>
Installed-Size: 36.9 kB
Depends: libc6 (>= 2.4)
Homepage: http://software.clapper.org/daemonize/
Download-Size: 15.1 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.devuan.org/merged beowulf/main amd64 Packages
Description: tool to run a command as a daemon
 As defined in W. Richard Stevens’ 1990 book, UNIX Network Programming
 (Addison-Wesley, 1990), a daemon is “a process that executes ‘in the
 background’ i.e., without an associated terminal or login shell) either
 waiting for some event to occur, or waiting to perform some specified task on a
 periodic basis.” Upon startup, a typical daemon program will:
 .
  * Close all open file descriptors (especially standard input, standard output
    and standard error)
  * Change its working directory to the root filesystem, to ensure that it
    doesn’t tie up another filesystem and prevent it from being unmounted
  * Reset its umask value
  * Run in the background (i.e., fork)
  * Disassociate from its process group (usually a shell), to insulate itself
    from signals (such as HUP) sent to the process group
  * Ignore all terminal I/O signals
  * Disassociate from the control terminal (and take steps not to reacquire one)
  * Handle any SIGCLD signals
 .
 Most programs that are designed to be run as daemons do that work for
 themselves. However, you’ll occasionally run across one that does not. When
 you must run a daemon program that does not properly make itself into a true
 Unix daemon, you can use daemonize to force it to run as a true daemon.




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Mon, 19 Apr 2021 17:23:02 GMT) Full text and rfc822 format available.

Message #17 received at 47865 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Gabriel Hondet <gabrielhondet <at> gmail.com>
Cc: 47865 <at> debbugs.gnu.org
Subject: Re: bug#47865: Missing dependency for sysv-init
Date: Mon, 19 Apr 2021 13:21:47 -0400
On Mon, Apr 19, 2021 at 02:33:23PM +0200, Gabriel Hondet wrote:
> On Sun, Apr 18, 2021 at 01:13:04PM -0400, Leo Famulari wrote:
> > Do you know where this `daemonize` command is supposed to come from? I
> > don't see a package with this name in Guix. Is it part of Devuan?
> 
> Devuan has such a package (as well as Debian):
> 
> Package: daemonize

Okay. So I guess that what we need to do here is add 'daemonize' to the
REQUIRE list in guix-install.sh.




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Mon, 19 Apr 2021 17:25:01 GMT) Full text and rfc822 format available.

Message #20 received at 47865 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Gabriel Hondet <gabrielhondet <at> gmail.com>
Cc: 47865 <at> debbugs.gnu.org
Subject: Re: bug#47865: Missing dependency for sysv-init
Date: Mon, 19 Apr 2021 13:24:36 -0400
On Mon, Apr 19, 2021 at 01:21:47PM -0400, Leo Famulari wrote:
> Okay. So I guess that what we need to do here is add 'daemonize' to the
> REQUIRE list in guix-install.sh.

Well, I thought it about for a bit longer, and realized that we don't
want the script to require this command, since it is only used on
systems using SysV init.

Does anybody know if the install script has a mechanism for optional
dependencies? How should we handle this?




Information forwarded to bug-guix <at> gnu.org:
bug#47865; Package guix. (Tue, 13 Feb 2024 23:33:02 GMT) Full text and rfc822 format available.

Message #23 received at 47865 <at> debbugs.gnu.org (full text, mbox):

From: guido <guido+guix <at> wtmnd.nl>
To: 47865 <at> debbugs.gnu.org
Subject: Missing dependency for sysv-init
Date: Tue, 13 Feb 2024 23:31:59 +0100
Hi all,

I run a Devuan system with SysV init and made a fix.

Please find it here: (sorry, git-send-email does not work yet..)

index 982fb0a266..a09fd8fef1 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -210,6 +210,9 @@ chk_init_sys()
     elif [[ -f /etc/init.d/cron && ! -h /etc/init.d/cron ]]; then
         _msg "${INF}init system is: sysv-init"
         INIT_SYS="sysv-init"
+        # SysV init on Devuan (and probably others)  use
start-stop-daemon
+        # and need daemonize as extra dependency.
+        REQUIRE+=(daemonize)
         return 0
     elif [[ $(openrc --version 2>/dev/null) =~ \(OpenRC\) ]]; then
         _msg "${INF}init system is: OpenRC"
@@ -673,9 +676,9 @@ main()
     _msg "Starting installation ($(date))"
      chk_term
-    chk_require "${REQUIRE[@]}"
     chk_gpg_keyring
     chk_init_sys
+    chk_require "${REQUIRE[@]}"
     chk_sys_arch
     chk_sys_nscd


Kind regards,

Guido Witmond.




This bug report was last modified 1 year and 119 days ago.

Previous Next


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