GNU bug report logs - #74671
[PATCH] gnu: freedesktop: Add `libsystemd`

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Ryan Sundberg <ryan@HIDDEN>; Keywords: patch; dated Tue, 3 Dec 2024 15:46:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Dec 2024 15:45:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 10:45:11 2024
Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tIV5K-0005Lz-KD
	for submit <at> debbugs.gnu.org; Tue, 03 Dec 2024 10:45:11 -0500
Received: from lists.gnu.org ([209.51.188.17]:41268)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ryan@HIDDEN>) id 1tIV5I-0005KJ-BR
 for submit <at> debbugs.gnu.org; Tue, 03 Dec 2024 10:45:09 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ryan@HIDDEN>) id 1tIV5H-0001Zw-6a
 for guix-patches@HIDDEN; Tue, 03 Dec 2024 10:45:07 -0500
Received: from mail.arctype.co ([138.68.9.245])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ryan@HIDDEN>) id 1tIV5E-0001iW-Sv
 for guix-patches@HIDDEN; Tue, 03 Dec 2024 10:45:06 -0500
Received: from authenticated-user (mail.arctype.co [138.68.9.245])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.arctype.co (Postfix) with ESMTPSA id 45F2513B1B3;
 Tue,  3 Dec 2024 15:44:29 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arctype.co; s=mail;
 t=1733240669; bh=Llfd53lG6fZ1dNUZnrzA/XmKGRX8ClD9qLcA9JMD+ZU=;
 h=From:To:Cc:Subject:Date:From;
 b=cmjhEMFFTBA37hZuKwpVYXEQxyNUD8PI1UeNlFg5+jGPoK3ButQFNOOJaQxcQ9jjE
 LAK4A7CHz8iquIChC19Ozt6P/YIWAP+/ZZHRq2CVk5w0F5dbkeiYeZJizqsm2tYB9E
 x/sKjloS+KLaNaMkVEcDybZ34T3YvLUBNRJjRrgxu5TTG3RPm7RAJKDnqbFeJe+epn
 q5Orl/KGixynbq2JAwiORlTw3HA41q4bmBgjksTaHCbMm2TuoX/feWXm+86IzSTu57
 ksRxyOc3EtyN9bMD2zz3fScvjr9G4FTn274O3grXBn1xayy3tQbRyfgpMrHWVteGd0
 5B1oXQWKHcVfQ==
From: Ryan Sundberg <ryan@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: freedesktop: Add `libsystemd`
Date: Tue,  3 Dec 2024 07:44:05 -0800
Message-ID: <9af5f2a281ba77ed960a9117a819bce2ab03f4a9.1733240631.git.ryan@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: permerror client-ip=138.68.9.245; envelope-from=ryan@HIDDEN;
 helo=mail.arctype.co
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01,
 URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: submit
Cc: Ryan Sundberg <ryan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

Provide libsystemd.so and associated header files for linking against
systemd. While users may not wish to use systemd as an init system, some
programs may require this for their build process.

* gnu/packages/freedesktop.scm (libsystemd): New variable

Change-Id: I3f3b16e021ccca801693a0b8e1ba2d9cb040a952
Signed-off-by: Ryan Sundberg <ryan@HIDDEN>
---
 gnu/packages/freedesktop.scm | 43 ++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index af35625c18..e2d2b60376 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -761,6 +761,49 @@ (define-public libinput-minimal
                "-Ddebug-gui=false"    ;requires gtk+@3
                ,flags))))))
 
+(define-public libsystemd
+  (package
+    (name "libsystemd")
+    (version "256.9")
+    (source
+      (origin
+        (method git-fetch)
+        (uri
+          (git-reference
+            (url "https://github.com/systemd/systemd.git")
+            (commit (string-append "v" version))))
+        (sha256
+          (base32
+            "0x7n2jwmwrprl0aqcaxw184r5x03047264ccrv24aivmf5fzk7iy"))))
+    (build-system meson-build-system)
+    (arguments
+      `(;; Don't test all of systemd
+        #:tests? #f
+        #:configure-flags (list (string-append "-Drootprefix=" %output))
+        #:phases (modify-phases %standard-phases
+                   (replace 'build
+                     (lambda* (#:key parallel-build? #:allow-other-keys)
+                       (invoke "ninja"
+                               "-j" (if parallel-build? (number->string (parallel-job-count)) "1")
+                               "libsystemd.so.0.39.0"
+                               "src/libsystemd/libsystemd.pc")))
+                   (replace 'install
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (invoke "meson" "install" "--no-rebuild" "--tags" "libsystemd")
+                       (let ((out (assoc-ref outputs "out")))
+                         (delete-file "../source/src/systemd/meson.build")
+                         (mkdir-p (string-append out "/lib/pkgconfig"))
+                         (install-file "./src/libsystemd/libsystemd.pc" (string-append out "/lib/pkgconfig"))
+                         (copy-recursively "../source/src/systemd" (string-append out "/include/systemd"))))))))
+    (inputs
+      (list gperf libcap libxcrypt (list util-linux "lib")))
+    (native-inputs
+      (list cmake pkg-config python python-jinja2))
+    (home-page "https://systemd.io/")
+    (synopsis "Functions for implementing services and interacting with systemd")
+    (description "The libsystemd library provides functions that allow interacting with various interfaces provided by the systemd(1) service manager, as well as various other functions and constants useful for implementing services in general.")
+    (license license:lgpl2.1+)))
+
 (define-public libxdg-basedir
   (package
     (name "libxdg-basedir")

base-commit: 32d1dfb5545bb01c9d8d7a2465f13f2f379dd96e
-- 
2.41.0





Acknowledgement sent to Ryan Sundberg <ryan@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#74671; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.