From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wOwHKNjjqGOZeQAAbAwnHQ (envelope-from ) for ; Mon, 26 Dec 2022 00:59:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wJTsJ9jjqGORhAEAauVa8A (envelope-from ) for ; Mon, 26 Dec 2022 00:59:20 +0100 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 6112047080 for ; Mon, 26 Dec 2022 00:59:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9atT-0001Yn-FO; Sun, 25 Dec 2022 18:59:03 -0500 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 1p9atS-0001YZ-BF for guix-patches@gnu.org; Sun, 25 Dec 2022 18:59:02 -0500 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 1p9atS-00074t-2x for guix-patches@gnu.org; Sun, 25 Dec 2022 18:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p9atR-0001ND-RJ for guix-patches@gnu.org; Sun, 25 Dec 2022 18:59:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60112] [PATCH] website: Add post about guix shell fhs option. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Dec 2022 23:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60112 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: John Kehayias Cc: 60112@debbugs.gnu.org Received: via spool by 60112-submit@debbugs.gnu.org id=B60112.16720127265234 (code B ref 60112); Sun, 25 Dec 2022 23:59:01 +0000 Received: (at 60112) by debbugs.gnu.org; 25 Dec 2022 23:58:46 +0000 Received: from localhost ([127.0.0.1]:50370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9atB-0001ML-Q2 for submit@debbugs.gnu.org; Sun, 25 Dec 2022 18:58:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9at9-0001M5-Ns for 60112@debbugs.gnu.org; Sun, 25 Dec 2022 18:58:44 -0500 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 1p9at3-00073f-Rq; Sun, 25 Dec 2022 18:58:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=L9DC4fCu9FuH2xR1ePBHctBI45TFoa3YB5w8teACqoY=; b=ipX0EGOYFBeISr6FEy46 S69TWEyHA0apkQ/tkUEA3VMlfgKgT6dd3YDBpUd4rdgt5wZQPXBmcf/9MEz4WJS2fkPl/1Pf3KVdc iJ5z0WQDdHTLkpWZdBRNkuWL4zgaxCdxZn3gy3MBcRIj8Ni3RXij7RioXv4mK8ztNVc8njQ9U3ZrH hy3aHhh+0eGAeE7fA0fGpjxLm2B+wCFBXnbB0ZBUwcKCqSO9FRkQWme7Lxi7dX14Otcatz86UpwkS jIb1j/LnJGs6Xhqejfz5ptsHdXq3ymp3nEGnQT8T7r1bJMJaCnOSP2Y4kp3QAwNc6671yWHsdCBAp uFfiZCTPCc7AmA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9at3-00040L-D8; Sun, 25 Dec 2022 18:58:37 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877cyrlsep.fsf@protonmail.com> Date: Mon, 26 Dec 2022 00:58:35 +0100 In-Reply-To: <877cyrlsep.fsf@protonmail.com> (John Kehayias's message of "Fri, 16 Dec 2022 07:27:47 +0000") Message-ID: <87lemvujbo.fsf@gnu.org> 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: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672012760; a=rsa-sha256; cv=none; b=in03GsjphwXP0/tMacFd0VpmlqDtmFbNk3JeM0DlTbuWMLSQ8mMcBJdZyP8eoO/Y99DIjT FxvWITdvdmm9jGktsal/mx1hHlVhH8VE33e2+ObUFC6lN899EO/tyvLuAbXMOgd889mF+R 8/T1/uVLPr5QP71StPWAhRzqb34LVOv6D7yhgjzD2dGQaK/r/Fj4xt9IeCHBAVAHOcjun8 S1XPdl29te3gTXLf+NtZOgq9BDVkaIpJ6Bmzdec9xBH+NnGGyOwWCLTDBQTJRJCDwMKZDA bXsTU/bpa/RiYZmV+6sxnceFMmSDNrLDKFu3dyNj1XV1Ksu5E9qWNND1gVULEw== 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=ipX0EGOY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672012760; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=L9DC4fCu9FuH2xR1ePBHctBI45TFoa3YB5w8teACqoY=; b=loKYlf38+jMEkKZspZPWuTcmqd+hIjP9XV0Zt+l+jiCHFKm/VSKdVvQwU1fi0cJ4kEvaCx Zybd5PEhiFxeYduQPalusAQmZVyUB+4JFsp4DKWvmqezmaAvU4XK9suIMjiSRXHWf/j6A1 /QVd9qcMcDKl/wS88y2OkF9F6yXu6by1SjLpIZ23Sy/fdgTagxrSG8O/Hz4cPA07l1oWCf BNbBEmkNAgHYxIz3P16twElOUe5c5rcOOjmuJHyKI7tjIQmZHu3L6czrsxVmoFCYUcxTno 9Pu7/ml2y0h20B3KugXMMEkq5PMbGZ2chdGAsu5NiU3oekHlmDGSKmoXkJ62tA== X-Spam-Score: -5.02 X-Migadu-Queue-Id: 6112047080 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ipX0EGOY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.02 X-TUID: 4WCJm/8i1aEW Hi John, I=E2=80=99m seeing this only now, apologies! (I thought the discussion was continuing in the guix-devel thread, my bad. :-/) John Kehayias skribis: > From e13d5a92a98680bf0d0b30fbd124a5e7725f7475 Mon Sep 17 00:00:00 2001 > From: John Kehayias > Date: Fri, 16 Dec 2022 02:22:17 -0500 > Subject: [PATCH] website: Add post about guix shell fhs option. > > * website/posts/guix-shell-fhs.md: New file. > website/static/blog/img/guix-shell-fhs.gif: New file. Overall looks great to me and pretty much ready to go. Minor suggestions. > +++ b/website/posts/guix-shell-fhs.md > @@ -0,0 +1,140 @@ > +title: FHS Comes to Guix Containers Should we spell =E2=80=9CFHS=E2=80=9D out? > +GNU Guix is different from most other GNU/Linux distributions and perhap= s nowhere is that more obvious than the organization of the filesystem: Gui= x does not conform to the [Filesystem Hierarchy Standard](https://refspecs.= linuxfoundation.org/fhs.shtml) (FHS). In practical terms, this means there = is no global `/lib` containing libraries, `/bin` containing binaries,<= a id=3D"fnr.1" class=3D"footref" href=3D"#fn.1" role=3D"doc-backlink">1= and so on. This is very much at the core of how Guix works and some = of the convenient features, like per-user installation of programs (differe= nt versions, for instance) and a declarative system configuration where the= system is determined from a configuration file. Haunt uses Guile-Commonmark, and I don=E2=80=99t think we can use inline HT= ML nor footnotes actually. A bit of a bummer, but maybe you can approximate that with: `/bin` containing binaries=C2=B9, =E2=80=A6 and at the bottom: =C2=B9 Blah. It might be worth mentioning somewhere that the feature is included in the just-released 1.4.0 now. > +Here is a very simple example: > + > + $ guix shell --container --emulate-fhs coreutils -- ls /bin | head > + [ > + b2sum > + base32 > + base64 > + basename > + basenc > + cat > + catchsegv > + chcon > + chgrp Example examples in triple backquotes (i.e., ```), without extra indentation. > +[![img](guix-shell-fhs.gif "Or, if you like to see it more in motion, he= re's a gif.")](guix-shell-fhs.gif) The syntax is: ![Alt text.](/static/blog/img/=E2=80=A6) Note that the alt text is not shown unless one disables pictures or hovers over the picture. So =E2=80=9COr, if you like [=E2=80=A6]=E2=80=9D = should probably be written above the image. You can test the web site with: guix shell and then: export GUIX_WEB_SITE_LOCAL=3Dy haunt build haunt serve Should we publish it after Jan. 1st, since people are more likely to miss it during the holiday season? Thanks! Ludo=E2=80=99.