GNU bug report logs - #40601
guix-install.sh: port to other distros & init systems

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Vincent Legoll <vincent.legoll@HIDDEN>; Keywords: patch; dated Mon, 13 Apr 2020 16:05:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 17 May 2020 17:15:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 17 13:15:57 2020
Received: from localhost ([127.0.0.1]:44532 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jaMtJ-0005im-53
	for submit <at> debbugs.gnu.org; Sun, 17 May 2020 13:15:57 -0400
Received: from mail-wr1-f51.google.com ([209.85.221.51]:45341)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jaMtG-0005bI-Gs
 for 40601 <at> debbugs.gnu.org; Sun, 17 May 2020 13:15:54 -0400
Received: by mail-wr1-f51.google.com with SMTP id v12so9031597wrp.12
 for <40601 <at> debbugs.gnu.org>; Sun, 17 May 2020 10:15:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=AJPa3u0cTH97iNj5B2ib9uwf2SGkiIiIyXFz98I9US0=;
 b=oba/hJmxRFLkluUmsaC+yxD8lxJS284q4+OLPNWyxnPJlRmnF/dykIpB4S7YmUYs5B
 MS09kR1o40eEuoYvuzuAshqi1P9g2tkHEPQGCKhmqCqo+oHwwUfqetBII5WSWz+y0AH7
 YBW+nyRqjAXLUNEQ7V7AJcXZFV5/aRAXrbULUX3AkgmDryi8jz591gaND2G4MoF2JLhl
 mImmBa3nYwIFF4dJ+z1ih7IriKzT1yYg1772/gMsDDgdgSUthcE3kS6Q6SMy+NE4wbOD
 zYZpd6wb5eFhXvFotNBGZmb9MmlJk8PyJ7AeHJ+r8uKpCBc2kIYvbdRLCbWY74e2jDdZ
 fV+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-language:content-transfer-encoding;
 bh=AJPa3u0cTH97iNj5B2ib9uwf2SGkiIiIyXFz98I9US0=;
 b=eiWy/GvxsDqurNmqF3DH6qK8MdRVjp595Q8nqQ53WF3EPAADMrhzv8gAgTTJsrj6kd
 E38YbSkLk6rCrOgXfh0/x+Fh4zjkkEyAlBCv8DuOqmZQOoUevDwBXw/3B1ZP17p1tLX0
 O038FI1IRqMg8G8HQuhn+As1edMSr9X2f+69fmp9HbwgC33bmnjMk9gB9BaGfC8d7qKY
 DnefY0PIaBVbQx16Ulbc73Y+4Yjnc+K7Q6AvNcNn7bmvQwEl22l/LHDMpx23UXu59qUy
 a7Y83yIctQOjg8UloJgBrRg3SarY/5LNNiciQbsVLCJ+CfDQKLx6gQKyN5JzwI0vU9hY
 JwVQ==
X-Gm-Message-State: AOAM533SDYdT3qlwa7ugTebDnkNqQBNIf8WDmXEFu6t6kLHv2QmAGZxr
 yfyQsZsGMmrjCh+dUOIpjsAsb7GV
X-Google-Smtp-Source: ABdhPJzAre8iyawyW1G5pH9llY/X8yr/c6QDfD6b6h2YKdOOJGZ6rGfJmuR9PDwdEzB/DERLZFiyYQ==
X-Received: by 2002:a5d:6085:: with SMTP id w5mr15020643wrt.322.1589735748324; 
 Sun, 17 May 2020 10:15:48 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id d9sm12831328wmd.10.2020.05.17.10.15.47
 for <40601 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 17 May 2020 10:15:47 -0700 (PDT)
To: 40601 <at> debbugs.gnu.org
From: Vincent Legoll <vincent.legoll@HIDDEN>
Subject: [RFC, PATCH 0/28] guix-install.sh: port to other distros & init
 systems
Message-ID: <12af851d-73b6-5865-8950-857c2158d41e@HIDDEN>
Date: Sun, 17 May 2020 19:15:46 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40601
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Here is a RFC series of patches that add a few things:

- small fixes & cleanups
- removing some (not all) bashisms
- non-interactive mode (useful for (semi-) automated
   testing)
- openrc init system support
- runit init system support
- busybox compatibility (for alpine support)
- handle local guix-binary.${ARCH}.tar.xz file (useful
   for (semi-) automated testing)
- requirements fixes

It currently has been tested on a range of distros/arches
but the latest patches are still not polished (missing
proper commit messages)

The series is RFC as a few questions remain for me:

- Do we want to support alien (aka foreign++) distros
   (different shells, different init systems, etc...)
- To what extent
- Are the patches too fine-grained (I personally like
   them smallish)

Future, additionnal work items:
- s6 (adelie / obarun) init support
- handle GPG downloading in non-interactive mode
- being able to cross-build & test them on other
   arches again (dunno why it broke)
- documentation
- add missing guix-publish services
- add missing RO remounting the store on other distros
- removing allremaining bashisms (being shellcheck clean
   maybe ?)

This is to gather input before investing too much time.

For example, do we want to commit part of this now, with
the rest coming later ?

Any feedback ?
On individual patch(es) or on the whole series goal...

Thanks for reading this far.

-- 
Vincent Legoll




Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.
Changed bug title to 'guix-install.sh: port to other distros & init systems' from '[PATCH 0/5] Handle runit-based foreign distributions' Request was from Vincent Legoll <vincent.legoll@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 23 Apr 2020 13:30:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 23 09:30:14 2020
Received: from localhost ([127.0.0.1]:54258 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jRbvi-0005ql-Cf
	for submit <at> debbugs.gnu.org; Thu, 23 Apr 2020 09:30:14 -0400
Received: from mail-qk1-f176.google.com ([209.85.222.176]:46004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>)
 id 1jRbvg-0005pT-1h; Thu, 23 Apr 2020 09:30:12 -0400
Received: by mail-qk1-f176.google.com with SMTP id m67so6268065qke.12;
 Thu, 23 Apr 2020 06:30:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=6hrgbBuSYno1In41rLp2sX/+O5FmS0LdKIO0LkB7zEU=;
 b=b+fh3u0TSgQJk28asfMOzsy6zAwRS6sa+BT4ItxRxTJsTIUCaQfvtMc2kU/zRrvxqH
 KzYJpNAsCJLL1FAxShJqspFpUBPLCnyvfY5iAT5Vx1E/nkCCuXr1XGoan7yMNvOJ3nVy
 26hn7213WbHNeb8OBipsrEvQ+iKt8Oow47z3A/dqhW6mMasqey1P+aY5TMy0HFQVpSUj
 PCUwZGd6Mb4t9ZDdM9/JGi63R8gorWyjVPW5UTGb61wvjwy5tM9dsNmmcQEKGREPUIAA
 LpG5CvGRMqGsc+y+zRt603OlfTzScVpk1Vx5EGTzqHYvEZ1vLc35vd3S/VfqgyjlePkU
 n2VA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=6hrgbBuSYno1In41rLp2sX/+O5FmS0LdKIO0LkB7zEU=;
 b=tWcJ+3+2zoa5KbOQf7sst7zE3he1LzuOHOi1OakHfySsfFXnAFWSyfwHziOxOlCPQC
 rDmyhHnvrOdZLSGDqpm3hFyK6LLAYAo3YPf57H/UerI1Z+T8lpgxvg6gaFDd/3krqtSb
 Ehc2aSUpy392oZaYpItJd/uKoFCUa+dt6ZkRlGYGqvcJ1BUnJ5xfHqTxvpuiTbUmrkI/
 eFqT9ACVfbCr3nCO19NOHSXBlT+mbYXe0IpXnnsYYEcJmhKifSegSzgyr7mfFoY0D81z
 6rNiWPMSQnIr7m/INt7QS86J7XDIdAoiUnOnxbzFo2cYQ0WHPN1LD2DjXgFObvgAc8a7
 +hLw==
X-Gm-Message-State: AGi0PuZQiJwWnEOP8oDLAg+KisZTxuWiOyA+++zLYv2IhBVLn2ZD9vJ/
 /M5QBt2QfZ7FP4mZ6R9ppGW2YQSbO0xkMSxMpvY=
X-Google-Smtp-Source: APiQypLcNPY2oS2UBff0qBRT/F2nXhQT6TbuZHwHc6S7fMEP0iRQK+lqX31SGbHlw9f4nQs21mnOm2LbkD1g9qiLir8=
X-Received: by 2002:a37:a6d4:: with SMTP id p203mr3263306qke.201.1587648606466; 
 Thu, 23 Apr 2020 06:30:06 -0700 (PDT)
MIME-Version: 1.0
References: <b041d4ae-0457-02f4-3f31-9a1a1a111e0e@HIDDEN>
In-Reply-To: <b041d4ae-0457-02f4-3f31-9a1a1a111e0e@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Thu, 23 Apr 2020 15:29:53 +0200
Message-ID: <CAJ3okZ25BEr5vHRgFqjjP6fz4v-kOWiYVxCgyRZE+=+czhR0og@HIDDEN>
Subject: Re: bug#39023: binary installation manual doesn't work on Alpine Linux
To: Vincent Legoll <vincent.legoll@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40601
Cc: symphonia@HIDDEN, 39023 <at> debbugs.gnu.org,
 Tobias Geerinckx-Rice <me@HIDDEN>, 40601 <at> debbugs.gnu.org,
 =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Vincent,

On Thu, 23 Apr 2020 at 13:55, Vincent Legoll <vincent.legoll@HIDDEN> wrote:

> as I had been working on the installer lately [1],
> I tried to tackle this bug also, I have it mostly
> working.
>
> I added support for openrc-based init systems.
>
> I opted to support both adduser & useradd, changed
> some tool calls to work on busybox, etc... Then
> sprinkled a bit of cleanup & polish over the top.
>
> It's not finished, because I could not test it. I
> have a problem building the binary-tarball since I
> switched to the 1.1.0 release and I've yet to try
> to build on an earlier version.
>
> Stay tuned, patches incoming for review.
>
> [1] https://issues.guix.gnu.org/40601

Do you mean that the incoming patches will include an explanation in
the manual about adduser/useradd?
Do you mean that guix-install.sh will now include a conditional test
on the kind of foreign distibution to use adduser or useradd?


Thank you for working on that.

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 23 Apr 2020 11:56:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 23 07:56:06 2020
Received: from localhost ([127.0.0.1]:54175 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jRaSb-0001Lg-UY
	for submit <at> debbugs.gnu.org; Thu, 23 Apr 2020 07:56:06 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:44771)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>)
 id 1jRaSa-0001L8-CN; Thu, 23 Apr 2020 07:56:04 -0400
Received: by mail-wr1-f65.google.com with SMTP id d17so6482558wrg.11;
 Thu, 23 Apr 2020 04:56:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:cc:from:subject:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=sV3rDxOhCk3LEST0Av5E0hjVvPrW0mXSBQmbZ/AJD+E=;
 b=OpadnVLdzmwPSAV8VpASvncB/bWIcQllI+1vc36aU/RoGNkxBbGbYjXLg7He0s9AQO
 12lq4Nc9R1bldRy6NR1Hu+BcwphVAht3mJIr6hV9ZFq5XpuepJtLv/DFgDzcDVMqykdK
 cwt7rfc7NuyH6pJ6JEissuLTmpyy98TyY9JJSNQyhlQTU15lL6xZLdQUuw7uOsEzszzA
 xyDnVvfTvjzJEGNy/0mNngFt17ODea+doZCNsN+rJf98Vgtf3SK1mBLyF+gZp16FfxfS
 pjKz2ezPoKzN2WrGSjp7vCq+KHbGd87LMvNopIGPOZKFV970E0LdMrciXLqa7P9+8+rt
 Q0uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent
 :mime-version:content-language:content-transfer-encoding;
 bh=sV3rDxOhCk3LEST0Av5E0hjVvPrW0mXSBQmbZ/AJD+E=;
 b=Shk0GT00/CmV5o8631qOIsKRhre7C4A5wiKpMpVaz0sOaJKu39la2UQFY/io2wRio4
 lMdEiFmTHXovfm02GkM3JRXc+rv+4sJ119lzn23YexgnZ2ByeTaP2JjaeBb8SnzKAIJT
 o/eDfrkk23tz5qTOFyQG0DtKvycmy/fuOthyaz1pYo4Q308r3XNXEJ07McI3DEc+ZvAB
 jy+xoEmI9cCHPnmjuxA4b3CDzh/FbaDU+OxuC+6g8LKzbLWb+iVa3eM/sKuJErbvVPtG
 HUoqg4a1GqEFKpyjsRoFPlXxOioeiZZB1vTiUN8EqnSfDT2iK4VyLHudrrbXMkx7dAfJ
 klZA==
X-Gm-Message-State: AGi0PuY+60F3C9jvEEgcxhncrNelOLk4VcUQ3IWRA0og65/JjdYOZLZn
 CEYOvAsiBiCyKYCKrHG4QRy2MLyB
X-Google-Smtp-Source: APiQypLdbM+hcrFXvBA92XhxzD4Ao/O5kZtBr0ohZ2efQfx0sQcdYAqVhFeZYUN21VrR1tk8zb6FBw==
X-Received: by 2002:adf:f282:: with SMTP id k2mr4352822wro.133.1587642958155; 
 Thu, 23 Apr 2020 04:55:58 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id r20sm3188101wmh.26.2020.04.23.04.55.56
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 23 Apr 2020 04:55:57 -0700 (PDT)
To: 39023 <at> debbugs.gnu.org
From: Vincent Legoll <vincent.legoll@HIDDEN>
Subject: Re: bug#39023: binary installation manual doesn't work on Alpine Linux
Message-ID: <b041d4ae-0457-02f4-3f31-9a1a1a111e0e@HIDDEN>
Date: Thu, 23 Apr 2020 13:55:56 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40601
Cc: symphonia@HIDDEN, boskovits@HIDDEN, me@HIDDEN,
 40601 <at> debbugs.gnu.org, zimon.toutoune@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

as I had been working on the installer lately [1],
I tried to tackle this bug also, I have it mostly
working.

I added support for openrc-based init systems.

I opted to support both adduser & useradd, changed
some tool calls to work on busybox, etc... Then
sprinkled a bit of cleanup & polish over the top.

It's not finished, because I could not test it. I
have a problem building the binary-tarball since I
switched to the 1.1.0 release and I've yet to try
to build on an earlier version.

Stay tuned, patches incoming for review.

[1] https://issues.guix.gnu.org/40601

-- 
Vincent Legoll




Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 14 Apr 2020 10:40:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 14 06:40:23 2020
Received: from localhost ([127.0.0.1]:33323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jOIzP-0000jl-Ls
	for submit <at> debbugs.gnu.org; Tue, 14 Apr 2020 06:40:23 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:33954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>)
 id 1jOIzO-0000jT-53; Tue, 14 Apr 2020 06:40:22 -0400
Received: by mail-wm1-f66.google.com with SMTP id c195so12188919wme.1;
 Tue, 14 Apr 2020 03:40:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding:content-language;
 bh=3tJRNoPNkxWmtV3spxOiU1Nsk1MG+us20NpV6Z9Gpz8=;
 b=t5URDlswLJEirXetPZK+ER++go+Do0x8hyoAuuaoHpb6l+m9ixpIa+3a56prrNrArv
 udeMSDEHzSYOnl9D+OCYGZTxqgTx8KGrZVHR5xA2r9u1eo+2xAqcZT6L77kc4QSV017p
 glVO2SIskfLtLRNXSYYE7P/EBP9zeWK3TcrPRQjyl8UUGorF4i6jIdhjdmBVUkCl8kuz
 KJlgruKIoQaLufbZN+bovlhY/o4nAbMWXXO4hE4vRe3m+rwAySp85Ft2n1xWepjIx0m2
 3wuV2EHARE2V0vwlKYqiV/QwhZI+T4nsvK9nNfbTZIB2KWOaSgYg7nco+ovHBQXoA6vZ
 8wmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding
 :content-language;
 bh=3tJRNoPNkxWmtV3spxOiU1Nsk1MG+us20NpV6Z9Gpz8=;
 b=HkbBkcLJxkU5axWbnc/ssBZKEIju5G/O0se0ARyeAX0VJE6KtATSQ5Y8KlfY++QZCa
 c5mpIM2MrYrJBujzQJfUcXsDOja9Cj2qsv/Rew9adGTk6A34GAijFvFdcNHuwQmRuQhQ
 h5mm5a6Etya+MQF7EzqnKX6IUWzk6To0gasFDmRk92EO6Gv7nhLj6KaBCSIY6h6A+X+9
 X2/gbNjqljSzJ7XOQYoekiCiFL2km8QXiW3CvvESdQna8snMev/3Duj+xSurNZ8ljlZj
 6fNru2+4WUnyM/3zBvfITY6bNhEvD7JPCcVZ0XTYLwUyrx5idrhjIpb3jXMO5RExQ9AG
 HJug==
X-Gm-Message-State: AGi0PubghPkiMUck8HLJadqGTLGdix/0UV+FB4hBA8/nB4R85P/2t478
 +J1dlEL8WXEx0GLGjZts36PvhbKd+Ss=
X-Google-Smtp-Source: APiQypKnBeR8bQ7fV1qZigK73LhANlNvsBJ1/TWqs0hNBg8rD6FrOsedSC452/MHQuiOdoiYjcXeWw==
X-Received: by 2002:a7b:cf27:: with SMTP id m7mr2375997wmg.183.1586860815862; 
 Tue, 14 Apr 2020 03:40:15 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id o28sm3885470wra.84.2020.04.14.03.40.14
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 14 Apr 2020 03:40:15 -0700 (PDT)
Subject: Re: [bug#39329] [PATCH v4 0/2] Start guix-daemon on SysV.
To: Leo Famulari <leo@HIDDEN>,
 Danny Milosavljevic <dannym@HIDDEN>
References: <57afed60-5bca-8776-102f-6126396d481c@HIDDEN>
 <20200413200829.7ceb3c7e@HIDDEN>
 <20200413182145.GA24906@HIDDEN>
From: Vincent Legoll <vincent.legoll@HIDDEN>
Message-ID: <4d13d72e-16ab-a25d-f7a9-263d35cca1a9@HIDDEN>
Date: Tue, 14 Apr 2020 12:40:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <20200413182145.GA24906@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: 40601 <at> debbugs.gnu.org, 39329 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

Hello,


I now have tested the patch series in #40601

also on latest devuan-sysvinit x86_64.


On 13/04/2020 20:21, Leo Famulari wrote:
> On Mon, Apr 13, 2020 at 08:08:29PM +0200, Danny Milosavljevic wrote:
>> I don't know whether it actually works.
>>
>> I don't feel great just closing this because of that.
> Okay, feel free to reopen if you want [0]
>
>> I mean SysV is kinda outdated, so I wouldn't even know how to test it myself.
>> Would Devuan work?
>> Or Redhat 6/CentOS 6?
> I'm sure we will get some bug reports if it doesn't work for them.


Here's the first one: ;-)

the sysvinit init.d script relies on "daemonize" which is not

installed by default on devuan.


Would fixing it by checking a second round of REQUIRED_BY_INIT

after checking the init type be the right way ?


Or should I report an issue about that ?


But if daemonize is installed, the sysvinit support works

as expected, and I can run guix commands as for the

other tests I did.


Thanks


-- 

Vincent Legoll






Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 22:29:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 18:29:45 2020
Received: from localhost ([127.0.0.1]:32795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO7aC-0005dd-Vi
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 18:29:45 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:51858)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>)
 id 1jO7aB-0005dO-O5; Mon, 13 Apr 2020 18:29:36 -0400
Received: by mail-wm1-f65.google.com with SMTP id x4so10905269wmj.1;
 Mon, 13 Apr 2020 15:29:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:from:to:cc:references:message-id:date:user-agent
 :mime-version:in-reply-to:content-language;
 bh=yXldhWbRcuZcItUDx6vw9j0tbKn88PPDcYkWVkxQvVs=;
 b=m96yz8b6YcwtyZqOHnrWcAlN7apuU8Z+kZTeQ1+Kw71dACnJ+YOT4WMHV2Ksoa4+SP
 +ENJ5NXKMsL675f5/dZlZLdOrardM68pHyMXoJmq1omfyMuj2J5bV0v5PMLfgeW3JnIc
 /Hq06nK3M41giz8Z1DHAzFAktK4JK+JI7+wte9qJoBjz3QjpkO8nxgKdRJcSHH4Dgmr0
 H8YkinEcEeQ5tgEJokAjyvGsGHQ3kZvb26l01DBevKuMKC9ltNcwUIIzNu1xrYjQOhZl
 J0MZQhmxkmmLG9O+1wvQ5iQFawBI9RJ+AFGhclOPYinGhreDZ6Rg74ZxP1BpNOS5451R
 9CSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:from:to:cc:references:message-id:date
 :user-agent:mime-version:in-reply-to:content-language;
 bh=yXldhWbRcuZcItUDx6vw9j0tbKn88PPDcYkWVkxQvVs=;
 b=JhUsTFG/jqrHQ4XmmvB1MRx8zxpoadN6ORdXz+uu8TkmidQHvjlUgIo4CXcR4TaJqn
 +tJZfPEcpRT9Cp/PT4BOiiOvr1Sjt3V5nhN2lUSgLWhW0MFNLcumfflMiZNNHm53NHJ6
 rZxXTf5C6qICvFKWaYRS9jhvjys3GK4FTRWkE5OH/DCFiAVU7hb16P3OUjjAXGlvKVQH
 RfZHy2693rDkApJsQFX6xkchjy9EHNgHRsae2jupTLB0y/vkS1VVD0qDRw6DWakb8Qps
 GZmcbDwa6I/l+PeILG2OE3JZ3jnj04sZWg475DbFJLR7wTw2Z6Y6te5WRv6JVS35tm9+
 7VBg==
X-Gm-Message-State: AGi0PubHn4hDivQY+C3nFg+XDS6VsELUX84fqgzx3ZP7W4wuuds/il1f
 o0wBi3gcRUnmoahJDG2ruUjKheIl6Oo=
X-Google-Smtp-Source: APiQypIRmxRUwaQtL4iP6NvMHn7WYJigmCkFoop5d+zvWAYxo0vIgMPAwPsOsxSO+JMeCn2N6YSY+g==
X-Received: by 2002:a1c:b70a:: with SMTP id h10mr19473329wmf.172.1586816969734; 
 Mon, 13 Apr 2020 15:29:29 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g186sm17272121wmg.36.2020.04.13.15.29.28
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 13 Apr 2020 15:29:28 -0700 (PDT)
Subject: Re: [PATCH v2] Re: Add how to create a runit service in step 5 of
 binary installation manual
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: Foxmean <foxmean@HIDDEN>
References: <46fe93c6-6d19-fab8-8810-37f36d5f1344@HIDDEN>
Message-ID: <712fb208-43c4-6a30-b0c8-04198a51db8f@HIDDEN>
Date: Tue, 14 Apr 2020 00:29:27 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.6.0
MIME-Version: 1.0
In-Reply-To: <46fe93c6-6d19-fab8-8810-37f36d5f1344@HIDDEN>
Content-Type: multipart/mixed; boundary="------------330EAE1A47531C5A4888C0A6"
Content-Language: en-US
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On 14/04/2020 00:22, Vincent Legoll wrote: > Hello, > > >
 as I recently worked on the same subject in [1], > > I reviewed and amended
 the documentation patch [2]. > > > [1] https://debbugs.gnu.org/cgi [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: gnu.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (vincent.legoll[at]gmail.com)
 2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
 [URI: ambrevar.xyz (xyz)]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.128.65 listed in list.dnswl.org]
 -0.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.128.65 listed in wl.mailspike.net]
X-Debbugs-Envelope-To: 40601
Cc: 37624 <at> debbugs.gnu.org, 40601 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

This is a multi-part message in MIME format.
--------------330EAE1A47531C5A4888C0A6
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit


On 14/04/2020 00:22, Vincent Legoll wrote:
> Hello,
>
>
> as I recently worked on the same subject in [1],
>
> I reviewed and amended the documentation patch [2].
>
>
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40601
>
> [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37624
>

And now with the patch...


--------------330EAE1A47531C5A4888C0A6
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-doc-Add-Runit-init-system-in-guix-installation.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
 filename*0="0001-doc-Add-Runit-init-system-in-guix-installation.patch"

From 6b656a54ef7a17fdbd5f82ceaeb98198e2c241af Mon Sep 17 00:00:00 2001
From: Pathompong Kwangtong <foxmean@HIDDEN>
Date: Sun, 13 Oct 2019 01:24:48 +0700
Subject: [PATCH] doc: Add Runit init system in guix installation.

* doc/guix.texi (Binary Installation): Add runit section.
* .mailmap: Add author email adress.

Co-authored-by: Vincent Legoll <vincent.legoll@HIDDEN>
---
 .mailmap      |  1 +
 doc/guix.texi | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/.mailmap b/.mailmap
index 97018775f6..aa5227b91d 100644
--- a/.mailmap
+++ b/.mailmap
@@ -62,6 +62,7 @@ ng0 <ng0@HIDDEN> <ngillmann@HIDDEN>
 ng0 <ng0@HIDDEN> <niasterisk@HIDDEN>
 ng0 <ng0@HIDDEN> <ng@HIDDEN>
 ng0 <ng0@HIDDEN> <ng0@HIDDEN>
+Pathompong Kwangtong <foxmean@HIDDEN>
 Pierre Neidhardt <mail@HIDDEN>
 Pierre-Antoine Rouby <pierre-antoine.rouby@HIDDEN>
 Pjotr Prins <pjotr.guix@HIDDEN> <pjotr.public01@HIDDEN>
diff --git a/doc/guix.texi b/doc/guix.texi
index 8bf4ef9b74..94cb89eddf 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -71,6 +71,7 @@ Copyright @copyright{} 2019 Alex Griffin@*
 Copyright @copyright{} 2019 Guillaume Le Vaillant@*
 Copyright @copyright{} 2020 Leo Prikler@*
 Copyright @copyright{} 2019, 2020 Simon Tournier@*
+Copyright @copyright{} 2019 Pathompong Kwangtong@*
 Copyright @copyright{} 2020 Wiktor Żelazny@*
 Copyright @copyright{} 2020 Damien Cassou@*
 Copyright @copyright{} 2020 Jakub Kądziołka@*
@@ -664,6 +665,35 @@ If your host distro uses the Upstart init system:
 # start guix-daemon
 @end example
 
+If your host distro use the Runit init system:
+
+@example
+# mkdir /etc/sv/guix-daemon
+@end example
+
+Then create the guix-daemon runit launch script:
+
+@example
+# cat > /etc/sv/guix-daemon/run <<EOF
+#!/bin/sh
+
+GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
+LC_ALL=en_US.utf8
+
+export GUIX_LOCPATH LC_ALL
+
+exec /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon \
+  --build-users-group=guixbuild
+EOF
+@end example
+
+Now, you can enable and start the guix-daemon service with:
+
+@example
+# ln -s /etc/sv/guix-daemon /etc/runit/runsvdir/default/
+# sv up guix-daemon
+@end example
+
 Otherwise, you can still start the daemon manually with:
 
 @example
-- 
2.20.1


--------------330EAE1A47531C5A4888C0A6--




Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 22:23:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 18:23:00 2020
Received: from localhost ([127.0.0.1]:32781 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO7To-0005Sr-KB
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 18:23:00 -0400
Received: from mail-wr1-f45.google.com ([209.85.221.45]:43132)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>)
 id 1jO7Tn-0005Sc-9g; Mon, 13 Apr 2020 18:22:59 -0400
Received: by mail-wr1-f45.google.com with SMTP id i10so11957726wrv.10;
 Mon, 13 Apr 2020 15:22:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:cc:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=EpmlTXXRHyPF7pv5lnP6rsMgs5IHmEUq2JVPbEMkCgU=;
 b=mkhyYXkZ3Q7SIWl0jq8+9vPh/J7nNRJOL/8yK/1JEcmlzt8TNq8xcCa0x00+2dMffR
 RfxdWs26SR66MxTDGrq0Scng4fCA6rCs2dxRKJl/2RoczPszNKpAMUHWtmrmIp73cqO2
 8Ewq5uXyKoIZFAhU8xf/yjfv+Slz2gPeYY0A/I7gbndSNNEneQGxGKTPDpG/ld7jBXIz
 2RvkOdTDfb5cXH2I9fCHP77cFqO3ztHas4YhnRYyzzn8pvrbrAmXCkq0dwVVPxrm4mFn
 s4aJQoAg16P7BKHp4ucfSqseLotgjtRI4ufnDrTe0PlIq6+RA+zYxIqTmmzftZX8tAtM
 IDoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding:content-language;
 bh=EpmlTXXRHyPF7pv5lnP6rsMgs5IHmEUq2JVPbEMkCgU=;
 b=MtsjbaB6Q0VXNrVLyGnwIt5o0et0Hhve+aruqHQkanOf+eufqB6MZTpofkYjo4LHee
 AyTqWXA9jvss07wzb5sogE7HG021j6CKtX611UoUrcxcLmEe86inKaNnPKwMw1fXB7AY
 lmGu58JpyAkTFdgPKrjIDJ7sQFDuMKWDRt0ZoyFp/omEY1iacVa6OaSNdFAdr9WtFpDm
 HTvUeUYbjeE2QEsodzImopriMgeQtFCVyGmg9IzN+ioHVrjvNKY4AIk281gNwrobHGmz
 o9LWuqZ76HGb9y76OvO918q9rQ0ynG7h97br2LmiMFr4hDs7cPRbuGNKlS05jaiqeGvl
 6GmQ==
X-Gm-Message-State: AGi0PuZcCQw2qAnD1sfeCtpYG+IeCPr1zBCFF/yb7MuMf2OldQYoaJti
 Z/HVcPkQgYaL2jeJfjhoORdveqc4ZKs=
X-Google-Smtp-Source: APiQypJSFzomZA3JQqEJKXj4H7iIUa6HqVpJUMSM3FdT18U5Ub1RZiYco0+dU84T5PgjrnGw3jv9jg==
X-Received: by 2002:a05:6000:192:: with SMTP id
 p18mr21247287wrx.398.1586816572990; 
 Mon, 13 Apr 2020 15:22:52 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id h81sm17300289wme.42.2020.04.13.15.22.51
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 13 Apr 2020 15:22:52 -0700 (PDT)
To: Foxmean <foxmean@HIDDEN>
From: Vincent Legoll <vincent.legoll@HIDDEN>
Subject: [PATCH v2] Re: Add how to create a runit service in step 5 of binary
 installation manual
Message-ID: <46fe93c6-6d19-fab8-8810-37f36d5f1344@HIDDEN>
Date: Tue, 14 Apr 2020 00:22:51 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: 37624 <at> debbugs.gnu.org, 40601 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

Hello,


as I recently worked on the same subject in [1],

I reviewed and amended the documentation patch [2].


[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40601

[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37624


-- 

Vincent Legoll






Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 16:08:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:08:13 2020
Received: from localhost ([127.0.0.1]:60568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1d2-0006vc-4s
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:13 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:41939)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1cv-0006uA-WD
 for 40601 <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:04 -0400
Received: by mail-wr1-f41.google.com with SMTP id h9so10692205wrc.8
 for <40601 <at> debbugs.gnu.org>; Mon, 13 Apr 2020 09:08:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=d7XlIXph/dC3p0sp+I8C/nuk/eRXd6pCqWVW4IA61to=;
 b=TLcgwE4T3Unju7lw1EuNb35smtcCapQA/KC3BZf1NZJUBAzjG5wlEdrvqdkPNXd18G
 4YMbFUqwr0ggEDkoT0uVW6QE7b6qbejS5ogONmja0y+OaRu5Iy8VUjZnMRzCRRFapnFv
 fOpRp/vK7BPWKiqJVClFkvNrllX68Bnn+DPEluYC/plPjeJspaq2QmISu5RJhJJDYmFG
 5fhWH6yidi2yvGysyAvbTH3PVmLMhoTleUxC3kD7xnKUsK8grimiKHP+PUgJiuNIi9Sh
 YyEjOOtoRtW6Np/VKJ1vgFU6W/okUFCVcfFxaLsDFbpgkcWwptCApDirNzCusoIf2F2H
 MQfQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=d7XlIXph/dC3p0sp+I8C/nuk/eRXd6pCqWVW4IA61to=;
 b=A1uN7VNuILIC/OHZbM3TDVWxIW+BR2vUZkpvzw0ishyziHNOGpm2LYkNJLHBINCHes
 ZnwG4qia3W7tT1S22lw4FnT/UPdV4ZW6jIqsXVx4imXMxBS9XUZoKfz0TOag/GTH0vm5
 fC4NViRV1wBFqe/eCoojvzDcPhZrPhpeBcAB4KoEI0BHTWIustS8IZ++WKAA774OPQoc
 7VTB6jtcm75TCX6Xu8WZFavlQojcPW7CrHDCcCVjko65hvvGtHAPw1nr+PFTpjqxlJ03
 JsT2RLaO/X0YAnY8oWvVltIOgjuypDnqk6aKm3rn+lvVXCObEI6sAnJKA9U/40fxjtwE
 LV9g==
X-Gm-Message-State: AGi0PuZzykoIKqssWSf6w/iSHM3qAikY0Mcf6D3N3M6tP8OC8qgGSAbj
 9PTuyv5iEsf/DNNe9tZgiWFw4mEl
X-Google-Smtp-Source: APiQypJbUoz3JH0g6htS6vOQdQbDSb+/pF48Dfx7Fx3aZ9T4Nrj727JzWH22+su7hVU+qHUQUKWBbw==
X-Received: by 2002:a5d:6310:: with SMTP id i16mr6506935wru.177.1586794076101; 
 Mon, 13 Apr 2020 09:07:56 -0700 (PDT)
Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net.
 [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g74sm15248774wme.44.2020.04.13.09.07.55
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Apr 2020 09:07:55 -0700 (PDT)
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: 40601 <at> debbugs.gnu.org
Subject: [PATCH 5/5] guix-install.sh,
 guix-binary tarball: Handle runit-based foreign distributions.
Date: Mon, 13 Apr 2020 18:07:40 +0200
Message-Id: <20200413160740.19584-5-vincent.legoll@HIDDEN>
X-Mailer: git-send-email 2.26.0
In-Reply-To: <20200413160740.19584-1-vincent.legoll@HIDDEN>
References: <20200413160740.19584-1-vincent.legoll@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: Vincent Legoll <vincent.legoll@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* .gitignore: Add /etc/runit/run.
* etc/guix-install.sh (chk_init_sys): Add case to detect runit.
(sys_enable_guix_daemon): Add case to setup guix-daemon within runit.
* etc/runit/run.in: New file.
* nix/local.mk (etc/runit/run): Add target to generate etc/runit/run from
etc/runit/run.in. (nodist_runitservice_DATA): New variable... (CLEANFILES):
... add it here. (runitservicedir): New variable. (EXTRA_DIST): Add
etc/runit/run.in.
---
 .gitignore          |  1 +
 etc/guix-install.sh | 11 +++++++++++
 etc/runit/run.in    | 15 +++++++++++++++
 nix/local.mk        | 13 +++++++++++++
 4 files changed, 40 insertions(+)
 create mode 100644 etc/runit/run.in

diff --git a/.gitignore b/.gitignore
index fd2cf56098..89a2c89e1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -72,6 +72,7 @@
 /etc/guix-publish.conf
 /etc/guix-publish.service
 /etc/init.d/guix-daemon
+/etc/runit/run
 /guix-daemon
 /guix/config.scm
 /libformat.a
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 0d15a05cb4..06590ee97f 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -152,6 +152,10 @@ chk_init_sys()
         _msg "${INF}init system is: sysv-init"
         INIT_SYS="sysv-init"
         return 0
+    elif [[ -d /etc/sv ]]; then
+        _msg "${INF}init system is: runit"
+        INIT_SYS="runit"
+        return 0
     else
         INIT_SYS="NA"
         _err "${ERR}Init system could not be detected."
@@ -364,6 +368,13 @@ sys_enable_guix_daemon()
                   systemctl enable guix-daemon; } &&
                 _msg "${PAS}enabled Guix daemon via systemd"
             ;;
+        runit)
+            { cp -r "${ROOT_HOME}/.config/guix/current/lib/runit/guix-daemon" \
+                 /etc/sv;
+              chmod 755 /etc/sv/guix-daemon/run;
+              ln -s /etc/sv/guix-daemon /etc/runit/runsvdir/default/; } &&
+                _msg "${PAS}enabled Guix daemon via runit"
+            ;;
         sysv-init)
             { mkdir -p /etc/init.d;
               cp "${ROOT_HOME}/.config/guix/current/etc/init.d/guix-daemon" \
diff --git a/etc/runit/run.in b/etc/runit/run.in
new file mode 100644
index 0000000000..e57ef597bc
--- /dev/null
+++ b/etc/runit/run.in
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# This is a "run script" for the runit init system to launch
+# 'guix-daemon'.  Drop it in /etc/sv/guix-daemon and add a symlink to
+# it like the following to have 'guix-daemon' automatically started.
+# ln -s /etc/sv/guix-daemon /etc/runit/runsvdir/default/
+
+GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale
+LC_ALL=en_US.utf8
+
+export GUIX_LOCPATH LC_ALL
+
+exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \
+  --build-users-group=guixbuild
+
diff --git a/nix/local.mk b/nix/local.mk
index 412d89ba3d..877ddcc281 100644
--- a/nix/local.mk
+++ b/nix/local.mk
@@ -175,6 +175,17 @@ etc/init.d/guix-daemon: etc/init.d/guix-daemon.in	\
 	       "$<" > "$@.tmp";		\
 	mv "$@.tmp" "$@"
 
+# The service run script for runit.
+runitservicedir = $(libdir)/runit/guix-daemon
+nodist_runitservice_DATA = etc/runit/run
+
+etc/runit/run: etc/runit/run.in		\
+			$(top_builddir)/config.status
+	$(AM_V_GEN)$(MKDIR_P) "`dirname $@`";   \
+        $(SED) -e 's|@''localstatedir''@|$(localstatedir)|' <   \
+               "$<" > "$@.tmp";         \
+        mv "$@.tmp" "$@"
+
 # The '.conf' jobs for Upstart.
 upstartjobdir = $(libdir)/upstart/system
 nodist_upstartjob_DATA = etc/guix-daemon.conf etc/guix-publish.conf
@@ -189,6 +200,7 @@ etc/guix-%.conf: etc/guix-%.conf.in	\
 CLEANFILES +=					\
   $(nodist_systemdservice_DATA)			\
   $(nodist_upstartjob_DATA)			\
+  $(nodist_runitservice_DATA)			\
   $(nodist_sysvinitservice_DATA)
 
 EXTRA_DIST +=					\
@@ -198,6 +210,7 @@ EXTRA_DIST +=					\
   etc/guix-daemon.conf.in			\
   etc/guix-publish.service.in			\
   etc/guix-publish.conf.in			\
+  etc/runit/run.in				\
   etc/init.d/guix-daemon.in
 
 if CAN_RUN_TESTS
-- 
2.26.0





Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 16:08:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:08:04 2020
Received: from localhost ([127.0.0.1]:60566 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1cx-0006vG-R1
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:04 -0400
Received: from mail-wm1-f45.google.com ([209.85.128.45]:35046)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1cs-0006u1-1L
 for 40601 <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:01 -0400
Received: by mail-wm1-f45.google.com with SMTP id r26so10536361wmh.0
 for <40601 <at> debbugs.gnu.org>; Mon, 13 Apr 2020 09:07:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=sPjUeY1YzjgtcP6IGf1w7ZdV0iy1Z8k2oY14lOE1DM8=;
 b=EcSkikbEa+/D5R83P0CfjtT6AplHcDU3Qc0QlDmiJyL38Ds+rwiAYRt/05OkQZJwdq
 Wlwd+1oxV9Oh3Fs3VVU0U/93WB4pyfapA7hccfLLpJk0fMKQmJkdy5R8S9SePkS+xVbH
 r86XjgavSLmoNJveo91gSXmEFOFzJkGp0WU7F+MV7zek5Kqd1FDR/s6NpUQ6M3qDYIfS
 lwiYn+A9foayBK6QP292+15Bsy8PTToKldhRsy/sR8HuIWSXsEoicpXyBnSP7pq/khPe
 GcCtmP29HMkOmgouP5kxHkJ5rDj8R5JvBkj2FtmUaomPBx6rsKvQlGM7zMesaKIfNC48
 BlDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=sPjUeY1YzjgtcP6IGf1w7ZdV0iy1Z8k2oY14lOE1DM8=;
 b=t2eFEcaw0NQdYYf25rcWkuMwk9Lh1OEIFlAnxLz8XRvrj287iOTu8yF+MUKfnrZ4f/
 B/hb0yFJROIeXkJBENyktCTfaeTYxyU+1MnBS5M0+vB3uuvfxB+5copBmkuhDW7UcH8W
 Hh9DRbqF262E4W3gC4qmLpH51Wc8Sssvcd2iNBVsCxPx8cdDEqPTom5ACIIFmJFjdErn
 C4+jNUcJzGJ8O41fvDpNRuy5mFOeC82/3u9MOYf0mEiX1pjC8c0rpvq9zyXAwznl5NZ4
 l57XQAgY5ly9OX58MrW5f8D0s8wvaJtYtQ5spkREp+AB9ChL8esECyIA62ghXJFkkR5S
 iERA==
X-Gm-Message-State: AGi0PuZ7jFiDahxSvMUFtBiuNysjMitgjG+lhRnp3hZe2FIqUH2t7ckY
 8N33f6qHggfS/UpoX6IN1nePZY0C
X-Google-Smtp-Source: APiQypKbDWwGW4Cc691K2wLDXwCaF0iqPGe1DX8FEd+Wc/Nt2uLbsKjZm70smIyZkDbEgmjJqPslvg==
X-Received: by 2002:a1c:1bcb:: with SMTP id b194mr20188668wmb.4.1586794071897; 
 Mon, 13 Apr 2020 09:07:51 -0700 (PDT)
Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net.
 [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g74sm15248774wme.44.2020.04.13.09.07.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Apr 2020 09:07:51 -0700 (PDT)
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: 40601 <at> debbugs.gnu.org
Subject: [PATCH 1/5] nix/local.mk: Add missing comment to sysvinit section.
Date: Mon, 13 Apr 2020 18:07:36 +0200
Message-Id: <20200413160740.19584-1-vincent.legoll@HIDDEN>
X-Mailer: git-send-email 2.26.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: Vincent Legoll <vincent.legoll@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

* nix/local.mk (sysvinit): Add comment.
---
 nix/local.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nix/local.mk b/nix/local.mk
index a64bdd2137..412d89ba3d 100644
--- a/nix/local.mk
+++ b/nix/local.mk
@@ -164,6 +164,7 @@ etc/guix-%.service: etc/guix-%.service.in	\
 	       "$<" > "$@.tmp";		\
 	mv "$@.tmp" "$@"
 
+# The service script for sysvinit.
 sysvinitservicedir = $(sysconfdir)/init.d
 nodist_sysvinitservice_DATA = etc/init.d/guix-daemon
 
-- 
2.26.0





Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 16:08:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:08:03 2020
Received: from localhost ([127.0.0.1]:60564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1cx-0006v3-7q
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:03 -0400
Received: from mail-wm1-f53.google.com ([209.85.128.53]:53272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1cu-0006u8-U1
 for 40601 <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:01 -0400
Received: by mail-wm1-f53.google.com with SMTP id d77so9780258wmd.3
 for <40601 <at> debbugs.gnu.org>; Mon, 13 Apr 2020 09:08:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=wV4+1jyL8qU7WCJsvI95UQYIXcSBn6faITajzYEeedA=;
 b=cbEL3BTTH2m0IOj9v1zg7i4mrXLswIS99BrOlNJ3g7d66YVs8/77uZrfcRogXFTuSS
 An9FVVbJg7y7qBt2K0SprEazuP8j4eFJueIIEIDYMfC6skm/yH6GTciirpLlfuWIXg+Z
 ABcGbMp/FGK3uN1nzLk7QviB6nx05ggkKg0OUKj8DMHjW/H516zmPdyEKrwCBUj1IIaj
 6A4NinFqrAfTRNq6fA4fdEJWNrRCN7BoskP/bU0VFAN2s9ng/bhcFJ92YRFnCwQ22VFK
 7aZWouWdUrn3oXjoOo0iIH3dH/Dcw3+80iJ0+5kCroH3yf02tDcagUOnqn6bcNttwILA
 ldew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=wV4+1jyL8qU7WCJsvI95UQYIXcSBn6faITajzYEeedA=;
 b=G3tQUIarNaLv4bJJOy7tAvSjQnSZBiZStRDGaCagBzaYMf3l/D0G5jen1IU/z+Z2j7
 08iD92k5HKhoZlwwP9Uu/t7VH37kD1Q0qYWpMfdur0PMz/Dq8v71pBNAkISq9JWhmLN+
 tRXaShGjKzpdz2DZVmnlQWo3qx0sixqk1xR3WITfSHPShDR29O2Rg8x38kU671dOUGYp
 ewXN0OXplR+gcUA43C1b0DCYWnstvD8mO1sznhvkf/1qO1sNPVksfErdPmy843OUzOD9
 f6gJKrPUAhbA7JpNdAfaqmd+P+1QRGYlKgNW7XWLKjgYDIzG8RSrv2yWtIFfxeTnNh5V
 weuQ==
X-Gm-Message-State: AGi0PuYuHAylY08/ZdwT0hVKp+V1D2qSS/7xHCZ7vGYFTTF9nLKC3fVQ
 lvOPsJMDhGlxy0sOA7fFJD7ekvts
X-Google-Smtp-Source: APiQypJi3B321cNV7cNvgYziACQfmBAgWzJ0NXdXepUHOKcWHwsE3OSJS7v4k0C/1R50EuGTUJg0zg==
X-Received: by 2002:a1c:6787:: with SMTP id
 b129mr20203785wmc.165.1586794075046; 
 Mon, 13 Apr 2020 09:07:55 -0700 (PDT)
Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net.
 [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g74sm15248774wme.44.2020.04.13.09.07.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Apr 2020 09:07:54 -0700 (PDT)
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: 40601 <at> debbugs.gnu.org
Subject: [PATCH 4/5] guix-install.sh: Handle local binary tarball file.
Date: Mon, 13 Apr 2020 18:07:39 +0200
Message-Id: <20200413160740.19584-4-vincent.legoll@HIDDEN>
X-Mailer: git-send-email 2.26.0
In-Reply-To: <20200413160740.19584-1-vincent.legoll@HIDDEN>
References: <20200413160740.19584-1-vincent.legoll@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: Vincent Legoll <vincent.legoll@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

* etc/guix-install.sh (REQUIRE): add realpath.
(main): Handle local binary tarball file path passed as first arg.
---
 etc/guix-install.sh | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4fa9664cf5..0d15a05cb4 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -4,6 +4,7 @@
 # Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
 # Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
 # Copyright © 2019 Tobias Geerinckx-Rice <me@HIDDEN>
+# Copyright © 2020 Vincent Legoll <vincent.legoll@HIDDEN>
 #
 # This file is part of GNU Guix.
 #
@@ -47,6 +48,7 @@ REQUIRE=(
     "uname"
     "groupadd"
     "tail"
+    "realpath"
     "tr"
     "xz"
 )
@@ -482,10 +484,14 @@ main()
     umask 0022
     tmp_path="$(mktemp -t -d guix.XXX)"
 
-    guix_get_bin_list "${GNU_URL}"
-    guix_get_bin "${GNU_URL}" "${BIN_VER}" "$tmp_path"
-
-    sys_create_store "${BIN_VER}.tar.xz" "${tmp_path}"
+    if [ -z "$1" ]; then
+        guix_get_bin_list "${GNU_URL}"
+        guix_get_bin "${GNU_URL}" "${BIN_VER}" "$tmp_path"
+        TARBALL="${BIN_VER}.tar.xz"
+    else
+        TARBALL="$(realpath $1)"
+    fi
+    sys_create_store "${TARBALL}" "${tmp_path}"
     sys_create_build_user
     sys_enable_guix_daemon
     sys_authorize_build_farms
-- 
2.26.0





Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 16:08:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:08:03 2020
Received: from localhost ([127.0.0.1]:60562 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1cw-0006uu-RP
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:03 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:44347)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1ct-0006u5-TU
 for 40601 <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:00 -0400
Received: by mail-wr1-f47.google.com with SMTP id d17so3784603wrg.11
 for <40601 <at> debbugs.gnu.org>; Mon, 13 Apr 2020 09:07:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=/Tnv2Wnq1LfCInJ2n2iQ3UEH/1X6A1FwhHxRDI+XDJA=;
 b=WV4WykBxT0kQ2A2WXoOR1e0Er2AUMVRWT9ls/8+T7azlDWjRAzDXQKHOjBZPUTNRFe
 TgUN9Vwa7Wph7jjc43n2KGxKWghLYjKPsRpi9RAjiRjQ/SyZUOD1LrSVNYE5Z3Wh2D16
 3J7TRyG+nAXY7vqtn2PG9NiEviEFNIERcTTV0KBsNl1qkjZkTfwyv9Jaah5CesRz8QWf
 +joc9VxYP5Ux1cUn80yvG8E9m6f9WMsztQI3LbT0y++r1VSuohBtLh7NthR0GJ9zuoN+
 celHfbTYX1QBimlK4NE3DcNQcaAIEdl+OeLOmiL4Lv/hLvzZz5Q+ZGIR/ZGzjvrnYwsx
 5hQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=/Tnv2Wnq1LfCInJ2n2iQ3UEH/1X6A1FwhHxRDI+XDJA=;
 b=Ubk/jWGUgc7TLn1KHxYa2Y2zeSBIwzGQPIn11mYrRtrDmyeGgv4RKkKD8JPAjgmWVc
 EOc7wbCFNUN1XnIYhqxKO00G9fGbPnxSKx9vRI4XdMD4GaaaUx07oUWRjQ+zsM3twC8J
 R0If4FYHCe84SylkIgxLzlap+s14Y7vorkLU7EnI3anU8xjqDsZMeSjGQ9wpKno4I0tW
 zx7D08rYqJL7EcBTBJouXtMuITetUms4ZqPnfJURrdjPBPYMpGfgEYrYByZmvsc5FBqN
 0x0dEs7lQ59JC6HZWpbuVWF7uEcKL26R3kpk0ouvmAMZDbFU5hh6Y+Sft7M6KvbPmsJ4
 klOQ==
X-Gm-Message-State: AGi0PuYuifsVSTnGp2fNjLs0/+kYi5cJSk+opXsq5E+pXIEJ9/VTgvlt
 AVyGyDm4XH60KYQerZKjUOzW2ez6
X-Google-Smtp-Source: APiQypLTbmlYyVHgioOOwdbhDAnQ0+9vpWY+6PkbW51GO8c5b0Re4Qg3sWQmjjEsxY2c8sRjUsK4uQ==
X-Received: by 2002:adf:ee05:: with SMTP id y5mr8978129wrn.176.1586794074107; 
 Mon, 13 Apr 2020 09:07:54 -0700 (PDT)
Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net.
 [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g74sm15248774wme.44.2020.04.13.09.07.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Apr 2020 09:07:53 -0700 (PDT)
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: 40601 <at> debbugs.gnu.org
Subject: [PATCH 3/5] guix-install.sh: Fix systemctl not found error message at
 probe.
Date: Mon, 13 Apr 2020 18:07:38 +0200
Message-Id: <20200413160740.19584-3-vincent.legoll@HIDDEN>
X-Mailer: git-send-email 2.26.0
In-Reply-To: <20200413160740.19584-1-vincent.legoll@HIDDEN>
References: <20200413160740.19584-1-vincent.legoll@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: Vincent Legoll <vincent.legoll@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

* etc/guix-install.sh (chk_init_sys)[systemctl]: Redirect errors to /dev/null.
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index dbc038a0ab..4fa9664cf5 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -142,7 +142,7 @@ chk_init_sys()
         _msg "${INF}init system is: upstart"
         INIT_SYS="upstart"
         return 0
-    elif [[ $(systemctl) =~ -\.mount ]]; then
+    elif [[ $(systemctl 2>/dev/null) =~ -\.mount ]]; then
         _msg "${INF}init system is: systemd"
         INIT_SYS="systemd"
         return 0
-- 
2.26.0





Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at 40601 <at> debbugs.gnu.org:


Received: (at 40601) by debbugs.gnu.org; 13 Apr 2020 16:08:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:08:00 2020
Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1cu-0006uO-Ku
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:08:00 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:42946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1cs-0006u3-Vf
 for 40601 <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:07:59 -0400
Received: by mail-wr1-f66.google.com with SMTP id j2so10689033wrs.9
 for <40601 <at> debbugs.gnu.org>; Mon, 13 Apr 2020 09:07:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=gEnDcrkIqISuoFgT2g9SI5mmqJv2Gg8oKUUJE7WWzGA=;
 b=ItA0Ai5/+yH7y6GX8bXRm4VT6S5uZyJ4AH4bNlp52DCEaUmdPHXHtw+eukwi+by41u
 8KS65Vxv0YtjCORG7RWZfilCRGKBHOLVJZ1UABxZtGmL+cU+nlRy+DWzH6X0Y5uDq2eD
 2b7BwpOrJoOyBXNdFGOVLgWFvWsFLqyvarosp0MKz2NBntWRfBUh8jRFM8OibE2oIBee
 P81CgNwGwy8+CiFdnRbByqFozoqcrZph6y9iYsg42ydnITTcdxA3Zx8xMQP22Pg0aFDB
 i9N62mpaxM83Q7827LnxB71qIWNcacxrUW9ClrL1d9CoSQBioawc1ykIphah2KD3fDKz
 TWyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=gEnDcrkIqISuoFgT2g9SI5mmqJv2Gg8oKUUJE7WWzGA=;
 b=X5Mhl//CiopnE81VhwlTH1pOhsjCoOO+N+nM6BrRVoZCsFjH9Mhr+5p/7gG4VjX4zA
 ATs4mCHUeixMZDXAXeP32H8+Saht+w1pTG6JwGdVgglZ1Zq0TfCktGt20asp5PWIwl8a
 X0tw+NFYMWZ0YodETnH7rQts/mmx4zxBaoMMwfzEK8MEfMnAg5DJswixGwzTjMK2VHFK
 cOgEs93eEJbGs6OWVKIQEfrq9WQ1UQqLdM/kK9aUW3X9FgJ4oNwq9JSDG5tTjXJr0FMa
 ppIYcN5GbEU/EMzOy9Y/g+vVHeRxg5YzTKJ8OuK50FljYABPYQKTGCMPdW1Myr1HYgzq
 M1kA==
X-Gm-Message-State: AGi0Pub9b3uKsxT1scMfLR4534990JCRzd0R7mCXxqBoTVIQqCVNgU4c
 b6I8kH1is94gaGHklYPsk+Mhv99i
X-Google-Smtp-Source: APiQypKBN3J8jvjPBMsDGwX8TEXuxAdCwtDOskFdC2h9Cm1GIlAlFcL5pC1jEXj9d7rRe5PcJ4yiKA==
X-Received: by 2002:a5d:4042:: with SMTP id w2mr11264410wrp.195.1586794072999; 
 Mon, 13 Apr 2020 09:07:52 -0700 (PDT)
Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net.
 [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id g74sm15248774wme.44.2020.04.13.09.07.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Apr 2020 09:07:52 -0700 (PDT)
From: Vincent Legoll <vincent.legoll@HIDDEN>
To: 40601 <at> debbugs.gnu.org
Subject: [PATCH 2/5] guix-install.sh: Add xz to requirements.
Date: Mon, 13 Apr 2020 18:07:37 +0200
Message-Id: <20200413160740.19584-2-vincent.legoll@HIDDEN>
X-Mailer: git-send-email 2.26.0
In-Reply-To: <20200413160740.19584-1-vincent.legoll@HIDDEN>
References: <20200413160740.19584-1-vincent.legoll@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40601
Cc: Vincent Legoll <vincent.legoll@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

* etc/guix-install.sh (REQUIRE): Add xz to requirements list.
---
 etc/guix-install.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4909d3f162..dbc038a0ab 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -48,6 +48,7 @@ REQUIRE=(
     "groupadd"
     "tail"
     "tr"
+    "xz"
 )
 
 PAS=$'[ \033[32;1mPASS\033[0m ] '
-- 
2.26.0





Information forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Apr 2020 16:04:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 13 12:04:58 2020
Received: from localhost ([127.0.0.1]:60546 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jO1Zx-0006oT-T6
	for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:04:58 -0400
Received: from lists.gnu.org ([209.51.188.17]:49533)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1Zv-0006oL-UN
 for submit <at> debbugs.gnu.org; Mon, 13 Apr 2020 12:04:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58641)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1Zu-0001WU-P7
 for guix-patches@HIDDEN; Mon, 13 Apr 2020 12:04:55 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vincent.legoll@HIDDEN>) id 1jO1Zt-0003mc-P3
 for guix-patches@HIDDEN; Mon, 13 Apr 2020 12:04:54 -0400
Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:40140)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <vincent.legoll@HIDDEN>)
 id 1jO1Zt-0003mK-Ht
 for guix-patches@HIDDEN; Mon, 13 Apr 2020 12:04:53 -0400
Received: by mail-wm1-x342.google.com with SMTP id a81so10466371wmf.5
 for <guix-patches@HIDDEN>; Mon, 13 Apr 2020 09:04:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=03KvbziQbEkP/yaWSONvGfg8OHpiiWjHKQHGNXm0B4U=;
 b=MV/L5ly/v3GfBqeM+aW7wcwuxrakS6LhPL9V+Mj+GIvFFVGygUZ/c2gl4W8uaVe0i2
 S8ch+ZkuHj6j3rxCeg+Z6sEBiJHVsl8wLWLPAVKkqDonyE4diW/ROiQXeKZwaIyP4XxT
 DhyO72nOa7RpaNm/xegAOENczeIwyFen+8+v/HU3MfrRQ1mKIY9SH+NQDFAAMuaQAndp
 /EhSpqPhyex00srN25s0n1p52iMUHc/epOEm9VKiuzSDLF61PTbDrnQVZeZeIyiyN47A
 90U1R7A3ado4bXMHsUdPDeJiywjeIUFwXUw6vcAPYwDNIwbOuS64nxdr81gg4B03aBpP
 AgVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding:content-language;
 bh=03KvbziQbEkP/yaWSONvGfg8OHpiiWjHKQHGNXm0B4U=;
 b=X+2jbw/tcjzlX50FlQo0qeqBLT1UwEcL8vQZ1Vn+EYN+txFgbKPUYu2xTz9M3OIo2D
 Wc5/Gi2KJtcU4+646euJVPgC9vLH9+ydEed5T/bEs/rKEDmpz9tVG3cxC0ugIjxQbzJR
 RTQAops6XuwppwZjBwZw04Hi/LUI14+xuuOwxhwCbnAs5Z3JQrbietazCzilJRt4SdVe
 m8joOqPBJqY+Qc7FB0aDmOtKO1ZIe+7ff07OgZX9UY6B6zHdNUGLyYWc0xQUH9OAZNGn
 D1Y2DUQOMpW5UoJpvgO3KAQcvwZ5COSwRn8I3AIuQGICA8SBbRuKq/t+O6g6o/p0RHH2
 VNkw==
X-Gm-Message-State: AGi0PuajTOPVcinJe+6Gd3eorqPhPWSsm2naS3Px1DpHebXoOiZntjxY
 A5DLRg+hrggjQm2NcqH8rodHQyrT
X-Google-Smtp-Source: APiQypLoGN7M87O3IfGGePHQCmXN6S6LQK4S3CcAJ35z86/tcTmg+kYzErN4UOGgaPldT5IA6Q1V+g==
X-Received: by 2002:a7b:cdf7:: with SMTP id p23mr19729582wmj.33.1586793891513; 
 Mon, 13 Apr 2020 09:04:51 -0700 (PDT)
Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1])
 by smtp.gmail.com with ESMTPSA id p16sm8805376wro.21.2020.04.13.09.04.50
 for <guix-patches@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 13 Apr 2020 09:04:50 -0700 (PDT)
To: guix-patches@HIDDEN
From: Vincent Legoll <vincent.legoll@HIDDEN>
Subject: [PATCH 0/5] Handle runit-based foreign distributions
Message-ID: <58b21d29-f0b0-af8a-8c9e-11f4dd7a317a@HIDDEN>
Date: Mon, 13 Apr 2020 18:04:49 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::342
X-Spam-Score: 2.3 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: And assorted small fixes around the subject. The first 3
 patches
 are smallish things. Maybe the REQUIRED array could get other missing
 requirements:
 tar (or maybe the "tr" item is a typoed tar, I've found no use of tr), mkdir, 
 ln, usermod, useradd, cp, cat... 
 Content analysis details:   (2.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
 blocked.  See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
 for more information. [URIs: guix-install.sh]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (vincent.legoll[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [209.51.188.17 listed in list.dnswl.org]
 2.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

And assorted small fixes around the subject.

The first 3 patches are smallish things.

Maybe the REQUIRED array could get other
missing requirements: tar (or maybe the "tr"
item is a typoed tar, I've found no use of tr),
mkdir, ln, usermod, useradd, cp, cat...

The handling of local files for guix-install.sh is to
help testing modified / locally generated binary
tarballs.

One thing that is working as-is, but that I'm not sure
is right: The runit script in the guix-binary tarball is
patched for the shebang to point to /gnu/store/...

This looks wrong even if it is working, the interpreter
for that script should be the one of the foreign distro.

But this is not specific to the runit support, the sysv
scripts also are shebang-patched.

How would I tell guix not to patch these files's shebangs ?

WDYT ?

This series has been tested on void linux i686 in qemu
kvm with:

- upload locally build guix-binary tarball & guix-install.sh
to VM
- run guix-install.sh guix-binary.i686-linux.tar.xz

1) guix search hello
2) guix show hello
3) guix build hello
4) guix gc -D/gnu/store/*hello*
5) guix build --no-substitutes hello (stopped as it was rebuilding the world)
6) guix package -u
7) guix pull
8) guix package -u
9) guix gc


So the download part is not tested, but all ran well.

-- 
Vincent Legoll





Acknowledgement sent to Vincent Legoll <vincent.legoll@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#40601; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 17 May 2020 17:15:01 UTC

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