public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin Berg <benjamin@sipsolutions.net>
To: git-commits@fedoraproject.org
Subject: [rpms/uresourced] rawhide: Update to 0.5.5
Date: Mon, 21 Sep 2026 07:48:39 GMT	[thread overview]
Message-ID: <178997691962.1.5337590137335547537.rpms-uresourced-d3e81dbd0f1d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/uresourced
            Branch : rawhide
            Commit : d3e81dbd0f1d73de0707e2062fb0553cd7d034ee
            Author : Benjamin Berg <benjamin@sipsolutions.net>
            Date   : 2026-09-20T13:15:26+02:00
            Stats  : +17/-2 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/uresourced/c/d3e81dbd0f1d73de0707e2062fb0553cd7d034ee?branch=rawhide

            Log:
            Update to 0.5.5

Also add a cleanup script for generated configuration files.

Resolves: #2259354

---
diff --git a/.gitignore b/.gitignore
index 9fff2cb..94e0029 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
 /uresourced-v0.5.2.tar.bz2
 /uresourced-v0.5.3.tar.bz2
 /uresourced-v0.5.4.tar.bz2
+/uresourced-v0.5.5.tar.bz2

diff --git a/sources b/sources
index 6eaafcf..858d594 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (uresourced-v0.5.4.tar.bz2) = c9c6499968aeeb4cb0e7a72d12b3778f4460d0f278e592feca1deb5d54c91dd19a27f8741c34b5e3d142e72b10a945e86b45c3ecd2864b45f1dd2acad319fb66
+SHA512 (uresourced-v0.5.5.tar.bz2) = 5e146b74480ac5d77b950f4eac23448ddcc6e775e190c915291d00a12d4a4161ac0d87358c70205a6f5427b98364fe2c620caf46e1fa9dd866b1c8dc1e667148

diff --git a/uresourced.spec b/uresourced.spec
index 82cb9d0..e94db73 100644
--- a/uresourced.spec
+++ b/uresourced.spec
@@ -1,5 +1,5 @@
 Name:           uresourced
-Version:        0.5.4
+Version:        0.5.5
 Release:        %autorelease
 Summary:        Dynamically allocate resources to the active user
 
@@ -32,6 +32,20 @@ to protect the sessions core processes (session.slice).
 %meson_install
 
 %post
+# before version 0.5.5 uresourced accidentally persisted the configuration,
+# remove the generated configuration files and directories.
+shopt -s nullglob
+
+for f in /etc/systemd/system.control/user{@*.service.d,-*.slice.d}/50-{CPUWeight,IOWeight,MemoryLow,MemoryMin}.conf; do
+  /usr/bin/rm -f "$f" || true
+done
+
+for d in /etc/systemd/system.control/user{@*.service.d,-*.slice.d}; do
+  /usr/bin/rmdir --ignore-fail-on-non-empty "$d"|| true
+done
+
+shopt -u nullglob
+
 %systemd_post uresourced.service
 %systemd_user_post uresourced.service
 

                 reply	other threads:[~2026-09-21  7:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178997691962.1.5337590137335547537.rpms-uresourced-d3e81dbd0f1d@fedoraproject.org \
    --to=benjamin@sipsolutions.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox