summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-07-20 15:19:27 -0400
committerMike Gilbert <floppym@gentoo.org>2021-07-20 15:19:27 -0400
commit45552ee6b4e67a0915e8064b00fe0feda67a87de (patch)
tree37d9913e696d5865dc0ca2aab518ed3f1ee6d4d5 /sys-apps/systemd/files/249-hostnamed-error-variable.patch
parentsys-apps/systemd: Stabilize 248.5 arm, #803041 (diff)
downloadgentoo-45552ee6b4e67a0915e8064b00fe0feda67a87de.tar.gz
gentoo-45552ee6b4e67a0915e8064b00fe0feda67a87de.tar.bz2
gentoo-45552ee6b4e67a0915e8064b00fe0feda67a87de.zip
sys-apps/systemd: drop 248.3-r1
Bug: https://bugs.gentoo.org/803041 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/systemd/files/249-hostnamed-error-variable.patch')
-rw-r--r--sys-apps/systemd/files/249-hostnamed-error-variable.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/sys-apps/systemd/files/249-hostnamed-error-variable.patch b/sys-apps/systemd/files/249-hostnamed-error-variable.patch
deleted file mode 100644
index 7fe7af73a003..000000000000
--- a/sys-apps/systemd/files/249-hostnamed-error-variable.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 105a4245ff13d588e1e848e8ee3cffd6185bd0ae Mon Sep 17 00:00:00 2001
-From: Jan Palus <jpalus@fastmail.com>
-Date: Thu, 8 Jul 2021 00:23:21 +0200
-Subject: [PATCH] hostnamed: correct variable with errno in fallback_chassis
-
-fixes assertion failure on arm:
-
-systemd-hostnamed[642]: Assertion '(_error) != 0' failed at src/hostname/hostnamed.c:207, function fallback_chassis(). Aborting.
----
- src/hostname/hostnamed.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
-index bd535ddc4d80..36702f2fb0cd 100644
---- a/src/hostname/hostnamed.c
-+++ b/src/hostname/hostnamed.c
-@@ -204,14 +204,14 @@ static const char* fallback_chassis(void) {
-
- r = read_one_line_file("/sys/class/dmi/id/chassis_type", &type);
- if (r < 0) {
-- log_debug_errno(v, "Failed to read DMI chassis type, ignoring: %m");
-+ log_debug_errno(r, "Failed to read DMI chassis type, ignoring: %m");
- goto try_acpi;
- }
-
- r = safe_atou(type, &t);
- free(type);
- if (r < 0) {
-- log_debug_errno(v, "Failed to parse DMI chassis type, ignoring: %m");
-+ log_debug_errno(r, "Failed to parse DMI chassis type, ignoring: %m");
- goto try_acpi;
- }
-
-@@ -260,14 +260,14 @@ static const char* fallback_chassis(void) {
- try_acpi:
- r = read_one_line_file("/sys/firmware/acpi/pm_profile", &type);
- if (r < 0) {
-- log_debug_errno(v, "Failed read ACPI PM profile, ignoring: %m");
-+ log_debug_errno(r, "Failed read ACPI PM profile, ignoring: %m");
- return NULL;
- }
-
- r = safe_atou(type, &t);
- free(type);
- if (r < 0) {
-- log_debug_errno(v, "Failed parse ACPI PM profile, ignoring: %m");
-+ log_debug_errno(r, "Failed parse ACPI PM profile, ignoring: %m");
- return NULL;
- }
-