From patchwork Fri Oct 14 12:02:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43404 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 6B82427BBED; Fri, 14 Oct 2022 15:56:52 +0100 (BST) 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=ham 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 1F5B527BBEA for ; Fri, 14 Oct 2022 15:56:52 +0100 (BST) Received: from localhost ([::1]:57882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM7H-0005dK-8m for patchwork@mira.cbaines.net; Fri, 14 Oct 2022 10:56:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Z-00044r-6z for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-0004M6-Po for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5Y-00063l-K6 for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 3/3] gnu: freedesktop: Add low-memory-monitor Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:04 +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.166575925923182 (code B ref 58501); Fri, 14 Oct 2022 14:55:04 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:19 +0000 Received: from localhost ([127.0.0.1]:38295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4p-00061m-87 for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJPA-0000l7-E0 for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E840A240028 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:03:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748982; bh=f9o8UwWWi3EYCSkyjAjyIl81jyNJT51CNkUzw2geLro=; h=From:To:Cc:Subject:Date:From; b=LjsUeR40jqGXM3tPDwyJSYD3TQTG3twqIqwDjV6iz/0r5C2bZbrDS8/szptlfzsCC gSTT8BKAAEfeijRwp/quQux0LfeCHb+DuCuCj/d/of8I3uccYerpZ70lpOGeA3YWHf crwXk4NMLC09lypZZESi0ljy3pXhnAz6BpaXexIwhdXLg80ZZDK9lCkA5q0POIKpDl 1IQ3/uGSxipeuH8akKFYKaEuSGr+1AZmtNq68lFcbkJXqYLf3iZRAAv1TabxraDwL7 P+dLK/SzF5PBlY7PGUc+18Ms5x6QZ5JDmECKE6W1YVxT/N7O8mwhk6SukAR06S0bm4 QCCqdIpKpVOvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQG3kzkz6tmV; Fri, 14 Oct 2022 14:02:59 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:46 +0000 Message-Id: <922dee2e76de618b0bfc406e749bd32e854cc3b3.1665748966.git.florhizome@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: florhizome --- gnu/packages/freedesktop.scm | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index b6aaf1f1ba..5d496da71e 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1733,6 +1733,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 + `(#:configure-flags (list "-Dsystemdsystemunitdir=false") + #:tests? #f + #:glib-or-gtk? #t)) + (native-inputs + (list `(,glib "bin") gtk-doc libxml2 + gobject-introspection pkg-config)) + (inputs + (list glib libgudev eudev)) + (synopsis "Daemon to send information about memory pressure to userspace") + (description + "The 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.") + (home-page "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + (license license:gpl3))) + (define-public modem-manager (package (name "modem-manager")