From patchwork Fri Nov 16 09:21:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 213 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3523516817; Fri, 16 Nov 2018 09:22:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id E3CCB167E9 for ; Fri, 16 Nov 2018 09:22:12 +0000 (GMT) Received: from localhost ([::1]:43340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNaKJ-0005vC-UY for patchwork@mira.cbaines.net; Fri, 16 Nov 2018 04:22:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNaKB-0005qd-G0 for guix-patches@gnu.org; Fri, 16 Nov 2018 04:22:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNaKA-0001BE-MR for guix-patches@gnu.org; Fri, 16 Nov 2018 04:22:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNaKA-0001B5-JW for guix-patches@gnu.org; Fri, 16 Nov 2018 04:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gNaKA-0000eS-Ce for guix-patches@gnu.org; Fri, 16 Nov 2018 04:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33405] [PATCH 00/10] De-monadify and clean up system code Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Nov 2018 09:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33405 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33405@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15423600892457 (code B ref -1); Fri, 16 Nov 2018 09:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2018 09:21:29 +0000 Received: from localhost ([127.0.0.1]:54730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNaJd-0000dZ-5l for submit@debbugs.gnu.org; Fri, 16 Nov 2018 04:21:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNaJb-0000dM-Qb for submit@debbugs.gnu.org; Fri, 16 Nov 2018 04:21:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNaJU-0000wa-Os for submit@debbugs.gnu.org; Fri, 16 Nov 2018 04:21:22 -0500 Received: from lists.gnu.org ([2001:4830:134:3::11]:46310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNaJT-0000wI-Hg for submit@debbugs.gnu.org; Fri, 16 Nov 2018 04:21:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNaJS-0005kk-MK for guix-patches@gnu.org; Fri, 16 Nov 2018 04:21:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNaJQ-0000ve-8f for guix-patches@gnu.org; Fri, 16 Nov 2018 04:21:18 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNaJN-0000uo-Hm; Fri, 16 Nov 2018 04:21:13 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58806 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gNaJN-0004J4-9w; Fri, 16 Nov 2018 04:21:13 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Fri, 16 Nov 2018 10:21:03 +0100 Message-Id: <20181116092103.4274-1-ludo@gnu.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! Here’s a South-hemisphere spring cleanup of the system code. Mostly it removes monadic forms here and there, which in turn simplifies the code and reduces the number of lines (yay!). There’s one user-visible change: ‘base-initrd’ and ‘raw-initrd’ are no longer monadic, so people who were using them in their ‘initrd’ field can be bitten by this incompatible. I think it’s OK though, because in practice people either no longer use the ‘initrd’ field now that there’s ‘initrd-modules’, or if they use ‘initrd’, they simply tail-call to ‘raw-initrd’ or ‘base-initrd’, in which case the type of its return value doesn’t matter much. Thoughts? Thanks, Ludo’. Ludovic Courtès (10): bootloader: De-monadify configuration file generators. system: Simplify kernel argument handling. linux-initrd: Return file-like objects instead of monadic values. system: De-monadify 'operating-system-boot-parameters'. system: Please Emacs. system: De-monadify 'operating-system-bootcfg'. vm: Remove explicit calls to 'operating-system-derivation'. guix system: Simplify bootloader package handling. guix system: De-monadify bootloader installation script. guix system: Clarify 'perform-action'. doc/guix.texi | 14 +-- gnu/bootloader/extlinux.scm | 6 +- gnu/bootloader/grub.scm | 104 +++++++++---------- gnu/bootloader/u-boot.scm | 5 - gnu/system.scm | 162 ++++++++++++++--------------- gnu/system/linux-initrd.scm | 13 ++- gnu/system/vm.scm | 202 +++++++++++++++++------------------- guix/scripts/system.scm | 89 ++++++++-------- 8 files changed, 285 insertions(+), 310 deletions(-)