From patchwork Thu Nov 3 20:59:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 44284 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 29AEC27BBE9; Thu, 3 Nov 2022 21:02:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0D66F27BBEA for ; Thu, 3 Nov 2022 21:01:59 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqhKl-00032K-Je; Thu, 03 Nov 2022 17:01:07 -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 1oqhKh-00030u-Cn for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -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 1oqhKh-0002Vl-1f for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqhKg-0007UB-UC for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH v2 3/3] gnu: Add low-memory-monitor Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Nov 2022 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166750921528691 (code B ref 58501); Thu, 03 Nov 2022 21:01:02 +0000 Received: (at 58501) by debbugs.gnu.org; 3 Nov 2022 21:00:15 +0000 Received: from localhost ([127.0.0.1]:50917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJv-0007Sc-Ft for submit@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJo-0007Qp-6s for 58501@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A8FFE240105 for <58501@debbugs.gnu.org>; Thu, 3 Nov 2022 22:00:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667509202; bh=ZQthox4XkoHYLJ9f5XsA1IGa5M4HkXMzf6HaRgzS+vg=; h=From:To:Cc:Subject:Date:From; b=dlRLR4uHaijm73IYgQw9B8JuBwiX7yMrX2pfZDADdW9V4YXhOnQ+ZemG/HEbDHuab nAFdhlgP/V4/efIGdsa+h4moNL66xTDVwsryJz9BdkyKl+F7BxdAI7G1XE4xgR0iNV qqKglWA2HTYwPemn9y4zMeb2SrJaq/Ct8koZXxpCAEhHujPx4MBasYuKumh5ZGGJyI rNOOtIawz6M7QsqPDCL92ie/0qgzbeuVyZdyqvBSKlcRtGWtc2EiATHfTNRSiGambb q0Z8vM+dmjiJ5lBH2Fi9I0IEOiygj0t18O2gdLyH8JT5fIBp6vrm5prMkx/q0hgMRF kM4+jweGfEBZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N3GNf0BcKz9rxV; Thu, 3 Nov 2022 22:00:02 +0100 (CET) From: florhizome@posteo.net Date: Thu, 3 Nov 2022 20:59:56 +0000 Message-Id: <51a9c9f7e617c42e11eb0b63518456763130fdf6.1667508108.git.florhizome@posteo.net> In-Reply-To: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> References: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: florhizome * gnu/packages/freedesktop.scm (Add low-memory-monitor): New variable. --- gnu/packages/freedesktop.scm | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 5c2cc16345..736c951c68 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1735,6 +1735,49 @@ (define-public libqmi ;; The qmicli tool is released under the GPLv2+ license. (list license:lgpl2.0+ license:gpl2+)))) +(define-public low-memory-monitor + (package + (name "low-memory-monitor") + (version "2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0431wzn9q2hnx0mwai8w3bcmbln8g76r7wyyhjbkamnl2sccl8jn")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dsystemdsystemunitdir=false") + #:glib-or-gtk? #t)) + (native-inputs + (list (list glib "bin") gobject-introspection gtk-doc libxml2 + pkg-config)) + (inputs + (list glib libgudev eudev)) + (home-page "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + + (synopsis "Daemon to send information about memory pressure to userspace") + (description + "Low Memory Monitor is an early boot daemon that will monitor memory +pressure information coming from the kernel, and, when memory pressure means +that memory isn't as readily available and would cause interactivity problems, + would: + +@itemize +@item send D-Bus signals to user-space applications when memory is running low, + +@item if configured to do so and memory availability worsens, activate the + kernel's OOM killer. +@end itemize + +It is designed for use on traditional Linux systems, with interactive user +interfaces and D-Bus communication.") + (license license:gpl3))) + (define-public modem-manager (package (name "modem-manager")