From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ZRmILa+rUGDJZwAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 12:59:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8MPIKK+rUGAjKwAAB5/wlQ (envelope-from ) for ; Tue, 16 Mar 2021 12:59:27 +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 435B928F04 for ; Tue, 16 Mar 2021 13:59:27 +0100 (CET) Received: from localhost ([::1]:46192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lM9IE-0000aW-BR for larch@yhetil.org; Tue, 16 Mar 2021 08:59:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lM9Hs-0000BK-09 for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lM9Hr-0001WR-Oq for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lM9Hr-0005pw-OH for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47163] [PATCH] refresh: Add '--installed' option. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 12:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47163 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?L=C3=A9o?= Le Bouter Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Xinglu Chen , 47163@debbugs.gnu.org Received: via spool by 47163-submit@debbugs.gnu.org id=B47163.161589954322429 (code B ref 47163); Tue, 16 Mar 2021 12:59:03 +0000 Received: (at 47163) by debbugs.gnu.org; 16 Mar 2021 12:59:03 +0000 Received: from localhost ([127.0.0.1]:38449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM9Hq-0005pZ-NF for submit@debbugs.gnu.org; Tue, 16 Mar 2021 08:59:02 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]:46821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM9Hp-0005p2-J7 for 47163@debbugs.gnu.org; Tue, 16 Mar 2021 08:59:01 -0400 Received: by mail-qv1-f42.google.com with SMTP id j17so9424784qvo.13 for <47163@debbugs.gnu.org>; Tue, 16 Mar 2021 05:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9MVKdLTW2CPXh7BLGjYmrRb/P3/PMeH6vC6H71+JtRE=; b=dfLUELGrqNATVMASr9ulgtjN5V+kRi4OJ76jMAiFYv5Ak6id1esto3JYbHoKDn8HIG IkNPxCIuzMLhBkJMmyMdgIEO4iAGhcpdwAEJg/WoX66HK5P3HLEA7KQJVLoQjQdOmMhF +DDph5g+m6EoQdGUEqeNGjI2OUaT7Jk0bqufyeHFNlH4CklMp9PlTaen4CN1n6ZTrd0t 8T95nkK7+bO6dcHngKUHQrIqZHJQ3V7lIrkmbITeTddK9fS6N5WHj8dKuaGPaTqNx9iA 01EIF0cr+jZ78541FXqg+p2UCWVcC41rPLMMZQakENL6owC7qEseU/HRZ9WfYVI7k7Bk f7/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9MVKdLTW2CPXh7BLGjYmrRb/P3/PMeH6vC6H71+JtRE=; b=ltiwbNw7PdoWi4rOiQTmVUo1ZJ6lZvzJ+0quVXhqFSqca7JVjjW9djf6afHR8oP+1U Tr6dKn1/PSbIswiu5ZtYPIzG9XBtXS/YBvc+OnCIoa/x92BLTTY7TPDsIIqIcSbX2Jrh gL48GjXp0nW54Ou3B5UJiAhg0YBGsNWV+vPISqIWnIzDO7wv0yh1sRCyxShRguFOtkpW yeA9hdD0ApFUO2IH9hVNbhM9X2vs9UeQwp0EQJU0JId9BQ03imrSAzwIhtl6gXs/KPTT s3kZkX9RzGQjKRk1FSQtT7z4lOyIDQD8g3BnX3opXF6K4yC+vLy+KX5mmOF+NAuLms5j ab6g== X-Gm-Message-State: AOAM530HwyrO8XfCOPjv90Q+RvSZm1QResCznOQ323MGE8am4D6D0rCZ 7XvFM2YaHVykea5uzjet2rZzdO6dUtJE1lVXOz8= X-Google-Smtp-Source: ABdhPJzvMW5F6VcjJzD1NIXcl/rvLm0Aa2HhslY72R8DpF5RR8d4x7LrmhPZ4IzcXXFR7BLWp3+FAyz4SLMzBStuh/M= X-Received: by 2002:ad4:4991:: with SMTP id t17mr15384901qvx.33.1615899535821; Tue, 16 Mar 2021 05:58:55 -0700 (PDT) MIME-Version: 1.0 References: <87v99sb1aa.fsf@gnu.org> <87mtv4azmi.fsf@yoctocell.xyz> <87tupb8nzs.fsf@gnu.org> In-Reply-To: From: zimoun Date: Tue, 16 Mar 2021 13:58:44 +0100 Message-ID: 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615899567; 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=9MVKdLTW2CPXh7BLGjYmrRb/P3/PMeH6vC6H71+JtRE=; b=njUv4wYjcxPvb/TTcJFjeKr8KO8RZ5JVX28A/isTSig9fJB7RcHWPvSOWRy9l09+xhMIbw N4DKVMDdhtiSCMO/t4+V0s49plMWcyWv+bJ9j3Rc75yTZ2EZ2eFEXwPUf4z7iElgRxkY5T jQ4Rz7IpNabfJmCgE6qRLo8UDDeZA1DTG0ERAp6T23TQJ6kScaqX7ShfQvWM0K7tYjgrlU /nnBawZ87qqVdKHDyYCNQz0Y19al+nHKor/F/iF1RM4mqLTMCBAG11VchJaAHHeq3vL6Te 1P+iZJjLqvfK7Y9WS4CjuBa1agNCPoBwc1Q1ElS+Qm/bZXMcEgunm9Hkq1xDbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615899567; a=rsa-sha256; cv=none; b=OL5WxaQmjKWFfHcz5rn+WiKoeJbkijLJ55pWHnLdsqmhzVwLKFOIfge2W90i3iIxuX/Uzl MPnMhJh08Q4OY8Wz5Y7FB73EKkt2NdXj0ejfWDuvIIjaI71iJwsWZ7uDxSuv9AYxD2jPz6 Wv7swtvNjnBnDlnj0LtZY3h7rlQVUekXkTISfFevRAZG0nx62ZKNXfY/UFNhJf6oN+v2X3 NuD15+p2qttq/LLlFpY1iQSwRjoc/6WWOZbMrJPK0UAjpHJVMsGZ01hyjVAX0DQl9E9fCU pX0Eu2MeD+99f3g0bje5Hjxwwqy6BJwWjJ2dPuuSlebrK/QONfDZTIanQ6p9cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=dfLUELGr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=dfLUELGr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Queue-Id: 435B928F04 X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4fSOgEOHm+dR Hi L=C3=A9o, On Tue, 16 Mar 2021 at 10:18, L=C3=A9o Le Bouter via Guix-patches via wrote: > I would also really like such option for 'lint' and 'refresh' that can > take an operating-system definition so I can ensure a certain set of > packages are up to some standards and help me focus my efforts on my or > some fellow's configuration (especially w.r.t. security), rather than > randomly trying to maintain *everything* in the GNU Guix repo which is > quite exhausting and large work to take on. Starting from a place of > actual need for myself and some fellow's configurations looks like a > more achieveable goal mid-term. Adding the manifest option to "guix lint", is it not enough? I do not know how many packages you have in your operating-system definition but from my understanding your user-wide packages should be in manifest.scm files, and you could also maintain a manifest.scm file for your packages system-wide. Anyway. Here an example with an hard-coded path, saved in /tmp/manifest-from-os.scm= : --8<---------------cut here---------------start------------->8--- (use-modules (gnu system) (guix profiles)) (define os (load "/home/simon/src/guix/guix/gnu/system/examples/bare-bones.tmpl")) (define pkgs (operating-system-packages os)) (packages->manifest pkgs) --8<---------------cut here---------------end--------------->8--- Then "guix refresh -m /tmp/manifest-from-os.scm" should do the job. Well, it is an example, the point is simply to show that an option is not necessary, IMHO. However, a robust script could be in etc/ with some other tools and with a line in the manual. Maybe. :-) It seems better to keep separated what operates on packages and what operates on system. Cheers, simon