From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aHVeI7J4SWMnEQEAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 16:56:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IKZDI7J4SWOvXgEAauVa8A (envelope-from ) for ; Fri, 14 Oct 2022 16:56:50 +0200 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 33DF0AEDE for ; Fri, 14 Oct 2022 16:56:50 +0200 (CEST) Received: from localhost ([::1]:57882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM7F-0005dK-A9 for larch@yhetil.org; Fri, 14 Oct 2022 10:56:49 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665759410; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=v720sk1iAlyeod5q56lNvldTp/dsiSY0Vo3zv5/rdp8=; b=Fwv46yJ2MBlyI4lIIwnfzobm8qeI1R6pCkhjVLIi+KiNLL03zIr6RiZjpnMwwuLneU+aLm hdMLZ2lmlqz4qUtDfGwtgOsydfVuSxqFy1GrFZ+W4s8ei0Nv7lBKGSUhXIcsakA/4YHIp7 d+vrwLYDiv4YSC9RLw15Hy5cSQO1IGFLP5eT+buWE2a9w7hnNNjc2BfFkhYf/qG8f2NhK4 cesdzTJkCaxmUY3txgXyBRxafcM08/M14sVLWn10alnoVLbFGJ5uO9y4rTNpHX0z4iNk0A /GXKf1hhwsAXYUomcpizddoVDB2ZeCCAO4CeUT55bPlyoobJE85rmbRmrwCGVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665759410; a=rsa-sha256; cv=none; b=cpp4sZDCuypo2Y8MmmxKKTAQqJxDutijRdfkLSkwF0NCjBC1lXYBW/3Ndlt8Swk08HBTa9 Psm4qrze4SVIs50bEOxMp649h1KTxPQ16BMmjAtsXFFAhM6UBXNHHv837KKoWkNt0b4POu UYfrHPqEKe3ZWojFvIHLdPE614T7zHlEM/Lpsxzl7CGttOqdrCXv2fUqEzQrePyt1NRV0S S6u+mkJjBMiH/qL/Vu9RfxEyRqjiJzBFuUd4VjGS284+65Wiea0ZOe/zz+bpGU+sjba3gW 147r2Y2Frbzm6MwrynZqbfbJKT1fZidPqiJEam59ofwmQUW/0xYxo9padd/kRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=LjsUeR40; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" X-Migadu-Spam-Score: 7.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=LjsUeR40; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" X-Migadu-Queue-Id: 33DF0AEDE X-Spam-Score: 7.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: FsU/M4WPo7uq 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") -- 2.38.0