public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Festi <ffesti@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Also block idle and sleep in the systemd-inhibit plugin
Date: Mon, 23 Nov 2026 09:29:53 GMT [thread overview]
Message-ID: <179542619391.1.13497197013831962086.rpms-rpm-0d0e45ddf579@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 0d0e45ddf5794919bd87c589d1253ab44c6787a6
Author : Florian Festi <ffesti@redhat.com>
Date : 2016-02-19T14:38:38+01:00
Stats : +32/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/0d0e45ddf5794919bd87c589d1253ab44c6787a6?branch=pmatilai-v6
Log:
Also block idle and sleep in the systemd-inhibit plugin
Resolves: #1297984
---
diff --git a/rpm-4.13.0-idle-and-sleep-in-systemd-inhibit.patch b/rpm-4.13.0-idle-and-sleep-in-systemd-inhibit.patch
new file mode 100644
index 0000000..8b769c8
--- /dev/null
+++ b/rpm-4.13.0-idle-and-sleep-in-systemd-inhibit.patch
@@ -0,0 +1,27 @@
+From 83219d023b5b21826c7482d4aa3f6372f520825d Mon Sep 17 00:00:00 2001
+From: Florian Festi <ffesti@redhat.com>
+Date: Fri, 19 Feb 2016 09:56:31 +0100
+Subject: [PATCH] Also block idle and sleep in the systemd-inhibit plugin
+
+We really should not suspend or hibernate during rpm operations. Chances are
+too high to not wake up properly and damage the system (see rhbz#1297984).
+---
+ plugins/systemd_inhibit.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/plugins/systemd_inhibit.c b/plugins/systemd_inhibit.c
+index b05d3d2..4a90c44 100644
+--- a/plugins/systemd_inhibit.c
++++ b/plugins/systemd_inhibit.c
+@@ -27,7 +27,7 @@ static int inhibit(void)
+ }
+
+ if (msg) {
+- const char *what = "shutdown";
++ const char *what = "idle:sleep:shutdown";
+ const char *mode = "block";
+ const char *who = "RPM";
+ const char *reason = "Transaction running";
+--
+2.5.0
+
diff --git a/rpm.spec b/rpm.spec
index d955517..0616824 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -29,7 +29,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}23%{?dist}
+Release: %{?snapver:0.%{snapver}.}24%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -68,6 +68,7 @@ Patch112: rpm-4.13.0-missingok.patch
Patch113: rpm-4.13.0-recursing-rpmdeps.patch
Patch114: rpm-4.13.0-autosetup-errors.patch
Patch115: rpm-4.13.0-unlimited-macro-expand.patch
+Patch116: rpm-4.13.0-idle-and-sleep-in-systemd-inhibit.patch
# These are not yet upstream
Patch302: rpm-4.7.1-geode-i686.patch
@@ -578,6 +579,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Fri Feb 19 2016 Florian Festi <ffesti@rpm.org> - 4.4.13.0-0.rc1.24
+- Also block idle and sleep in the systemd-inhibit plugin (#1297984)
+
* Mon Feb 02 2016 Lubos Kardos <lkardos@redhat.com> - 4.13.0-0.rc1.23
- Remove size limit when expanding macros (#1301677)
reply other threads:[~2026-11-23 9:29 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=179542619391.1.13497197013831962086.rpms-rpm-0d0e45ddf579@fedoraproject.org \
--to=ffesti@redhat.com \
--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