From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 03 15:15:12 2020 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; From: Tobias Geerinckx-Rice To: zimoun Subject: Re: [bug#43769] [PATCH v2 2/2] guix-install.sh: Check the service 'nscd' and suggest it. 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-Debbugs-Envelope-To: 43769 Cc: 43769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= 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----- --=-=-=--