From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Daemon update Date: Wed, 27 May 2015 17:18:19 +0200 Message-ID: <87d21mhww4.fsf@gnu.org> References: <87siasirgo.fsf@gnu.org> <87a8wy5oet.fsf@gnu.org> <877fs0k9ox.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxd6C-00013y-Cn for guix-devel@gnu.org; Wed, 27 May 2015 11:18:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxd67-0008Vy-Dt for guix-devel@gnu.org; Wed, 27 May 2015 11:18:28 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxd67-0008Vs-AW for guix-devel@gnu.org; Wed, 27 May 2015 11:18:23 -0400 In-Reply-To: (Alexander Vorobiev's message of "Tue, 26 May 2015 22:27:41 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alexander Vorobiev Cc: guix-devel@gnu.org Alexander Vorobiev skribis: > Ok, I have just tried to build the binary tarball on a VM where I > reproduced all the paths I want (basically, instead of /gnu I want > /shared/shape_tier3/common/local/guix) and which has c++11 compliant gcc = -- > that also failed. What failed exactly? Note that =E2=80=98make guix-binary.x86_64-linux.tar.xz=E2=80=99 produces a= tarball that uses the exact same store directory as the host Guix. So if you want to produce a binary tarball with a custom store directory, you first need to build Guix --with-store-dir=3D/custom/store. If, in addition, you want a custom $localstatedir, then at least the =E2=80=98guix=E2=80=99 recipe in (gnu packages package-management) must be = adjusted, as well as the =E2=80=9C/var=E2=80=9D in =E2=80=98self-contained-tarball=E2=80= =99 in (gnu system install). > I pulled today's git and ran guix-daemon --no-substitutes. The error > seems to be "unable to fork: Operation not permitted". I am running > guix-daemon as myself When running guix-daemon unprivileged, you need to pass --disable-chroot (EACCES is returned by clone(2) here since we ask for separate name spaces, which only root or someone with CAP_SYS_ADMIN can do.) It=E2=80=99s better to use run it as root though (info "(guix) Invoking guix-daemon"). Thanks, Ludo=E2=80=99.