GNU bug report logs - #50892
[PATCH] guix-install.sh: Authorize all project build farms at once.

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: Tobias Geerinckx-Rice <me@HIDDEN>; Keywords: patch; dated Wed, 29 Sep 2021 15:44:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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


Received: (at 50892) by debbugs.gnu.org; 29 Sep 2021 16:51:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 29 12:51:27 2021
Received: from localhost ([127.0.0.1]:50015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mVcnf-0008Rf-6i
	for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:51:27 -0400
Received: from mail-qt1-f176.google.com ([209.85.160.176]:40887)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1mVcna-0008RJ-5c
 for 50892 <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:51:17 -0400
Received: by mail-qt1-f176.google.com with SMTP id b16so2920720qtt.7
 for <50892 <at> debbugs.gnu.org>; Wed, 29 Sep 2021 09:51:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=kqgz05eoW2Y8MfUiN9hHLGwvNvXAfWQSyqqycdx7jOI=;
 b=RtVNjOa0FSG2HmOD+mB4JgmOHQo4R8fEprdJ0MO5VJlHnJDdp9728b5XQhLnJkuMO5
 m2LOMji6A4rI6899SE5vYPg8K5coNOhaNIrItbaqCPRG8sZME64CfGAXPXb74cwdaqlS
 3ydju1tzdWNK0Bvmn6ydlowwkXgAxop0AJZnXnQugZWR++N0VTKpBotJOYeDy//6j3nc
 U8p5fO6cwnD3LJWH1Y36M7D4GNTHIu/9/2/vNhpvm2MCLvmHaoBQQ2FQuaGAhkgW3uLU
 ev5tIQ/ENT+ZJB1MAbbYPQn/jxnfDVpR6eux+NtFz/nVDAgr3TAEdrsnUyGVD60U/TbK
 b0tQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=kqgz05eoW2Y8MfUiN9hHLGwvNvXAfWQSyqqycdx7jOI=;
 b=eiH0iLhZ2keHQ7TAfYA/V2OJAPdICMoaXKAFDPFNtASs+Ck9SSxgozwh7WXuoOHSRQ
 aamwkQKsDItIwmBnECBOmNMoLipNSbiy1Oljp7z3um1FtEvJFYtROhZLyH0OXtNswMOE
 ArjF0e23SiCndSh9gbCAFPjbtPaOv9bTSsFGEG1/mYDCj1Z0dphI4EDNWxxncJpMSBG9
 VhOCF9eNpnWzvW+484d1qHQAq7QmnjuWMkhFpfarAWUM9jKa24EjZ+iBDxh1Ok1zQx4J
 8fv/DD1WH+JifZ9DMM8I9jTmiU/xZTEVdCcuQi5GC7tCk+V+O7HNNQ8BwbnVvhQNl6lh
 /q7A==
X-Gm-Message-State: AOAM532pZ4ZVVn4ZWI4fZ4hHSUPeBwJJM58obbCxs35M7c/7EE+8t3hD
 dxNp+fJc43IjsLjpwfGgJ9GUlUDRK8w=
X-Google-Smtp-Source: ABdhPJxu+SWluloaItmv7ZmVB4fIIvyxngIFENMsEJTGXywgMnOiW1tjw5Ml6gnnPSbjFmRDthhX7Q==
X-Received: by 2002:ac8:56f9:: with SMTP id 25mr1072727qtu.374.1632934268434; 
 Wed, 29 Sep 2021 09:51:08 -0700 (PDT)
Received: from hurd ([207.35.95.110])
 by smtp.gmail.com with ESMTPSA id a3sm239851qta.48.2021.09.29.09.51.07
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 29 Sep 2021 09:51:08 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#50892: [PATCH] guix-install.sh: Authorize all project build
 farms at once.
References: <20210929154310.25788-1-me@HIDDEN>
Date: Wed, 29 Sep 2021 12:51:07 -0400
In-Reply-To: <20210929154310.25788-1-me@HIDDEN> (Tobias Geerinckx-Rice's
 message of "Wed, 29 Sep 2021 17:43:10 +0200")
Message-ID: <87r1d71g1w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50892
Cc: 50892 <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 (-)

Tobias Geerinckx-Rice <me@HIDDEN> writes:

> * etc/guix-install.sh (sys_authorize_build_farms):
> Iterate over all hosts.
> ---
>  etc/guix-install.sh | 23 +++++++++++++++--------
>  1 file changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/etc/guix-install.sh b/etc/guix-install.sh
> index b0d4a8b95e..e3b8485a50 100755
> --- a/etc/guix-install.sh
> +++ b/etc/guix-install.sh
> @@ -1,21 +1,21 @@
>  #!/bin/sh
>  # GNU Guix --- Functional package management for GNU
>  # Copyright =C2=A9 2017 sharlatan <sharlatanus@HIDDEN>
>  # Copyright =C2=A9 2018 Ricardo Wurmus <rekado@HIDDEN>
>  # Copyright =C2=A9 2018 Efraim Flashner <efraim@HIDDEN>
> -# Copyright =C2=A9 2019, 2020 Tobias Geerinckx-Rice <me@HIDDEN>
> +# Copyright =C2=A9 2019=E2=80=932021 Tobias Geerinckx-Rice <me@HIDDEN>
>  # Copyright =C2=A9 2020 Morgan Smith <Morgan.J.Smith@HIDDEN>
>  # Copyright =C2=A9 2020 Simon Tournier <zimon.toutoune@HIDDEN>
>  # Copyright =C2=A9 2020 Daniel Brooks <db48x@HIDDEN>
>  # Copyright =C2=A9 2021 Jakub K=C4=85dzio=C5=82ka <kuba@HIDDEN>
>  # Copyright =C2=A9 2021 Chris Marusich <cmmarusich@HIDDEN>
>  # Copyright =C2=A9 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
>  #
>  # This file is part of GNU Guix.
>  #
>  # GNU Guix is free software; you can redistribute it and/or modify it
>  # under the terms of the GNU General Public License as published by
>  # the Free Software Foundation; either version 3 of the License, or (at
>  # your option) any later version.
>  #
>  # GNU Guix is distributed in the hope that it will be useful, but
> @@ -476,38 +476,45 @@ sys_enable_guix_daemon()
>              ;;
>      esac
>=20=20
>      _msg "${INF}making the guix command available to other users"
>=20=20
>      [ -e "$local_bin" ] || mkdir -p "$local_bin"
>      ln -sf "${var_guix}/bin/guix"  "$local_bin"
>=20=20
>      [ -e "$info_path" ] || mkdir -p "$info_path"
>      for i in "${var_guix}"/share/info/*; do
>          ln -sf "$i" "$info_path"
>      done
>  }
>=20=20
>  sys_authorize_build_farms()
> -{ # authorize the public key of the build farm
> +{ # authorize the public key(s) of the build farm(s)
> +    local hosts=3D(
> +	ci.guix.gnu.org
> +	bordeaux.guix.gnu.org
> +    )
> +
>      if prompt_yes_no "Permit downloading pre-built package binaries from=
 the \
> -project's build farm? (yes/no)"; then
> -        guix archive --authorize \
> -             < "~root/.config/guix/current/share/guix/ci.guix.gnu.org.pu=
b" \
> -            && _msg "${PAS}Authorized public key for ci.guix.gnu.org"
> -        else
> -            _msg "${INF}Skipped authorizing build farm public keys"
> +project's build farms? (yes/no)"; then
> +        for host in "${hosts[@]}"; do
> +            guix archive --authorize \
> +                 < "~root/.config/guix/current/share/guix/$host.pub" \
> +                && _msg "${PAS}Authorized public key for $host"
> +        done
> +    else
> +        _msg "${INF}Skipped authorizing build farm public keys"
>      fi
>  }
>=20=20
>  sys_create_init_profile()
>  { # Define for better desktop integration
>    # This will not take effect until the next shell or desktop session!
>      [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
>      cat <<"EOF" > /etc/profile.d/guix.sh
>  # _GUIX_PROFILE: `guix pull` profile
>  _GUIX_PROFILE=3D"$HOME/.config/guix/current"
>  export PATH=3D"$_GUIX_PROFILE/bin${PATH:+:}$PATH"
>  # Export INFOPATH so that the updated info pages can be found
>  # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info
>  # When INFOPATH is unset, add a trailing colon so that Emacs
>  # searches 'Info-default-directory-list'.

Tested on a VM:

./guix-install.sh: line 500: ~root/.config/guix/current/share/guix/bordeaux=
.guix.gnu.org.pub: No such file or directory
root@ubuntu:~# echo $?
1

I think we should fetch the keys from our online repo, so we can ensure

1. they are available
2. they are up to date.

Thanks!

Maxim




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

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


Received: (at 50892) by debbugs.gnu.org; 29 Sep 2021 16:50:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 29 12:50:21 2021
Received: from localhost ([127.0.0.1]:50007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mVcmj-0008Pc-32
	for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:50:21 -0400
Received: from tobias.gr ([80.241.217.52]:52350)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1mVcmh-0008PQ-1K
 for 50892 <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:50:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=xtDzydM3VRZm8
 fOmM+rJnenhXR0OAZOq3xF7QLE4jYY=;
 h=in-reply-to:date:subject:cc:from:
 references; d=tobias.gr; b=W/Ingd+l7E7RuPjBSTCVXla/C4zRL7/uTf9gT1OVNQs
 9L83oYkdKPSvig9X1QDuDfw2IofNN66KrpWa+0/xCy0Ge6ZbdjhPlqzKXb0Br6wVIoUjDp
 oB5FQDRh25GyBJ0NJ6SKs9DEzz/ajlDxqEwuEuYlfGZQfPyIfvCuiKKAXtGBl4WDlJ6msR
 JdTi+Osm/ZgNf1r140OlBqPSJR7SCaJHcyZ0zlaYPVQwFa5WQ9Qlu1MYi8JYkSYnydbI+r
 itC/5QXiBK3bx0QJyTIJR1Ga6p6rqCMq9SR1VcQyI1u0qOFKBPM1ry5avq/QJ+CKN3xqkb
 giUevbsgRqiiGYRLzMA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id ecaf543d
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Wed, 29 Sep 2021 16:50:14 +0000 (UTC)
References: <20210929154310.25788-1-me@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#50892] [PATCH] guix-install.sh: Authorize all project
 build farms at once.
Date: Wed, 29 Sep 2021 18:49:21 +0200
In-reply-to: <20210929154310.25788-1-me@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87tui31g2y.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
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:  Tobias Geerinckx-Rice via Guix-patches via 写道: > + <
    > "~root/.config/guix/current/share/guix/$host.pub" \ This file is missing
    for bordeaux in the 1.3.0 release, so this would have to wait until the next
    one… 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [80.241.217.52 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.2 MISSING_HEADERS        Missing To: header
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: 50892
Cc: guix-patches@HIDDEN, 50892 <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: 0.2 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Tobias Geerinckx-Rice via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A
> +                 <=20
> "~root/.config/guix/current/share/guix/$host.pub" \

This file is missing for bordeaux in the 1.3.0 release, so this=20
would have to wait until the next one=E2=80=A6

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYVSZVQ0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW157tIA/0NxtSi4/HOdtPht4P1YlTT4Op2MNXxktdEnqIh5
Px2tAP9VpcX2WZLsrqN6g7CdCL9beI10dRgzWW3FpDqkI/RaAQ==
=ppGb
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 29 Sep 2021 16:50:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 29 12:50:31 2021
Received: from localhost ([127.0.0.1]:50010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mVcms-0008Q0-C5
	for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:50:31 -0400
Received: from lists.gnu.org ([209.51.188.17]:50302)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1mVcmq-0008Pq-2V
 for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 12:50:28 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38892)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1mVcmn-0003f9-E6
 for guix-patches@HIDDEN; Wed, 29 Sep 2021 12:50:25 -0400
Received: from tobias.gr ([2a02:c205:2020:6054::1]:60036)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1mVcmi-0003ZT-93
 for guix-patches@HIDDEN; Wed, 29 Sep 2021 12:50:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=xtDzydM3VRZm8
 fOmM+rJnenhXR0OAZOq3xF7QLE4jYY=;
 h=in-reply-to:date:subject:cc:from:
 references; d=tobias.gr; b=W/Ingd+l7E7RuPjBSTCVXla/C4zRL7/uTf9gT1OVNQs
 9L83oYkdKPSvig9X1QDuDfw2IofNN66KrpWa+0/xCy0Ge6ZbdjhPlqzKXb0Br6wVIoUjDp
 oB5FQDRh25GyBJ0NJ6SKs9DEzz/ajlDxqEwuEuYlfGZQfPyIfvCuiKKAXtGBl4WDlJ6msR
 JdTi+Osm/ZgNf1r140OlBqPSJR7SCaJHcyZ0zlaYPVQwFa5WQ9Qlu1MYi8JYkSYnydbI+r
 itC/5QXiBK3bx0QJyTIJR1Ga6p6rqCMq9SR1VcQyI1u0qOFKBPM1ry5avq/QJ+CKN3xqkb
 giUevbsgRqiiGYRLzMA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id ecaf543d
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Wed, 29 Sep 2021 16:50:14 +0000 (UTC)
References: <20210929154310.25788-1-me@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#50892] [PATCH] guix-install.sh: Authorize all project
 build farms at once.
Date: Wed, 29 Sep 2021 18:49:21 +0200
In-reply-to: <20210929154310.25788-1-me@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87tui31g2y.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN;
 helo=tobias.gr
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.1 / 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, MISSING_HEADERS=1.021,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: submit
Cc: guix-patches@HIDDEN, 50892 <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.4 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Tobias Geerinckx-Rice via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A
> +                 <=20
> "~root/.config/guix/current/share/guix/$host.pub" \

This file is missing for bordeaux in the 1.3.0 release, so this=20
would have to wait until the next one=E2=80=A6

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYVSZVQ0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW157tIA/0NxtSi4/HOdtPht4P1YlTT4Op2MNXxktdEnqIh5
Px2tAP9VpcX2WZLsrqN6g7CdCL9beI10dRgzWW3FpDqkI/RaAQ==
=ppGb
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 29 Sep 2021 15:43:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 29 11:43:30 2021
Received: from localhost ([127.0.0.1]:49920 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mVbjt-00028D-Ne
	for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 11:43:30 -0400
Received: from lists.gnu.org ([209.51.188.17]:56874)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1mVbjo-000281-J1
 for submit <at> debbugs.gnu.org; Wed, 29 Sep 2021 11:43:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52284)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1mVbjo-0006zm-56
 for guix-patches@HIDDEN; Wed, 29 Sep 2021 11:43:16 -0400
Received: from tobias.gr ([2a02:c205:2020:6054::1]:60028)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1mVbji-00070u-5b
 for guix-patches@HIDDEN; Wed, 29 Sep 2021 11:43:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=tnvk0zCzDBqQi
 gdHuSm/qfcGsYMWaiTeAv2OyGzYgiY=; h=date:subject:to:from;
 d=tobias.gr; 
 b=p0d6clnhATo91IldyaQRr5ekFExqYC6xx69HZBLbLyKjJ7b6+t6jVBtlyiPAvm+zkyYL
 Wt+ubW/9akRgd3d5B8swT/mwDtrsLNPTfR3XAN01+mygftGrobgiX4VV4mPozjuGpMIc0D
 UEdgir5qBz9iaJasfuwRBbkDFLTtWJ6PfSSVkfYhnD7u5y4yYyfzUrK8CMUG2LxupXfGWn
 OJWvztiYrmiikWxtutP7dcgHU74KerZMLfeYA/4orBvZ168fmWgEXzUupEfMw31hK00s6a
 22welshZmBOK52LxlzHMAWrFH+mjWFvAVFiOFywcfjRxU/mt/HZcxHNJd2DHOCYw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 6a8a506d
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <guix-patches@HIDDEN>;
 Wed, 29 Sep 2021 15:43:04 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] guix-install.sh: Authorize all project build farms at once.
Date: Wed, 29 Sep 2021 17:43:10 +0200
Message-Id: <20210929154310.25788-1-me@HIDDEN>
X-Mailer: git-send-email 2.33.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN;
 helo=tobias.gr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
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.3 (/)

* etc/guix-install.sh (sys_authorize_build_farms):
Iterate over all hosts.
---
 etc/guix-install.sh | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index b0d4a8b95e..e3b8485a50 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -1,21 +1,21 @@
 #!/bin/sh
 # GNU Guix --- Functional package management for GNU
 # Copyright © 2017 sharlatan <sharlatanus@HIDDEN>
 # Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
 # Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
-# Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@HIDDEN>
+# Copyright © 2019–2021 Tobias Geerinckx-Rice <me@HIDDEN>
 # Copyright © 2020 Morgan Smith <Morgan.J.Smith@HIDDEN>
 # Copyright © 2020 Simon Tournier <zimon.toutoune@HIDDEN>
 # Copyright © 2020 Daniel Brooks <db48x@HIDDEN>
 # Copyright © 2021 Jakub Kądziołka <kuba@HIDDEN>
 # Copyright © 2021 Chris Marusich <cmmarusich@HIDDEN>
 # Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 #
 # This file is part of GNU Guix.
 #
 # GNU Guix is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or (at
 # your option) any later version.
 #
 # GNU Guix is distributed in the hope that it will be useful, but
@@ -476,38 +476,45 @@ sys_enable_guix_daemon()
             ;;
     esac
 
     _msg "${INF}making the guix command available to other users"
 
     [ -e "$local_bin" ] || mkdir -p "$local_bin"
     ln -sf "${var_guix}/bin/guix"  "$local_bin"
 
     [ -e "$info_path" ] || mkdir -p "$info_path"
     for i in "${var_guix}"/share/info/*; do
         ln -sf "$i" "$info_path"
     done
 }
 
 sys_authorize_build_farms()
-{ # authorize the public key of the build farm
+{ # authorize the public key(s) of the build farm(s)
+    local hosts=(
+	ci.guix.gnu.org
+	bordeaux.guix.gnu.org
+    )
+
     if prompt_yes_no "Permit downloading pre-built package binaries from the \
-project's build farm? (yes/no)"; then
-        guix archive --authorize \
-             < "~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub" \
-            && _msg "${PAS}Authorized public key for ci.guix.gnu.org"
-        else
-            _msg "${INF}Skipped authorizing build farm public keys"
+project's build farms? (yes/no)"; then
+        for host in "${hosts[@]}"; do
+            guix archive --authorize \
+                 < "~root/.config/guix/current/share/guix/$host.pub" \
+                && _msg "${PAS}Authorized public key for $host"
+        done
+    else
+        _msg "${INF}Skipped authorizing build farm public keys"
     fi
 }
 
 sys_create_init_profile()
 { # Define for better desktop integration
   # This will not take effect until the next shell or desktop session!
     [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
     cat <<"EOF" > /etc/profile.d/guix.sh
 # _GUIX_PROFILE: `guix pull` profile
 _GUIX_PROFILE="$HOME/.config/guix/current"
 export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH"
 # Export INFOPATH so that the updated info pages can be found
 # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info
 # When INFOPATH is unset, add a trailing colon so that Emacs
 # searches 'Info-default-directory-list'.
-- 
2.33.0





Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#50892; 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: Wed, 29 Sep 2021 17:00:02 UTC

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