From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sJTiMh1JaGTezwAASxT56A (envelope-from ) for ; Sat, 20 May 2023 06:14:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kAXeMR1JaGQOrgAAG6o9tA (envelope-from ) for ; Sat, 20 May 2023 06:14:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2CE6E3A86A for ; Sat, 20 May 2023 06:14:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0DyV-0002CS-8Z; Sat, 20 May 2023 00:13:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0DyU-0002CH-7N for help-guix@gnu.org; Sat, 20 May 2023 00:13:46 -0400 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0DyS-0002Wc-88 for help-guix@gnu.org; Sat, 20 May 2023 00:13:45 -0400 Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-77d049b9040so1087751241.1 for ; Fri, 19 May 2023 21:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684556023; x=1687148023; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bCcNit5k/yke24PpHgYz29H2Hk6yOzG+MLM7lzRMafo=; b=UYcCBUSY8N1jcxhVRlM+KLDnl/qYiJ2ZurYTZ+jCYOW3i0GYOaXzLeSjROK+lZte7C 0rmsf7SdBXsakW0YjQN9MMYOLiUpFUZ9u4LSHZ7L1Hd/aJd6xx9KnuS1lzC78nLNJhDp tvw3H3jxXIHbZo58SvV8TDOcYQpKI721ZXbSm9kde/Jd5rWiTYR83fgS+v9oWXtgqf0Q c6DozYReCpXfhQC1vYXyU5AX2QvOMc6B90Cotb9pmMjXQVkmoSnt/tvK+C1pb5T8TDgV 1HhI1xJvVstrL1T31rpWkdldkuOFwI31fpaeu7a+mF0KByZxSmXazyxbS+evhsW2fcmx r53A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684556023; x=1687148023; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bCcNit5k/yke24PpHgYz29H2Hk6yOzG+MLM7lzRMafo=; b=g2kRuJZpOd4cxFZrDy3NxrnXjfoDeyY+ytNeaqFFr6c4Qja8xEcxUvz2o6MBOhU2oK RXzFRwD3YtKVtbgE5+p4UV72w5lHpEl/jdLtd3NX9ReYrDrvEEFwK+i80f09h4rhzaUm yPfu6KisrY8yPuFDtn7RqwyuvSFWee8BoEWd2wgAz7urfXN+Xmjf8j31B1P1yNvaq7/a AAcc5hSimVwfq13w0gKCuxjNilxO98DS/yqP3/J+yYMIVQNfTt3w828QhPyUtf0G4mFg C6WsoZHyr7s+YdEBZC/R5s/W17CvqxYkfNkuphM0pgpNPZeq1e+WMAfoizrGSOcIP03Y MIgA== X-Gm-Message-State: AC+VfDzg9etRA5ukJAvClbgBwq573Lj0pw8QR5NPBzwplfEmgRvQPbdD ZDHF9yxSwtsDipvi7LgHcJFUXzmZjyOD+8X+KOF0DoSl0Zo= X-Google-Smtp-Source: ACHHUZ6ClkFhfoc+hv7Qk5XaVyJlR6RWfWuahtXCePWfWX57m5AFCf/aI1u173H1DjcP1jkfeJYeWDskd5iqEyw2TTM= X-Received: by 2002:a1f:5e4d:0:b0:43f:e623:952 with SMTP id s74-20020a1f5e4d000000b0043fe6230952mr1447613vkb.2.1684556022773; Fri, 19 May 2023 21:13:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rodrigo Morales Date: Sat, 20 May 2023 04:13:26 +0000 Message-ID: Subject: Re: How to enable server discovery in foreign distro? To: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::92e; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-ua1-x92e.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684556061; a=rsa-sha256; cv=none; b=IKHYT/CrkrJUnCKoGlW0E+4JUV8aRJZjvqZccUVm2wfchSrmi+8hC/aNY0RIaoKnpZ6sky iLE25tGGPS+BCSu+Mz4V2Rtxv4HxV5oLStkXECAe7ESpj8kmmj+vVfRlvonGI53t4Hvxl6 HKMp1VYv8aBdU2p6HSznCm2xKVM+23+8TQd77NbOZE2wIUg9K+dKREvBNYhPvqumQuuMh1 o0WZlbUUbqVqyjTEMpe+N9UAZb1NQzWLpSqninmMWjBsfOYzW0QjTqVVJjDLs+G8yUzdFm ou/jt1mjAi0tfGhfSALTRmUZOXavWdBPfjTINr0+LI7YrnF8SGgkHTiMSZMLng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=UYcCBUSY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684556061; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bCcNit5k/yke24PpHgYz29H2Hk6yOzG+MLM7lzRMafo=; b=Zhm9uFGcv1MEiZ/i/PILwhrctWbgYo2WQiz9KCR8CzYDHCSBMqw2fMEn17mIia0yDD00nb 6hxgirVKJ/n58iGpLU7w8WkoVhCIhZGbZc1A3A0/4q8VmneVfqRx/detxX5ieFV6OFZqD3 nTBgzjEbmyuWHQqWjA22zpAKrcsXdoLOiLrRAn2wD2Kko5zlKVh470wjgpyFODQjfIdgU3 RlAj92HCWCuyx3R/w8CwRoFAE98uNs4n30Gw058O9Z7jc+7uubv1eNtDRsmhXnbeyW1ln2 imdmolpgOO3lVefvEkj2+jZLK2IV4uBvt+2RdCkSZZCIrLkreReqK2Faj3ybyA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=UYcCBUSY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.86 X-Spam-Score: -3.86 X-Migadu-Queue-Id: 2CE6E3A86A X-TUID: iDuAWK2SxOVq > The system where I was installing the foreign distro showed a big list > of packages to build. However, after I run the following command, that > list was greatly reduced Ooops, it seems that I didn't include the command in my previous message. This is the command I was referring to ,---- | guix archive --authorize < key.pub `---- On Fri, 19 May 2023 at 20:55, Rodrigo Morales wrote: > > With regards to the pending question which I mentioned in my previous > message, I think I have found the answer. > > The system where I was installing the foreign distro showed a big list > of packages to build. However, after I run the following command, that > list was greatly reduced, so I suppose that the following command allows > retrieving built derivations from other systems which makes it > unnecessary to build those derivations again. > > ,---- > | guix archive --authorize < key.pub > `---- > > On Fri, 19 May 2023 at 20:18, Rodrigo Morales > wrote: > > > > Table of Contents > > _________________ > > > > 1. The solution > > 2. Pending question > > > > > > 1 The solution > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > I managed to do it. I'll share some relevant information for those > > interested. > > > > [This section] in the Info manual helped me do what I was looking > > for. As specified in that part of the manual, I need to edit > > guix-daemon.service. In my system, there were 4 files with that name > > (see code block below) > > > > ,---- > > | rdrg@desktop:~$ locate -r 'guix-daemon.service$' > > | /etc/systemd/system/multi-user.target.wants/guix-daemon.service > > | /run/systemd/units/invocation:guix-daemon.service > > | /usr/lib/systemd/system/guix-daemon.service > > | /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants= /guix-daemon.service > > `---- > > > > The file `/run/systemd/units/invocation:guix-daemon.service' was a > > broken symbolic link (see code block below), so I knew that I > > shouldn't edit this file. > > > > ,---- > > | rdrg@desktop:~$ file /run/systemd/units/invocation:guix-daemon.serv= ice > > | /run/systemd/units/invocation:guix-daemon.service: broken symbolic > > link to 8dbd9f7458e74f979a2b8d214ed47d42 > > `---- > > > > The file > > `/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/= guix-daemon.service' > > wsa empty (see code block below), so I knew that I shouldn't edit thi= s > > file. > > > > ,---- > > | rdrg@desktop:~$ file > > /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/gui= x-daemon.service > > | /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants= /guix-daemon.service: > > empty > > `---- > > > > The file > > `/etc/systemd/system/multi-user.target.wants/guix-daemon.service' was > > a symbolic link to `/usr/lib/systemd/system/guix-daemon.service' and, > > for that reason, I ended up editing > > `/usr/lib/systemd/system/guix-daemon.service'. I edited the line > > containing `ExecStart' and added the IP address of my system from > > which I wanted to retrieve the packages. > > > > ,---- > > | rdrg@desktop:~$ cat /usr/lib/systemd/system/guix-daemon.service > > | # This is a "service unit file" for the systemd init system to laun= ch > > | # 'guix-daemon'. Drop it in /etc/systemd/system or similar to have > > | # 'guix-daemon' automatically started. > > | > > | [Unit] > > | Description=3DBuild daemon for GNU Guix > > | > > | [Service] > > | ExecStart=3D/usr/bin/guix-daemon --build-users-group=3D_guixbuild > > --substitute-urls=3D'http://192.168.1.39:8080 https://ci.guix.gnu.org > > https://bordeaux.guix.gnu.org' > > | Environment=3DLC_ALL=3DC.UTF-8 > > | StandardOutput=3Dsyslog > > | StandardError=3Dsyslog > > | > > | # Work around a nasty systemd =E2=80=98feature=E2=80=99 that kills = the entire process tree > > | # (including the daemon!) if any child, such as cc1plus, runs out o= f memory. > > | OOMPolicy=3Dcontinue > > | > > | # Despite the name, this is rate-limited: a broken daemon will > > eventually fail. > > | Restart=3Dalways > > | > > | # See . > > | # Some package builds (for example, go@1.8.1) may require even more= than > > | # 1024 tasks. > > | TasksMax=3D8192 > > | > > | [Install] > > | WantedBy=3Dmulti-user.target > > `---- > > > > Finally, I executed the following two commands. > > > > ,---- > > | systemctl daemon-reload > > | systemctl restart guix-daemon.service > > `---- > > > > When I executed `guix home', the packages were retrieved from my othe= r > > system (see line below `substitute: updating substitutes from > > 'http://192.168.1.39:8080'... 100.0%'). > > > > ,---- > > | rdrg@desktop:~$ guix home -L ~/guix-packages reconfigure > > ~/guix-config/home-configuration.scm > > | hint: Consider installing the `glibc-locales' package and defining > > `GUIX_LOCPATH', along these lines: > > | > > | guix install glibc-locales > > | export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" > > | > > | See the "Application Setup" section in the manual, for more info. > > | > > | guix home: warning: cannot determine provenance for current system > > | substitute: updating substitutes from 'http://192.168.1.39:8080'...= 100.0% > > | substitute: updating substitutes from 'https://ci.guix.gnu.org'... = 100.0% > > | substitute: updating substitutes from > > 'https://bordeaux.guix.gnu.org'... 100.0% > > | The following derivations will be built: > > | /gnu/store/kdlm30fl3cv6r0ww2njm0d7w8cipjpyj-home.drv > > | /gnu/store/76835anafmiz8ngx2aqwynps72m0wmgd-setup-environment.drv > > | (... some omitted lines ...) > > `---- > > > > > > [This section] > > > > > > > > 2 Pending question > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > I was able to download packages from my other system without having > > to perform the following step which is mentioned in [the > > aforementioned part of the manual]. > > > > ,---- > > | guix archive --authorize < key.pub > > `---- > > > > I wonder whether this command is relevant in this context or not. Any > > information is appreciated. > > > > > > [the aforementioned part of the manual] > >