From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 OOBEL4rrfmTOHgEASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 10:17:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WKAyL4rrfmT+gwAAauVa8A (envelope-from ) for ; Tue, 06 Jun 2023 10:17:14 +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 0C74D2C66A for ; Tue, 6 Jun 2023 10:17:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6RsG-0000s9-IK; Tue, 06 Jun 2023 04:17:04 -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 1q6RsE-0000rk-K5 for bug-guix@gnu.org; Tue, 06 Jun 2023 04:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6RsE-0000eF-C4 for bug-guix@gnu.org; Tue, 06 Jun 2023 04:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6RsE-0004v2-70 for bug-guix@gnu.org; Tue, 06 Jun 2023 04:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63921: Activation snippets in reverse order, prevent boot Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Jun 2023 08:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63921 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63921@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168603936418820 (code B ref -1); Tue, 06 Jun 2023 08:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jun 2023 08:16:04 +0000 Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6RrI-0004tU-Ay for submit@debbugs.gnu.org; Tue, 06 Jun 2023 04:16:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:47892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6RrG-0004tK-Hv for submit@debbugs.gnu.org; Tue, 06 Jun 2023 04:16:03 -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 1q6RrF-0000nn-UE for bug-guix@gnu.org; Tue, 06 Jun 2023 04:16:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6RrB-0000Pd-GG for bug-guix@gnu.org; Tue, 06 Jun 2023 04:16:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=yDXkVQ82eS92DP7vu8VjljsYKh2bV/WZ1NgDxJu5YCk=; b=k9OvqVk5lZLo+g tYgeW/iWYK1x2CCdaOyBL1Yln1FwKTzmdpdKCNwy3G9InoxQsRJSVNViyHt9QFMUReZTydauU5Rix dXw9z+9V3aXoIK8SsTwarRy43bcomFJTbPbkUzPla7XvL0+GodIYqjGJlR9baootnsRq17IrxcXR2 areSKbehXSVek7UMNjaNfTvEKHdZJX0WmfkLOYBw+9Pr6NKQm18sDMs6exLF1YkCu1iLh9pQWgc2G ijkRMgZr/9vDCqGrYDj5vxHdLKmPYVJncUW1aY2HDJ/xqLXfHti0LH5HA9TVc7ywZuLqyfYP1kLEt qjbn6pdL8VdI9E/vMTVg==; Received: from [193.50.110.155] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6RrA-0006QX-W6 for bug-guix@gnu.org; Tue, 06 Jun 2023 04:15:57 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Prairial an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Pavot X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 06 Jun 2023 10:15:54 +0200 Message-ID: <877csh9fb9.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686039434; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yDXkVQ82eS92DP7vu8VjljsYKh2bV/WZ1NgDxJu5YCk=; b=YNDOFVogt0skxTb2F66rHOguQK3CcesDdBhNuEYMSCxiDjKzOgl9iG3q6jwVisKoP9voG/ 03d2qLDgKhA331vwjPRzVrMZdPg85nEAQNj0mrIuOhR11cccs7mqDY1km7SIBhP1UnvJp3 2tQx9D6oGtBk+uFxViSiy9czXotZjT2/7jv3g0UO3UjA+BWldkRGJz4Z3zexw45sMKPE20 Z6QVspvokgnDQlJn3LXsy4cV+3TrcP8FcQVS1aabbcoWnNCJlM3x1DBOVmmx5pPANhNIlM TqX6BCWtxB6GnAy1502OVSMFevA982D4E68ZnHIQ1Uhxk0hRKh1clv+ZasBKgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k9OvqVk5; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686039434; a=rsa-sha256; cv=none; b=RbIjtrP3E18Vxfgq90asC9H7VT2g3b2DJ0uG3CbYHwIPFXVdqmPvuBWDxzX8D9nv9354je XoPDcppxMapD+aAD+KtMnireurIKTtw0+swwPynw8Vsy2G+HegVO5VKjC6qeq/DNUl34te /ZvS2GTHOlQRpBI+V32MfHoiBbdap3VkERSWkzMkbhYx+eIUg49i6+fxIDGgv0bSLFpM1h 84oGyj1ufXAa3uHhhtoio0Jmne82jyj+bfz7g3gjyn7kSnqwdQMc2fSpdzRTk2KQgt9I5F e/nCjXF4i/oNeCrhRWFYzZ8l2GOKvX8LZ4+HzBKTPAzfNZb9zJX7sdvHw+4fCw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=k9OvqVk5; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0C74D2C66A X-Spam-Score: -4.09 X-TUID: TAV+VPEG8m1E Booting a system reconfigured from eed55a6544d5bda2245ec853e5fa4b28e1865bea fails with shepherd saying: error: while opening socket '/var/run/shepherd/socket': Address already i= n use The root cause appears to be that the =E2=80=98boot=E2=80=99 program has ex= pressions reversed: --8<---------------cut here---------------start------------->8--- $ guix gc --references $(guix gc --derivers $(readlink -f /var/guix/profile= s/system-236-link)) | grep boot /gnu/store/21ldhyrpji6lkkdxi4lgr5k9l5fr2b7l-boot.drv $ cat $(guix build /gnu/store/21ldhyrpji6lkkdxi4lgr5k9l5fr2b7l-boot.drv) (eval-when (expand load eval) (let ((extensions (quote ())) (prepend (lambd= a (items lst) (let loop ((items items) (lst lst)) (if (null? items) lst (lo= op (cdr items) (cons (car items) (delete (car items) lst)))))))) (set! %loa= d-path (prepend (cons "/gnu/store/pj751v3199vmv6i6sf0szp185ryzcfdg-module-i= mport" (map (lambda (extension) (string-append extension "/share/guile/site= /" (effective-version))) extensions)) %load-path)) (set! %load-compiled-pat= h (prepend (cons "/gnu/store/pql80c2hy38bb60c68sng74s4xa35vwk-module-import= -compiled" (map (lambda (extension) (string-append extension "/lib/guile/" = (effective-version) "/site-ccache")) extensions)) %load-compiled-path))))(b= egin (begin (false-if-exception (delete-file "/run/booted-system")) (symlin= k (canonicalize-path "/run/current-system") "/run/booted-system") (let loop= ((fd 3)) (when (< fd 1024) (false-if-exception (let ((flags (fcntl fd F_GE= TFD))) (when (zero? (logand flags FD_CLOEXEC)) (fcntl fd F_SETFD (logior FD= _CLOEXEC flags))))) (loop (+ fd 1)))) (execl "/gnu/store/wj5i6x3xgai7p8whwq= ybxwqdjdbmbzha-shepherd-0.10.99-git/bin/shepherd" "shepherd" "--config" "/g= nu/store/gnjghlc3n5qbala5jfdslgfi0n3vy8v7-shepherd.conf")) (primitive-load = "/gnu/store/riabgidmf6fh76klc1yam7k9j1478vvw-activate.scm") (begin (use-mod= ules (guix build utils)) (letrec-syntax ((fail-safe (syntax-rules () ((_ ex= p rest ...) (begin (catch (quote system-error) (lambda () exp) (const #f)) = (fail-safe rest ...))) ((_) #t)))) (fail-safe (delete-file "/etc/group.lock= ") (delete-file "/etc/passwd.lock") (delete-file "/etc/.pwd.lock") (setenv = "GUIX_LOCPATH" "/gnu/store/5fmqijrs5f7vx8mc2q2pmq26yvhb74sm-glibc-utf8-loca= les-2.35/lib/locale") (setlocale LC_CTYPE "en_US.utf8") (delete-file-recurs= ively "/tmp") (delete-file-recursively "/var/run") (mkdir "/tmp") (chmod "/= tmp" 1023) (mkdir "/var/run") (chmod "/var/run" 493) (delete-file-recursive= ly "/run/udev/watch.old"))))) --8<---------------cut here---------------end--------------->8--- Namely, (execl "=E2=80=A6/bin/shepherd") comes before the cleanup expressio= ns, which is why /var/run/shepherd/socket is still around when we boot. Ludo=E2=80=99.