From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KLwLLgzOeF8bGAAA0tVLHw (envelope-from ) for ; Sat, 03 Oct 2020 19:16:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CDXuKQzOeF8kSwAA1q6Kng (envelope-from ) for ; Sat, 03 Oct 2020 19:16:28 +0000 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 1633B9402DD for ; Sat, 3 Oct 2020 19:16:28 +0000 (UTC) Received: from localhost ([::1]:55056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOn19-00079D-0n for larch@yhetil.org; Sat, 03 Oct 2020 15:16:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOn0k-00077h-K8 for guix-patches@gnu.org; Sat, 03 Oct 2020 15:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOn0k-0004z1-Ac for guix-patches@gnu.org; Sat, 03 Oct 2020 15:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOn0k-0002Pp-6O for guix-patches@gnu.org; Sat, 03 Oct 2020 15:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43769] [PATCH v2 2/2] guix-install.sh: Check the service 'nscd' and suggest it. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Oct 2020 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 43769@debbugs.gnu.org Received: via spool by 43769-submit@debbugs.gnu.org id=B43769.16017525129203 (code B ref 43769); Sat, 03 Oct 2020 19:16:02 +0000 Received: (at 43769) by debbugs.gnu.org; 3 Oct 2020 19:15:12 +0000 Received: from localhost ([127.0.0.1]:44511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOmzw-0002ON-8z for submit@debbugs.gnu.org; Sat, 03 Oct 2020 15:15:12 -0400 Received: from tobias.gr ([80.241.217.52]:50854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOmzu-0002OE-AB for 43769@debbugs.gnu.org; Sat, 03 Oct 2020 15:15:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=QaiNEhjyFKnY9Ha/7UlwDhgOaGGzeQGxL8hh93fk7Ko=; h=date:in-reply-to: references:subject:cc:to:from; b=H/zIRU3GzbokXSriHYJH5VikI6OUIJrzLcRCH anx/F4FSolgbkyGCNnMdnwDjoQ128fSTd5TIGyO1+UlkbrrBndp0wALTGgH9kTyVpf/qIg 3iKiTgMT7P13wf6/53ksUkrnwc/JRqJWZ8beqU3KcD6K1rhNzLDKl4wxuU98zvdIDzzbzi jOmpXP0LgrAMwvNVYCLs8WuN+x6D+OvsjvcTIFjTTUjgddwSzOW1NArqby2e3d0Tm6sKYC OiBQr9SHIls+bpv7a8hjgIOUjTrqGVcXqLGC5QgM3epl9iQjE7TbjO9ZLDherOOp7CxbuD F+9BTU6OHiPoN2IOjvBGM7sWA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id c8cd739e (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sat, 3 Oct 2020 19:15:17 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; References: <20201003184447.9542-1-zimon.toutoune@gmail.com> <20201003184447.9542-2-zimon.toutoune@gmail.com> In-reply-to: <20201003184447.9542-2-zimon.toutoune@gmail.com> Date: Sat, 03 Oct 2020 21:14:53 +0200 Message-ID: <87mu139l5e.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tobias.gr header.s=2018 header.b=H/zIRU3G; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: FK+6JFKZUmLT --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Zimoun, zimoun =E5=86=99=E9=81=93=EF=BC=9A > * etc/guix-install.sh (chk_sys_nscd): New function to check if=20 > the service > 'nscd is running, otherwise suggest to install=20 > distribution-wide. If we must have a new interactive prompt in this series, this=20 seems like the better place: we know enough about the host (init)=20 system to auto-enable nscd on most of them, if the user so wishes. > main() > { > - local tmp_path > - welcome > + # local tmp_path > + # welcome > + > + # _msg "Starting installation ($(date))" >=20=20 > - _msg "Starting installation ($(date))" > + # chk_term > + # chk_require "${REQUIRE[@]}" > + # chk_gpg_keyring > + # chk_init_sys > + # chk_sys_arch >=20=20 > - chk_term > - chk_require "${REQUIRE[@]}" > - chk_gpg_keyring > - chk_init_sys > - chk_sys_arch > + # _msg "${INF}system is ${ARCH_OS}" >=20=20 > - _msg "${INF}system is ${ARCH_OS}" > + # umask 0022 > + # tmp_path=3D"$(mktemp -t -d guix.XXX)" >=20=20 > - umask 0022 > - tmp_path=3D"$(mktemp -t -d guix.XXX)" > + # guix_get_bin_list "${GNU_URL}" > + # guix_get_bin "${GNU_URL}" "${BIN_VER}" "$tmp_path" >=20=20 > - guix_get_bin_list "${GNU_URL}" > - guix_get_bin "${GNU_URL}" "${BIN_VER}" "$tmp_path" > + # sys_create_store "${BIN_VER}.tar.xz" "${tmp_path}" > + # sys_create_build_user > + # sys_enable_guix_daemon > + # sys_authorize_build_farms > + # sys_create_init_profile > + # sys_create_shell_completion >=20=20 > - sys_create_store "${BIN_VER}.tar.xz" "${tmp_path}" > - sys_create_build_user > - sys_enable_guix_daemon > - sys_authorize_build_farms > - sys_create_init_profile > - sys_create_shell_completion > + # _msg "${INF}cleaning up ${tmp_path}" > + # rm -r "${tmp_path}" >=20=20 > - _msg "${INF}cleaning up ${tmp_path}" > - rm -r "${tmp_path}" > + chk_sys_nscd >=20=20 > - _msg "${PAS}Guix has successfully been installed!" > - _msg "${INF}Run 'info guix' to read the manual." > + # _msg "${PAS}Guix has successfully been installed!" > + # _msg "${INF}Run 'info guix' to read the manual." >=20=20 > - # Required to source /etc/profile in desktop environments. > - _msg "${INF}Please log out and back in to complete the=20 > installation." > + # # Required to source /etc/profile in desktop=20 > environments. > + # _msg "${INF}Please log out and back in to complete the=20 > installation." > } ? Debugging left-overs? Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX3jNrQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15y+YBAOvBUaQM/r+2RgPv+dn6rjx0m2psAea/mSv6zybn hx+eAP0XyNbQRZCbZyf+CuuJBKURYKpF9zof37oAhYw8NQq+BA== =7xBj -----END PGP SIGNATURE----- --=-=-=--