all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#68011] [PATCH] gnu: thinkfan: Don't fake SystemD or OpenRC presences.
@ 2023-12-24 18:48 lgcoelho--- via Guix-patches via
  2024-11-09 10:51 ` bug#68011: close issue lgcoelho--- via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: lgcoelho--- via Guix-patches via @ 2023-12-24 18:48 UTC (permalink / raw)
  To: 68011


[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]

This patch removes the modification to CMakeLists.txt made to fake the 
presence of SystemD and OpenRC, since it doesn't provide any actual 
utility for Guix, and places thinkfan.pid in a non-default place: 
/run/thinkfan.pid. This patch corrects it, placing the pid file in 
/var/run/, like wpa_supplicant, dhclient, syslog, tor, thermald and 
other Guix Services.

[-- Attachment #1.2: Type: text/html, Size: 547 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-thinkfan-Don-t-fake-Systemd-or-OpenRC-presences.patch --]
[-- Type: text/x-diff; name=0001-gnu-thinkfan-Don-t-fake-Systemd-or-OpenRC-presences.patch, Size: 1557 bytes --]

From 13132e9535fd390cf93556436537108b4cab3799 Mon Sep 17 00:00:00 2001
From: Luis Guilherme Coelho <lgcoelho@disroot.org>
Date: Sun, 24 Dec 2023 15:42:02 -0300
Subject: [PATCH] gnu: thinkfan: Don't fake Systemd or OpenRC presences

---
 gnu/packages/linux.scm | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2d9e4cebbe..887a02d79f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6478,17 +6478,8 @@ (define-public thinkfan
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'create-init-scripts
-            ;; CMakeLists.txt relies on build-time symptoms of OpenRC and
-            ;; systemd to patch and install their service files.  Fake their
-            ;; presence rather than duplicating the build system below.  Leave
-            ;; things like ‘/bin/kill’ because they're not worth a dependency.
-            ;; The sysvinit needs manual patching, but since upstream doesn't
-            ;; even provide the option to install it: don't.
             (lambda _
-              (substitute* "CMakeLists.txt"
-                (("pkg_check_modules\\((OPENRC|SYSTEMD) .*" _ package)
-                 (format #f "option(~a_FOUND \"Faked\" ON)\n" package))
-                ;; That was easy!  Now we just need to fix the destinations.
+                ;; Fix the destinations.
                 (("/etc" directory)
                  (string-append #$output directory))))))))
     (native-inputs
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#68011: close issue
  2023-12-24 18:48 [bug#68011] [PATCH] gnu: thinkfan: Don't fake SystemD or OpenRC presences lgcoelho--- via Guix-patches via
@ 2024-11-09 10:51 ` lgcoelho--- via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: lgcoelho--- via Guix-patches via @ 2024-11-09 10:51 UTC (permalink / raw)
  To: 68011-close

[-- Attachment #1: Type: text/html, Size: 199 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-09 10:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-24 18:48 [bug#68011] [PATCH] gnu: thinkfan: Don't fake SystemD or OpenRC presences lgcoelho--- via Guix-patches via
2024-11-09 10:51 ` bug#68011: close issue lgcoelho--- via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.